diff gtk3/dw.c @ 1289:5fb54aeba5e0

Allow removing icons from containers on GTK2. Also a small performance helper in both GTK versions.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 31 Oct 2011 11:04:03 +0000
parents 57ce07fbec45
children b99b0b2c2826
line wrap: on
line diff
--- a/gtk3/dw.c	Mon Oct 31 10:03:25 2011 +0000
+++ b/gtk3/dw.c	Mon Oct 31 11:04:03 2011 +0000
@@ -1782,6 +1782,10 @@
    char *data = NULL;
    int z, id = GPOINTER_TO_INT(icon);
 
+   /* Quick dropout for non-handle */
+   if(!icon)
+      return NULL;
+
    if(id > 65535)
    {
       GdkPixbuf *icon_pixbuf = icon;