/* Called when the mouse leaves the spinner's editable-object */ static void _etk_spinner_editable_mouse_out_cb(void *data, Evas *evas, Evas_Object *object, void *event_info) { Etk_Widget *spinner_widget; if (!(spinner_widget = ETK_WIDGET(data))) return; etk_toplevel_pointer_pop(spinner_widget->toplevel_parent, ETK_POINTER_TEXT_EDIT); }
/* Called when an event occurs on the resize grip of the statusbar */ static void _etk_statusbar_resize_grip_cb(void *data, Evas_Object *obj, const char *emission, const char *source) { Etk_Statusbar *statusbar; if (!(statusbar = ETK_STATUSBAR(data))) return; if (strcmp(emission, "mouse,in") == 0) etk_toplevel_pointer_push(etk_widget_toplevel_parent_get(ETK_WIDGET(statusbar)), ETK_POINTER_RESIZE_BR); else if (strcmp(emission, "mouse,out") == 0) etk_toplevel_pointer_pop(etk_widget_toplevel_parent_get(ETK_WIDGET(statusbar)), ETK_POINTER_RESIZE_BR); else if (strcmp(emission, "mouse,down,1") == 0) { Etk_Toplevel *window; if (!(window = etk_widget_toplevel_parent_get(ETK_WIDGET(statusbar))) || !ETK_IS_WINDOW(window)) return; etk_window_geometry_get(ETK_WINDOW(window), NULL, NULL, &statusbar->window_width, &statusbar->window_height); etk_signal_connect_by_code(ETK_WIDGET_MOUSE_MOVE_SIGNAL, ETK_OBJECT(statusbar), ETK_CALLBACK(_etk_statusbar_mouse_move_cb), NULL); } else if (strcmp(emission, "mouse,up,1") == 0) etk_signal_disconnect_by_code(ETK_WIDGET_MOUSE_MOVE_SIGNAL, ETK_OBJECT(statusbar), ETK_CALLBACK(_etk_statusbar_mouse_move_cb), NULL); }