[gtk+] wayland: Return the right type atom on gdk_selection_property_get()
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] wayland: Return the right type atom on gdk_selection_property_get()
- Date: Mon, 29 Jun 2015 16:43:09 +0000 (UTC)
commit de68968f89a5e9b987ff441cc127010c12d8f606
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Jun 29 17:54:57 2015 +0200
wayland: Return the right type atom on gdk_selection_property_get()
We mistakenly forced the "STRING" type, which was able to confuse higher
layer helpers like gtk_selection_data_get_uris(). This fixes a crash
happening anytime a drop is attempted on a GtkPlacesSidebar.
gdk/wayland/gdkselection-wayland.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/wayland/gdkselection-wayland.c b/gdk/wayland/gdkselection-wayland.c
index 640fa4e..9da66cb 100644
--- a/gdk/wayland/gdkselection-wayland.c
+++ b/gdk/wayland/gdkselection-wayland.c
@@ -991,7 +991,7 @@ _gdk_wayland_display_get_selection_property (GdkDisplay *display,
else
{
if (ret_type)
- *ret_type = GDK_SELECTION_TYPE_STRING;
+ *ret_type = buffer_data->target;
if (ret_format)
*ret_format = 8;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]