E (RandR): Raise callback signals for monitor_moved and

monitor_rotated so we can adjust positions in the randr widget.



SVN revision: 77260
This commit is contained in:
Christopher Michael 2012-10-01 10:21:26 +00:00
parent f2b9c969af
commit 7d6f95bc01
2 changed files with 3 additions and 2 deletions

View File

@ -112,7 +112,6 @@ _randr_info_new(E_Container *con)
/* create close button */
ob = e_widget_button_add(evas, _("Close"), NULL,
_close_cb_click, info->win, NULL);
// e_widget_on_focus_hook_set(ob, _close_cb_focus, win);
e_widget_size_min_get(ob, &mw, &mh);
edje_extern_object_min_size_set(ob, mw, mh);
edje_object_part_swallow(info->o_bg, "e.swallow.button", ob);

View File

@ -965,7 +965,7 @@ _e_smart_monitor_rotate_snap(Evas_Object *obj)
/* tell randr widget we rotated this monitor so that it can
* update the layout for any monitors around this one */
/* evas_object_smart_callback_call(mon, "monitor_rotated", NULL); */
evas_object_smart_callback_call(mon, "monitor_rotated", NULL);
}
static void
@ -1079,6 +1079,8 @@ _e_smart_monitor_move(E_Smart_Data *sd, Evas_Object *mon, void *event)
if ((gx != nx) || (gy != ny))
e_layout_child_move(mon, nx, ny);
evas_object_smart_callback_call(mon, "monitor_moved", NULL);
/* Hmm, this below code worked also ... and seems lighter.
* but the above code seems more "proper".
* Which to use ?? */