changeset 1287:57ce07fbec45

Allow passing 0 as icon handle to remove container icon on GTK3.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 31 Oct 2011 09:37:47 +0000
parents 6a5df80cfb43
children d10969835d2d
files gtk3/dw.c
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/gtk3/dw.c	Mon Oct 31 08:57:03 2011 +0000
+++ b/gtk3/dw.c	Mon Oct 31 09:37:47 2011 +0000
@@ -5789,9 +5789,7 @@
             char *tmp = (char *)thisdata[1];
             GdkPixbuf *pixbuf = _find_pixbuf(hicon, NULL, NULL);
 
-            if(pixbuf)
-               gtk_list_store_set(store, &iter, 1, pixbuf, -1);
-
+            gtk_list_store_set(store, &iter, 1, pixbuf, -1);
             gtk_list_store_set(store, &iter, 2, tmp, -1);
          }
          else if(flag & DW_CFA_BITMAPORICON)
@@ -5799,8 +5797,7 @@
             HICN hicon = *((HICN *)data);
             GdkPixbuf *pixbuf = _find_pixbuf(hicon, NULL, NULL);
 
-            if(pixbuf)
-               gtk_list_store_set(store, &iter, column + 2, pixbuf, -1);
+            gtk_list_store_set(store, &iter, column + 2, pixbuf, -1);
          }
          else if(flag & DW_CFA_STRING)
          {