summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2004-11-29 06:12:29 +0000
committerCarsten Haitzler <raster@rasterman.com>2004-11-29 06:12:29 +0000
commit3099278cfff410e0555189fa07d582f37b4baf85 (patch)
tree228b0717a5532682806dae801d24673009317d37 /src/bin
parent19cdac93fc1f1d6a082835b670e8461f7b3712a7 (diff)
oops -i broke borderless windows! :)
SVN revision: 12302
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/e_border.c33
1 files changed, 22 insertions, 11 deletions
diff --git a/src/bin/e_border.c b/src/bin/e_border.c
index f8e99c4b0..c5ad7e44f 100644
--- a/src/bin/e_border.c
+++ b/src/bin/e_border.c
@@ -1231,6 +1231,7 @@ _e_border_eval(E_Border *bd)
1231 char buf[4096]; 1231 char buf[4096];
1232 Evas_Coord cx, cy, cw, ch; 1232 Evas_Coord cx, cy, cw, ch;
1233 int l, r, t, b; 1233 int l, r, t, b;
1234 int ok;
1234 1235
1235 if (!bd->client.border.name) 1236 if (!bd->client.border.name)
1236 { 1237 {
@@ -1253,17 +1254,27 @@ _e_border_eval(E_Border *bd)
1253 path = e_path_find(path_themes, "default.eet"); 1254 path = e_path_find(path_themes, "default.eet");
1254 snprintf(buf, sizeof(buf), "widgets/border/%s/border", 1255 snprintf(buf, sizeof(buf), "widgets/border/%s/border",
1255 bd->client.border.name); 1256 bd->client.border.name);
1256 edje_object_file_set(o, path, buf); 1257 ok = edje_object_file_set(o, path, buf);
1257 edje_object_part_text_set(o, "title_text", 1258 if (ok)
1258 bd->client.icccm.title); 1259 {
1259 printf("SET TITLE2 %s\n", bd->client.icccm.title); 1260 edje_object_part_text_set(o, "title_text",
1260 evas_object_resize(o, 1000, 1000); 1261 bd->client.icccm.title);
1261 edje_object_calc_force(o); 1262 printf("SET TITLE2 %s\n", bd->client.icccm.title);
1262 edje_object_part_geometry_get(o, "client", &cx, &cy, &cw, &ch); 1263 evas_object_resize(o, 1000, 1000);
1263 l = cx; 1264 edje_object_calc_force(o);
1264 r = 1000 - (cx + cw); 1265 edje_object_part_geometry_get(o, "client", &cx, &cy, &cw, &ch);
1265 t = cy; 1266 l = cx;
1266 b = 1000 - (cy + ch); 1267 r = 1000 - (cx + cw);
1268 t = cy;
1269 b = 1000 - (cy + ch);
1270 }
1271 else
1272 {
1273 l = 0;
1274 r = 0;
1275 t = 0;
1276 b = 0;
1277 }
1267 bd->client_inset.l = l; 1278 bd->client_inset.l = l;
1268 bd->client_inset.r = r; 1279 bd->client_inset.r = r;
1269 bd->client_inset.t = t; 1280 bd->client_inset.t = t;