Make internal eap editor stop using weird names if possible, and use a name

from the border icccm.


SVN revision: 23185
This commit is contained in:
Christopher Michael 2006-06-05 15:36:02 +00:00
parent 0d70dfdb3e
commit 6649cecfe0
2 changed files with 11 additions and 4 deletions

View File

@ -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,7 +574,14 @@ _e_border_menu_cb_icon_edit(void *data, E_Menu *m, E_Menu_Item *mi)
if (!a)
{
a = e_app_empty_new(NULL);
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);