changeset 8963:59f1eb8c76d2

[gaim-migrate @ 9737] A one liner from Kevin that he says fixed a warning with opening the preference dialog because the None theme doesn't have an icon. committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Mon, 17 May 2004 07:04:16 +0000
parents 4ff4c34b7500
children faf9a6e56aec
files src/gtkprefs.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkprefs.c	Mon May 17 06:47:20 2004 +0000
+++ b/src/gtkprefs.c	Mon May 17 07:04:16 2004 +0000
@@ -456,7 +456,7 @@
 		 * LEAK - Gentoo memprof thinks pixbuf is leaking here... but it
 		 * looks like it should be ok to me.  Anyone know what's up?  --Mark
 		 */
-		pixbuf = gdk_pixbuf_new_from_file(theme->icon, NULL);
+		pixbuf = (theme->icon ? gdk_pixbuf_new_from_file(theme->icon, NULL) : NULL);
 
 		gtk_list_store_set(smiley_theme_store, &iter,
 				   0, pixbuf,