[empathy: 1/4] Cope with gtk_icon_theme_lookup_icon returning NULL
- From: Danielle Madeley <daniellem src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy: 1/4] Cope with gtk_icon_theme_lookup_icon returning NULL
- Date: Fri, 14 Oct 2011 04:29:33 +0000 (UTC)
commit 87842463373ddfbed87fdf27a617f1b35fb35d41
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 d5f63c9..8822ccd 100644
--- a/libempathy-gtk/empathy-ui-utils.c
+++ b/libempathy-gtk/empathy-ui-utils.c
@@ -947,6 +947,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]