Enlightenment CVS committal
Author : handyande
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_border.c
Log Message:
Fix seg for apps with no winclass
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_border.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -3 -r1.49 -r1.50
--- e_border.c 7 Jan 2005 04:02:03 -0000 1.49
+++ e_border.c 7 Jan 2005 20:29:45 -0000 1.50
@@ -2495,7 +2495,7 @@
e_menu_item_label_set(mi, "Edit Icon");
e_menu_item_callback_set(mi, _e_border_menu_cb_icon_edit, a->path);
}
- else
+ else if (bd->client.icccm.class) /* icons with no class useless to borders
*/
{
static char buf[PATH_MAX + 50];
char *name, *homedir;
@@ -2508,7 +2508,7 @@
l = strlen(name);
for (i = 0; i < l; i++)
{
- if (name[i] == ' ') name[i] = '_';
+ if (name[i] == ' ') name[i] = '_';
}
/* previously this could be null, but it will exist now */
homedir = e_user_homedir_get();
@@ -2516,8 +2516,8 @@
snprintf(buf, sizeof(buf),
"--win-class %s %s/.e/e/applications/all/%s.eapp",
bd->client.icccm.class, homedir, name);
- mi = e_menu_item_new(m);
- e_menu_item_label_set(mi, "Create Icon");
+ mi = e_menu_item_new(m);
+ e_menu_item_label_set(mi, "Create Icon");
e_menu_item_callback_set(mi, _e_border_menu_cb_icon_edit, buf);
}
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs