From 6649cecfe0e41f414bd500cf2955bab73520f92b Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Mon, 5 Jun 2006 15:36:02 +0000 Subject: [PATCH] Make internal eap editor stop using weird names if possible, and use a name from the border icccm. SVN revision: 23185 --- src/bin/e_eap_editor.c | 2 +- src/bin/e_int_border_menu.c | 13 ++++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/bin/e_eap_editor.c b/src/bin/e_eap_editor.c index ffd49975a..b96d623f9 100644 --- a/src/bin/e_eap_editor.c +++ b/src/bin/e_eap_editor.c @@ -160,7 +160,7 @@ _e_eap_edit_basic_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *data) eap->width = 128; eap->height = 128; - if ((eap->name) && (eap->exe)) + if ((eap->name) && (eap->exe)) e_app_fields_save(eap); return 1; diff --git a/src/bin/e_int_border_menu.c b/src/bin/e_int_border_menu.c index 5df8dc4f6..4c2728cb7 100644 --- a/src/bin/e_int_border_menu.c +++ b/src/bin/e_int_border_menu.c @@ -562,7 +562,7 @@ _e_border_menu_cb_icon_edit(void *data, E_Menu *m, E_Menu_Item *mi) E_App *a; E_Border *bd; char *bname = NULL, *bclass = NULL; - + char path[4096]; bd = data; a = bd->app; @@ -574,9 +574,16 @@ _e_border_menu_cb_icon_edit(void *data, E_Menu *m, E_Menu_Item *mi) if (!a) { - a = e_app_empty_new(NULL); - if (a) + if (bname) { + snprintf(path, sizeof(path), "%s/.e/e/applications/all/%s.eap", getenv("HOME"), bname); + a = e_app_empty_new(path); + } + else + a = e_app_empty_new(NULL); + + if (a) + { if (bname) a->win_name = evas_stringshare_add(bname); if (bclass) a->win_class = evas_stringshare_add(bclass); if (bd->client.icccm.window_role)