[gtk+] wayland: Set type for GtkSelectionData for incoming contents



commit 2ffcc8a4535c6e05bc29a1be9dc202cc5b6775ee
Author: Kristian Høgsberg <krh bitplanet net>
Date:   Fri Aug 23 23:13:01 2013 -0700

    wayland: Set type for GtkSelectionData for incoming contents
    
    This is set from the incoming property type under X11.  Under Wayland
    it will always be what we requested, so we can just set it to the target.

 gtk/gtkclipboard-wayland.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkclipboard-wayland.c b/gtk/gtkclipboard-wayland.c
index 8f6012e..ab63a0c 100644
--- a/gtk/gtkclipboard-wayland.c
+++ b/gtk/gtkclipboard-wayland.c
@@ -247,6 +247,7 @@ _request_generic_cb (GdkDevice   *device,
 
   selection_data.selection = GDK_SELECTION_CLIPBOARD;
   selection_data.target = closure->target;
+  selection_data.type = closure->target;
   selection_data.length = len;
   selection_data.data = (guchar *)data;
 


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