Enlightenment CVS committal

Author  : handyande
Project : misc
Module  : engage

Dir     : misc/engage/src/module


Modified Files:
        e_mod_main.c 


Log Message:
Stubs for iconic support
===================================================================
RCS file: /cvsroot/enlightenment/misc/engage/src/module/e_mod_main.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- e_mod_main.c        27 Feb 2005 20:56:38 -0000      1.1
+++ e_mod_main.c        27 Feb 2005 23:56:43 -0000      1.2
@@ -45,6 +45,9 @@
 static void    _engage_app_change(void *data, E_App *a, E_App_Change ch);
 static void    _engage_config_menu_new(Engage *e);
 
+static int     _engage_cb_event_border_iconify(void *data, int type, void 
*event);
+static int     _engage_cb_event_border_uniconify(void *data, int type, void 
*event);
+
 static Engage_Bar *_engage_bar_new(Engage *e, E_Container *con);
 static void    _engage_bar_free(Engage_Bar *eb);
 static void    _engage_bar_menu_new(Engage_Bar *eb);
@@ -482,6 +485,10 @@
    edje_object_signal_emit(eb->bar_object, "passive", "");
    */
 
+   ecore_event_handler_add(E_EVENT_BORDER_HIDE,
+        _engage_cb_event_border_iconify, eb);
+   ecore_event_handler_add(E_EVENT_BORDER_SHOW,
+        _engage_cb_event_border_uniconify, eb);
    return eb;
 }
 
@@ -697,6 +704,31 @@
    e->config_menu = mn;
 }
 
+static int
+_engage_cb_event_border_iconify(void *data, int type, void *event)
+{
+   printf("not implemented iconify listener\n");
+
+   /*FIXME
+    * check that were are the bar in the right zone
+    *
+    * add icon to list, marking as iconified (instances of ++)
+    */
+}
+
+static int
+_engage_cb_event_border_uniconify(void *data, int type, void *event)
+{
+   printf("not implemented uniconify listener\n");
+
+   /*FIXME
+    * check that were are the bar in the right zone
+    *
+    * remove icon from list, if instances == 0 and it is only an iconic icon
+    */
+}
+
+
 #if 0
 static void
 _engage_icon_reorder_before(Engage_Icon *ic, Engage_Icon *before)




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to