[gtk+/gtk-2-18] Rework a broken workaround for a Java bug
- From: Matthias Clasen <matthiasc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-18] Rework a broken workaround for a Java bug
- Date: Tue, 1 Dec 2009 04:09:27 +0000 (UTC)
commit 92289a5b4348fa7d9cc993313a351199a9897117
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Nov 28 10:27:32 2009 -0500
Rework a broken workaround for a Java bug
This was committed to fix bug 568263, but it is not correct, as
pointed out in 601611.
(cherry picked from commit 6dfb21e616bdf1e1db7ed86bff08fcb68210f17e)
gtk/gtkselection.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkselection.c b/gtk/gtkselection.c
index 7195b86..ce81f98 100644
--- a/gtk/gtkselection.c
+++ b/gtk/gtkselection.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]