[empathy/gnome-2-28: 11/18] Return if the renderer has no pixbuf.



commit 3cecc493d3793bee23d73dbda75a30a4955290b7
Author: Cosimo Cecchi <cosimo cecchi collabora co uk>
Date:   Thu Oct 1 12:14:53 2009 +0200

    Return if the renderer has no pixbuf.

 libempathy-gtk/empathy-cell-renderer-activatable.c |    3 +++
 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 29393f1..b0e2260 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;



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