Mercurial > dwindows
diff gtk/dw.c @ 1718:fae374a0055b
Same fix for GTK2/3 as committed for OS/2 and Windows...
Not sure why I did it that way at all in the first place.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 08 May 2012 18:28:39 +0000 |
parents | df5f0857f765 |
children | 535e8c19a13d |
line wrap: on
line diff
--- a/gtk/dw.c Tue May 08 18:14:48 2012 +0000 +++ b/gtk/dw.c Tue May 08 18:28:39 2012 +0000 @@ -4992,20 +4992,13 @@ return; DW_MUTEX_LOCK; - if (id) - tmp = _find_pixmap(&bitmap, (HICN)id, handle, NULL, NULL); - else + if(data) { #if GTK_MAJOR_VERSION > 1 GdkPixbuf *pixbuf; #elif defined(USE_IMLIB) GdkImlibImage *image; #endif - if (!data) - { - DW_MUTEX_UNLOCK; - return; - } /* * A real hack; create a temporary file and write the contents * of the data to the file @@ -5038,6 +5031,8 @@ /* remove our temporary file */ unlink (file ); } + else if (id) + tmp = _find_pixmap(&bitmap, (HICN)id, handle, NULL, NULL); if(tmp) {