Set the confirmation window above and make it sticky and centered.

SVN revision: 16414
This commit is contained in:
sebastid 2005-08-30 01:17:22 +00:00 committed by sebastid
parent ce95056320
commit f0fde4a081
1 changed files with 3 additions and 8 deletions

View File

@ -316,16 +316,11 @@ _randr_menu_cb_resolution_change(void *data, E_Menu *m, E_Menu_Item *mi)
e_dialog_button_add(e->dialog, "OK", NULL, _randr_dialog_cb_ok, res);
e_dialog_button_add(e->dialog, "Cancel", NULL, _randr_dialog_cb_cancel, res);
e_win_borderless_set(e->dialog->win, 1);
e_win_layer_set(e->dialog->win, 6);
e_win_centered_set(e->dialog->win, 1);
e_win_sticky_set(e->dialog->win, 1);
e_dialog_show(e->dialog);
/* This shouldn't be done here. We should add a resize callback to the e_win,
* and position us when we know the real width and height */
#if 0
e_win_move(e->dialog->win,
m->zone->x + (m->zone->w - e->dialog->win->min_w) / 2,
m->zone->y + (m->zone->h - e->dialog->win->min_h) / 2);
#endif
e->timer = ecore_timer_add(15.0, _randr_timer_cb, res);
}