Enlightenment CVS committal Author : devilhorns Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_win.h e_win.c e_int_config_wallpaper_import.c e_int_config_wallpaper_gradient.c e_int_config_theme_import.c Log Message: Add function to set window border icon so that Import dialogs and such can have same icon as their parent. =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_win.h,v retrieving revision 1.9 retrieving revision 1.10 diff -u -3 -r1.9 -r1.10 --- e_win.h 20 Aug 2006 04:48:27 -0000 1.9 +++ e_win.h 1 Sep 2006 17:38:25 -0000 1.10 @@ -65,6 +65,7 @@ EAPI void e_win_step_set (E_Win *win, int x, int y); 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_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.21 retrieving revision 1.22 diff -u -3 -r1.21 -r1.22 --- e_win.c 20 Aug 2006 06:42:20 -0000 1.21 +++ e_win.c 1 Sep 2006 17:38:25 -0000 1.22 @@ -365,6 +365,17 @@ return win; } +EAPI void +e_win_border_icon_set(E_Win *win, const char *icon) +{ + E_Border *border; + + if (!icon) return; + border = win->border; + if (!border) return; + border->internal_icon = evas_stringshare_add(icon); +} + /* local subsystem functions */ static void _e_win_free(E_Win *win) =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_int_config_wallpaper_import.c,v retrieving revision 1.19 retrieving revision 1.20 diff -u -3 -r1.19 -r1.20 --- e_int_config_wallpaper_import.c 26 Aug 2006 09:06:47 -0000 1.19 +++ e_int_config_wallpaper_import.c 1 Sep 2006 17:38:25 -0000 1.20 @@ -99,7 +99,7 @@ e_win_resize_callback_set(win, _import_cb_resize); e_win_dialog_set(win, 1); e_win_name_class_set(win, "E", "_wallpaper_import_dialog"); - + o = edje_object_add(evas); import->bg_obj = o; e_theme_edje_object_set(o, "base/theme/dialog", "e/widgets/dialog/main"); @@ -198,6 +198,7 @@ e_win_size_min_set(win, w, h); e_win_size_max_set(win, 99999, 99999); e_win_show(win); + e_win_border_icon_set(win, "enlightenment/background"); if (!e_widget_focus_get(import->bg_obj)) e_widget_focus_set(import->box_obj, 1); =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_int_config_wallpaper_gradient.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- e_int_config_wallpaper_gradient.c 23 Aug 2006 03:39:02 -0000 1.8 +++ e_int_config_wallpaper_gradient.c 1 Sep 2006 17:38:25 -0000 1.9 @@ -187,6 +187,8 @@ _import_opt_disabled_set(import, 1); e_dialog_resizable_set(dia, 0); e_dialog_show(dia); + + e_dialog_border_icon_set(dia, "enlightenment/background"); return dia; } =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_int_config_theme_import.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- e_int_config_theme_import.c 1 Sep 2006 17:21:22 -0000 1.1 +++ e_int_config_theme_import.c 1 Sep 2006 17:38:25 -0000 1.2 @@ -134,6 +134,7 @@ e_win_size_min_set(win, w, h); e_win_size_max_set(win, 99999, 99999); e_win_show(win); + e_win_border_icon_set(win, "enlightenment/themes"); win->data = import; ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs