Enlightenment CVS committal Author : devilhorns Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_dialog.c e_win.c Log Message: Fix up the border_icon_set a little bit. - Make sure we stringshare_del any old border_icons. =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_dialog.c,v retrieving revision 1.39 retrieving revision 1.40 diff -u -3 -r1.39 -r1.40 --- e_dialog.c 29 Sep 2006 06:49:35 -0000 1.39 +++ e_dialog.c 27 Nov 2006 12:54:29 -0000 1.40 @@ -155,12 +155,16 @@ e_dialog_border_icon_set(E_Dialog *dia, const char *icon) { E_Border *border; - - if (!icon) return; border = dia->win->border; if (!border) return; - border->internal_icon = evas_stringshare_add(icon); + if (border->internal_icon) + { + evas_stringshare_del(border->internal_icon); + border->internal_icon = NULL; + } + if (icon) + border->internal_icon = evas_stringshare_add(icon); } EAPI void =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_win.c,v retrieving revision 1.22 retrieving revision 1.23 diff -u -3 -r1.22 -r1.23 --- e_win.c 1 Sep 2006 17:38:25 -0000 1.22 +++ e_win.c 27 Nov 2006 12:54:29 -0000 1.23 @@ -370,10 +370,15 @@ { E_Border *border; - if (!icon) return; border = win->border; if (!border) return; - border->internal_icon = evas_stringshare_add(icon); + if (border->internal_icon) + { + evas_stringshare_del(border->internal_icon); + border->internal_icon = NULL; + } + if (icon) + border->internal_icon = evas_stringshare_add(icon); } /* local subsystem functions */ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs