Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_border.c 


Log Message:


use the "client" part to determine client window location/size within a border.

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_border.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- e_border.c  26 Nov 2004 06:15:02 -0000      1.6
+++ e_border.c  28 Nov 2004 14:52:56 -0000      1.7
@@ -1227,8 +1227,10 @@
      {
        Evas_Object *o;
        int iw, ih;
-       const char *path, *str;
+       const char *path;
        char buf[4096];
+       Evas_Coord cx, cy, cw, ch;
+       int l, r, t, b;
 
        if (!bd->client.border.name)
          {
@@ -1255,23 +1257,21 @@
        edje_object_part_text_set(o, "title_text", 
                                  bd->client.icccm.title);
        printf("SET TITLE2 %s\n", bd->client.icccm.title);
-       str = edje_object_data_get(o, "client_inset");
-       if (str)
-         {
-            int l, r, t, b;
-            
-            if (sscanf(str, "%i %i %i %i", &l, &r, &t, &b) == 4)
-              {
-                 bd->client_inset.l = l;
-                 bd->client_inset.r = r;
-                 bd->client_inset.t = t;
-                 bd->client_inset.b = b;
-                 bd->w += (bd->client_inset.l + bd->client_inset.r);
-                 bd->h += (bd->client_inset.t + bd->client_inset.b);
-                 bd->changes.size = 1;
-                 ecore_x_window_move(bd->client.shell_win, l, t);
-              }
-         }
+       evas_object_resize(o, 1000, 1000);
+       edje_object_calc_force(o);
+       edje_object_part_geometry_get(o, "client", &cx, &cy, &cw, &ch);
+       l = cx;
+       r = 1000 - (cx + cw);
+       t = cy;
+       b = 1000 - (cy + ch);
+       bd->client_inset.l = l;
+       bd->client_inset.r = r;
+       bd->client_inset.t = t;
+       bd->client_inset.b = b;
+       bd->w += (bd->client_inset.l + bd->client_inset.r);
+       bd->h += (bd->client_inset.t + bd->client_inset.b);
+       bd->changes.size = 1;
+       ecore_x_window_move(bd->client.shell_win, l, t);
        edje_object_signal_callback_add(o, "move_start", "*",
                                        _e_border_cb_signal_move_start, bd);
        edje_object_signal_callback_add(o, "move_stop", "*",




-------------------------------------------------------
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
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to