Enlightenment CVS committal Author : devilhorns Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_win.h e_win.c Log Message: Provide a convenience function for setting a window border internal icon key. =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_win.h,v retrieving revision 1.10 retrieving revision 1.11 diff -u -3 -r1.10 -r1.11 --- e_win.h 1 Sep 2006 17:38:25 -0000 1.10 +++ e_win.h 10 Sep 2007 21:50:54 -0000 1.11 @@ -66,7 +66,7 @@ EAPI void e_win_name_class_set (E_Win *win, const char *name, const char *class); EAPI void e_win_title_set (E_Win *win, const char *title); EAPI void e_win_border_icon_set (E_Win *win, const char *icon); - +EAPI void e_win_border_icon_key_set(E_Win *win, const char *key); EAPI void e_win_centered_set (E_Win *win, int centered); EAPI void e_win_dialog_set (E_Win *win, int dialog); =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_win.c,v retrieving revision 1.23 retrieving revision 1.24 diff -u -3 -r1.23 -r1.24 --- e_win.c 27 Nov 2006 12:54:29 -0000 1.23 +++ e_win.c 10 Sep 2007 21:50:54 -0000 1.24 @@ -381,6 +381,22 @@ border->internal_icon = evas_stringshare_add(icon); } +EAPI void +e_win_border_icon_key_set(E_Win *win, const char *key) +{ + E_Border *border; + + border = win->border; + if (!border) return; + if (border->internal_icon_key) + { + evas_stringshare_del(border->internal_icon_key); + border->internal_icon_key = NULL; + } + if (key) + border->internal_icon_key = evas_stringshare_add(key); +} + /* local subsystem functions */ static void _e_win_free(E_Win *win) ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs