[gtk+/gtk-2-24] win32: restore effect of _gdk_selection_property_delete



commit 479bc6e5509f845652b7cd3831d17744b2148ff3
Author: Hans Breuer <hans breuer org>
Date:   Sat Dec 3 17:42:45 2011 +0100

    win32: restore effect of _gdk_selection_property_delete
    
    Can not find in the changelog entry why it was disabled at all,
    see: http://git.gnome.org/browse/gtk+/commit/?id=3f4c73
    
    The ill effect is somewhat hidden: if you try to copy images
    via clipboard only the first one is pastable, i.e. Gdk keeps
    the reference to the first image and provides it for later
    paste.

 gdk/win32/gdkselection-win32.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gdk/win32/gdkselection-win32.c b/gdk/win32/gdkselection-win32.c
index 86f42b2..41d4d3d 100644
--- a/gdk/win32/gdkselection-win32.c
+++ b/gdk/win32/gdkselection-win32.c
@@ -865,10 +865,12 @@ gdk_selection_property_get (GdkWindow  *requestor,
 void
 _gdk_selection_property_delete (GdkWindow *window)
 {
+  GdkSelProp *prop;
+
   GDK_NOTE (DND, g_print ("_gdk_selection_property_delete: %p (no-op)\n",
                           GDK_WINDOW_HWND (window)));
 
-#if 0
+#if 1 /* without this we can only paste the first image from clipboard */
   prop = g_hash_table_lookup (sel_prop_table, GDK_WINDOW_HWND (window));
   if (prop != NULL)
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]