[empathy/gnome-2-34] Cope with gtk_icon_theme_lookup_icon returning NULL



commit f9c69dcf82745e7d82673c5d11f8969fa2709eb7
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date:   Tue Mar 22 19:57:25 2011 +0000

    Cope with gtk_icon_theme_lookup_icon returning NULL

 libempathy-gtk/empathy-ui-utils.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c
index a23b1de..06cec24 100644
--- a/libempathy-gtk/empathy-ui-utils.c
+++ b/libempathy-gtk/empathy-ui-utils.c
@@ -867,6 +867,9 @@ empathy_filename_from_icon_name (const gchar *icon_name,
 	}
 
 	icon_info = gtk_icon_theme_lookup_icon (icon_theme, icon_name, size, 0);
+	if (icon_info == NULL)
+		return NULL;
+
 	ret = g_strdup (gtk_icon_info_get_filename (icon_info));
 	gtk_icon_info_free (icon_info);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]