Enlightenment CVS committal
Author : raster
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_border.c
Log Message:
oops -i broke borderless windows! :)
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_border.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- e_border.c 28 Nov 2004 14:52:56 -0000 1.7
+++ e_border.c 29 Nov 2004 06:12:29 -0000 1.8
@@ -1231,6 +1231,7 @@
char buf[4096];
Evas_Coord cx, cy, cw, ch;
int l, r, t, b;
+ int ok;
if (!bd->client.border.name)
{
@@ -1253,17 +1254,27 @@
path = e_path_find(path_themes, "default.eet");
snprintf(buf, sizeof(buf), "widgets/border/%s/border",
bd->client.border.name);
- edje_object_file_set(o, path, buf);
- edje_object_part_text_set(o, "title_text",
- bd->client.icccm.title);
- printf("SET TITLE2 %s\n", bd->client.icccm.title);
- 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);
+ ok = edje_object_file_set(o, path, buf);
+ if (ok)
+ {
+ edje_object_part_text_set(o, "title_text",
+ bd->client.icccm.title);
+ printf("SET TITLE2 %s\n", bd->client.icccm.title);
+ 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);
+ }
+ else
+ {
+ l = 0;
+ r = 0;
+ t = 0;
+ b = 0;
+ }
bd->client_inset.l = l;
bd->client_inset.r = r;
bd->client_inset.t = t;
-------------------------------------------------------
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