]> Pileus Git - ~andy/gtk/commitdiff
Rework a broken workaround for a Java bug
authorMatthias Clasen <mclasen@redhat.com>
Sat, 28 Nov 2009 15:27:32 +0000 (10:27 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 28 Nov 2009 15:29:35 +0000 (10:29 -0500)
This was committed to fix bug 568263, but it is not correct, as
pointed out in 601611.

gtk/gtkselection.c

index f6187b21c83badd2e2a281a9203f85040a36f6ed..541d5e5d95c612ad22edaccd1fae5f09eba79e14 100644 (file)
@@ -1815,12 +1815,9 @@ gtk_selection_data_get_targets (GtkSelectionData  *selection_data,
 {
   g_return_val_if_fail (selection_data != NULL, FALSE);
 
-  /* As usual, java gets it wrong and sets the type to TARGETS, not ATOM 
-   */
   if (selection_data->length >= 0 &&
       selection_data->format == 32 &&
-      (selection_data->type == GDK_SELECTION_TYPE_ATOM ||
-       selection_data->type == gtk_selection_atoms[TARGETS]))
+      selection_data->type == GDK_SELECTION_TYPE_ATOM)
     {
       if (targets)
        *targets = g_memdup (selection_data->data, selection_data->length);