aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/lib/elm_win.c
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2009-04-04 16:58:28 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2009-04-04 16:58:28 +0000
commitb9670eb4611096ec03a6848a83a98dbf56129be3 (patch)
tree1030bfe4d7bd01e4e6164ee18fcb03c5316e3355 /legacy/elementary/src/lib/elm_win.c
parentlist items no keep reference to their node, returns siblings. (diff)
downloadefl-b9670eb4611096ec03a6848a83a98dbf56129be3.tar.gz
focus in/out signals.
SVN revision: 39860
Diffstat (limited to 'legacy/elementary/src/lib/elm_win.c')
-rw-r--r--legacy/elementary/src/lib/elm_win.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c
index e72850869d..4b3299944d 100644
--- a/legacy/elementary/src/lib/elm_win.c
+++ b/legacy/elementary/src/lib/elm_win.c
@@ -43,6 +43,22 @@ _elm_win_resize(Ecore_Evas *ee)
}
static void
+_elm_win_focus_in(Ecore_Evas *ee)
+{
+ Elm_Win *win = elm_widget_data_get(ecore_evas_object_associate_get(ee));
+ if (!win) return;
+ evas_object_smart_callback_call(win->win_obj, "focus-in", NULL);
+}
+
+static void
+_elm_win_focus_out(Ecore_Evas *ee)
+{
+ Elm_Win *win = elm_widget_data_get(ecore_evas_object_associate_get(ee));
+ if (!win) return;
+ evas_object_smart_callback_call(win->win_obj, "focus-out", NULL);
+}
+
+static void
_deferred_ecore_evas_free(void *data)
{
ecore_evas_free(data);
@@ -318,6 +334,8 @@ elm_win_add(Evas_Object *parent, const char *name, Elm_Win_Type type)
ecore_evas_name_class_set(win->ee, name, _elm_appname);
ecore_evas_callback_delete_request_set(win->ee, _elm_win_delete_request);
ecore_evas_callback_resize_set(win->ee, _elm_win_resize);
+ ecore_evas_callback_focus_in_set(win->ee, _elm_win_focus_in);
+ ecore_evas_callback_focus_out_set(win->ee, _elm_win_focus_out);
evas_image_cache_set(win->evas, _elm_config->image_cache * 1024);
evas_font_cache_set(win->evas, _elm_config->font_cache * 1024);
EINA_LIST_FOREACH(_elm_config->font_dirs, l, fontpath)