From 447426c79f8964bb791f46389abc0abd784f66a6 Mon Sep 17 00:00:00 2001 From: handyande Date: Fri, 7 Jan 2005 20:29:45 +0000 Subject: [PATCH] Fix seg for apps with no winclass SVN revision: 12816 --- src/bin/e_border.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bin/e_border.c b/src/bin/e_border.c index c30549042..8d0b1293d 100644 --- a/src/bin/e_border.c +++ b/src/bin/e_border.c @@ -2495,7 +2495,7 @@ _e_border_menu_show(E_Border *bd, Evas_Coord x, Evas_Coord y) 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 @@ _e_border_menu_show(E_Border *bd, Evas_Coord x, Evas_Coord y) 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 @@ _e_border_menu_show(E_Border *bd, Evas_Coord x, Evas_Coord y) 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); }