From 6d2109680e67f01ec005aa6e7ba9c30428f9e77a Mon Sep 17 00:00:00 2001 From: Alexander Kurtakov Date: Fri, 12 Jul 2013 19:47:52 +0300 Subject: Remove Gtk 2.6 hack for popups. --- .../Eclipse SWT/gtk/org/eclipse/swt/widgets/List.java | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/List.java') diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/List.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/List.java index 22589a874e..cbaabb6fa1 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/List.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/List.java @@ -782,20 +782,6 @@ long /*int*/ gtk_button_press_event (long /*int*/ widget, long /*int*/ event) { return result; } -long /*int*/ gtk_popup_menu (long /*int*/ widget) { - long /*int*/ result = super.gtk_popup_menu (widget); - /* - * Bug in GTK. The context menu for the typeahead in GtkTreeViewer - * opens in the bottom right corner of the screen when Shift+F10 - * is pressed and the typeahead window was not visible. The fix is - * to prevent the context menu from opening by stopping the default - * handler. - * - * NOTE: The bug only happens in GTK 2.6.5 and lower. - */ - return OS.GTK_VERSION < OS.VERSION (2, 6, 5) ? 1 : result; -} - long /*int*/ gtk_row_activated (long /*int*/ tree, long /*int*/ path, long /*int*/ column) { sendSelectionEvent (SWT.DefaultSelection); return 0; -- cgit