Use convenience functions, and icccm shouldn't bother with netwm.

SVN revision: 14984
This commit is contained in:
sebastid 2005-05-28 11:53:14 +00:00 committed by sebastid
parent 52a6e7f2a3
commit 74e94cfb71
1 changed files with 3 additions and 6 deletions

View File

@ -750,9 +750,7 @@ ecore_x_icccm_command_get(Ecore_X_Window win, int *argc, char ***argv)
void
ecore_x_icccm_icon_name_set(Ecore_X_Window win, const char *t)
{
ecore_x_window_prop_string_set(win, ECORE_X_ATOM_WM_ICON_NAME, (char *)t);
ecore_x_window_prop_string_set(win, ECORE_X_ATOM_NET_WM_ICON_NAME,
(char *)t);
XSetIconName(_ecore_x_disp, win, (char *)t);
}
/**
@ -767,9 +765,8 @@ ecore_x_icccm_icon_name_get(Ecore_X_Window win)
{
char *name;
name = ecore_x_window_prop_string_get(win, ECORE_X_ATOM_NET_WM_ICON_NAME);
if (!name)
name = ecore_x_window_prop_string_get(win, ECORE_X_ATOM_WM_ICON_NAME);
if (!XGetIconName(_ecore_x_disp, win, &name))
return NULL;
return name;
}