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

@ -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;

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,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)