From 74e94cfb71ca9e336e0c2888fec142d412b6b382 Mon Sep 17 00:00:00 2001 From: sebastid Date: Sat, 28 May 2005 11:53:14 +0000 Subject: [PATCH] Use convenience functions, and icccm shouldn't bother with netwm. SVN revision: 14984 --- legacy/ecore/src/lib/ecore_x/ecore_x_icccm.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/legacy/ecore/src/lib/ecore_x/ecore_x_icccm.c b/legacy/ecore/src/lib/ecore_x/ecore_x_icccm.c index ab5f86afbd..0a85805c41 100644 --- a/legacy/ecore/src/lib/ecore_x/ecore_x_icccm.c +++ b/legacy/ecore/src/lib/ecore_x/ecore_x_icccm.c @@ -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; }