comparison 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
comparison
equal deleted inserted replaced
1288:d10969835d2d 1289:5fb54aeba5e0
1780 static GdkPixbuf *_find_pixbuf(HICN icon, unsigned long *userwidth, unsigned long *userheight) 1780 static GdkPixbuf *_find_pixbuf(HICN icon, unsigned long *userwidth, unsigned long *userheight)
1781 { 1781 {
1782 char *data = NULL; 1782 char *data = NULL;
1783 int z, id = GPOINTER_TO_INT(icon); 1783 int z, id = GPOINTER_TO_INT(icon);
1784 1784
1785 /* Quick dropout for non-handle */
1786 if(!icon)
1787 return NULL;
1788
1785 if(id > 65535) 1789 if(id > 65535)
1786 { 1790 {
1787 GdkPixbuf *icon_pixbuf = icon; 1791 GdkPixbuf *icon_pixbuf = icon;
1788 1792
1789 if(userwidth) 1793 if(userwidth)