From: Enlightenment S. <no-...@en...> - 2008-12-14 01:14:41
|
Log: misc Author: urandom Date: 2008-12-13 17:14:39 -0800 (Sat, 13 Dec 2008) New Revision: 38135 Modified: trunk/E-MODULES-EXTRA/drawer/TODO trunk/E-MODULES-EXTRA/drawer/data/e-module-drawer.edc trunk/E-MODULES-EXTRA/drawer/src/plugins/views/list.c Modified: trunk/E-MODULES-EXTRA/drawer/TODO =================================================================== --- trunk/E-MODULES-EXTRA/drawer/TODO 2008-12-13 23:27:07 UTC (rev 38134) +++ trunk/E-MODULES-EXTRA/drawer/TODO 2008-12-14 01:14:39 UTC (rev 38135) @@ -9,3 +9,5 @@ Needs a file source to present and watch the contents of a given directory Needs a scrollable grid view (using edje_box's 'horizontal_flow' layout) + +Python plugins? (3 vs 2.x?) Modified: trunk/E-MODULES-EXTRA/drawer/data/e-module-drawer.edc =================================================================== --- trunk/E-MODULES-EXTRA/drawer/data/e-module-drawer.edc 2008-12-13 23:27:07 UTC (rev 38134) +++ trunk/E-MODULES-EXTRA/drawer/data/e-module-drawer.edc 2008-12-14 01:14:39 UTC (rev 38135) @@ -1166,6 +1166,11 @@ source: "event"; action: STATE_SET "selected" 0.0; MOUSE_IN_TARGETS + after: "item_out_emit"; + } + program { + name: "item_out_emit"; + action: SIGNAL_EMIT "e,action,deselect" "drawer"; after: "item_out_after"; } program { Modified: trunk/E-MODULES-EXTRA/drawer/src/plugins/views/list.c =================================================================== --- trunk/E-MODULES-EXTRA/drawer/src/plugins/views/list.c 2008-12-13 23:27:07 UTC (rev 38134) +++ trunk/E-MODULES-EXTRA/drawer/src/plugins/views/list.c 2008-12-14 01:14:39 UTC (rev 38135) @@ -60,6 +60,7 @@ static void _list_cb_list_mouse_move(void *data, Evas *e, Evas_Object *obj, void *event_info); static int _list_sort_by_category_cb(const void *d1, const void *d2); static void _list_entry_select_cb(void *data, Evas_Object *obj, const char *emission __UNUSED__, const char *source __UNUSED__); +static void _list_entry_deselect_cb(void *data, Evas_Object *obj, const char *emission __UNUSED__, const char *source __UNUSED__); static void _list_entry_activate_cb(void *data, Evas_Object *obj, const char *emission __UNUSED__, const char *source __UNUSED__); static void _list_event_activate_free(void *data __UNUSED__, void *event); @@ -386,6 +387,8 @@ edje_object_signal_callback_add(e->o_holder, "e,action,select", "drawer", _list_entry_select_cb, e); + edje_object_signal_callback_add(e->o_holder, "e,action,deselect", "drawer", + _list_entry_deselect_cb, e); edje_object_signal_callback_add(e->o_holder, "e,action,activate", "drawer", _list_entry_activate_cb, e); @@ -420,6 +423,8 @@ edje_object_signal_callback_add(e->o_holder, "e,action,select", "drawer", _list_entry_select_cb, e); + edje_object_signal_callback_add(e->o_holder, "e,action,deselect", "drawer", + _list_entry_deselect_cb, e); edje_object_signal_callback_add(e->o_holder, "e,action,activate", "drawer", _list_entry_activate_cb, e); @@ -616,6 +621,18 @@ } static void +_list_entry_deselect_cb(void *data, Evas_Object *obj, const char *emission __UNUSED__, const char *source __UNUSED__) +{ + Entry *e = NULL; + Instance *inst = NULL; + + e = data; + inst = e->inst; + edje_object_part_text_set(inst->o_con, "e.text.label", NULL); + edje_object_part_text_set(inst->o_con, "e.text.description", NULL); +} + +static void _list_entry_activate_cb(void *data, Evas_Object *obj, const char *emission __UNUSED__, const char *source __UNUSED__) { Entry *e = NULL; |