aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimo.cecchi@collabora.co.uk>2009-10-01 18:14:53 +0800
committerCosimo Cecchi <cosimo.cecchi@collabora.co.uk>2009-10-01 18:14:53 +0800
commit267e769eda9406c324b19c308330143fde287cc8 (patch)
treeaef73476d7e9786d8c88ba0cfb8a08889add71d6 /libempathy-gtk
parent991f4ed92181fae6c92a4d1b3506bc8d901b4a6c (diff)
downloadgsoc2013-empathy-267e769eda9406c324b19c308330143fde287cc8.tar
gsoc2013-empathy-267e769eda9406c324b19c308330143fde287cc8.tar.gz
gsoc2013-empathy-267e769eda9406c324b19c308330143fde287cc8.tar.bz2
gsoc2013-empathy-267e769eda9406c324b19c308330143fde287cc8.tar.lz
gsoc2013-empathy-267e769eda9406c324b19c308330143fde287cc8.tar.xz
gsoc2013-empathy-267e769eda9406c324b19c308330143fde287cc8.tar.zst
gsoc2013-empathy-267e769eda9406c324b19c308330143fde287cc8.zip
Return if the renderer has no pixbuf.
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-cell-renderer-activatable.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-cell-renderer-activatable.c b/libempathy-gtk/empathy-cell-renderer-activatable.c
index 29393f14c..b0e226091 100644
--- a/libempathy-gtk/empathy-cell-renderer-activatable.c
+++ b/libempathy-gtk/empathy-cell-renderer-activatable.c
@@ -240,6 +240,9 @@ cell_renderer_activatable_render (
!gdk_rectangle_intersect (expose_area, &draw_rect, &draw_rect))
return;
+ if (pixbuf == NULL)
+ return;
+
if (GTK_WIDGET_STATE (widget) == GTK_STATE_INSENSITIVE || !cell->sensitive)
{
GtkIconSource *source;