Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/modules/ibar


Modified Files:
        e_mod_main.c e_mod_main.h 


Log Message:


we support... xrandr... :) feelfree to change resolution on the fly in e17...
it all works. :)

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/modules/ibar/e_mod_main.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- e_mod_main.c        23 Dec 2004 06:38:27 -0000      1.4
+++ e_mod_main.c        25 Dec 2004 15:33:48 -0000      1.5
@@ -68,6 +68,7 @@
 static void    _ibar_cb_bar_resize2_start(void *data, Evas_Object *obj, const 
char *emission, const char *source);
 static void    _ibar_cb_bar_resize2_stop(void *data, Evas_Object *obj, const 
char *emission, const char *source);
 static void    _ibar_cb_bar_move_go(void *data, Evas_Object *obj, const char 
*emission, const char *source);
+static int     _ibar_cb_event_container_resize(void *data, int type, void 
*event);
 
 /* public module routines. all modules must have these */
 void *
@@ -675,7 +676,6 @@
    e_box_freeze(ibb->box_object);
    
    evas_output_viewport_get(ibb->evas, NULL, NULL, &ww, &hh);
-   
    o = ibb->bar_object;
    if (ibb->ibar->conf->width < 0)
      {
@@ -803,7 +803,11 @@
    Evas_List *l;
    Evas_Coord bw, bh;
    Evas_Object *o;
-   
+
+   ibb->ev_handler_container_resize = 
+     ecore_event_handler_add(E_EVENT_CONTAINER_RESIZE, 
+                            _ibar_cb_event_container_resize,
+                            ibb);
    evas_event_freeze(ibb->evas);
    o = edje_object_add(ibb->evas);
    ibb->bar_object = o;
@@ -892,6 +896,7 @@
 static void
 _ibar_bar_free(IBar_Bar *ibb)
 {
+   ecore_event_handler_del(ibb->ev_handler_container_resize);
    while (ibb->icons)
      {
        IBar_Icon *ic;
@@ -1623,3 +1628,13 @@
        return;
      }
 }
+
+static int
+_ibar_cb_event_container_resize(void *data, int type, void *event)
+{
+   IBar_Bar *ibb;
+   
+   ibb = data;
+   _ibar_bar_frame_resize(ibb);
+   return 1;
+}
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/modules/ibar/e_mod_main.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- e_mod_main.h        23 Dec 2004 06:38:27 -0000      1.4
+++ e_mod_main.h        25 Dec 2004 15:33:48 -0000      1.5
@@ -56,6 +56,8 @@
    unsigned char   resize2 : 1;
    Evas_Coord      start_x, start_y;
    Evas_Coord      start_bx, start_by, start_bw, start_bh;
+   
+   Ecore_Event_Handler *ev_handler_container_resize;
 };
 
 struct _IBar_Icon




-------------------------------------------------------
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://productguide.itmanagersjournal.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to