]> git.saurik.com Git - wxWidgets.git/commitdiff
Use proper format in wxGTK clipboard selection handler.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 20 Jul 2012 11:55:04 +0000 (11:55 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 20 Jul 2012 11:55:04 +0000 (11:55 +0000)
For some incomprehensible reason, GDK_SELECTION_TYPE_STRING was hard coded for
all non-text formats even though it was clearly never the right format to use.
Use the correct value specified by the format instead.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/clipbrd.cpp

index aeb6af2ea06ac2538ace64d70cde2ebfd08e342f..8b3d228a4f3394cd3c045051ca3c64589a19596b 100644 (file)
@@ -328,7 +328,7 @@ selection_handler( GtkWidget *WXUNUSED(widget),
     {
         gtk_selection_data_set(
             selection_data,
-            GDK_SELECTION_TYPE_STRING,
+            format.GetFormatId(),
             8*sizeof(gchar),
             (const guchar*)buf.data(),
             size );