diff gtk3/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 de49c1f284b2
children cebf830e3da7
line wrap: on
line diff
--- a/gtk3/dw.c	Tue May 08 18:14:48 2012 +0000
+++ b/gtk3/dw.c	Tue May 08 18:28:39 2012 +0000
@@ -4304,15 +4304,8 @@
       return;
 
    DW_MUTEX_LOCK;
-   if (id)
-      tmp = _find_pixbuf((HICN)id, NULL, NULL);
-   else
-   {
-      if (!data)
-      {
-         DW_MUTEX_UNLOCK;
-         return;
-      }
+   if(data)
+   {
       /*
        * A real hack; create a temporary file and write the contents
        * of the data to the file
@@ -4333,6 +4326,8 @@
       /* remove our temporary file */
       unlink (file );
    }
+   else if (id)
+      tmp = _find_pixbuf((HICN)id, NULL, NULL);
 
    if(tmp)
    {