[nautilus] list-view: Replaced deprecated gtk_menu_popup_for_device()



commit e9f56f411c5959d0c2961f33bcf9d38fb859f20b
Author: Evgeny Shulgin <izarizar mail ru>
Date:   Wed Apr 12 21:12:05 2017 +0300

    list-view: Replaced deprecated gtk_menu_popup_for_device()
    
    When using Wayland the menu for selecting the visible columns (right
    clicking on the column headers in the list view) can be misplaced when
    using two monitors because src/nautilus-list-view.c still uses the
    deprecated gtk_menu_popup_for_device() instead of the new
    gtk_menu_popup_at_pointer().
    
    https://bugzilla.gnome.org/show_bug.cgi?id=781073

 src/nautilus-list-view.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c
index 0d2f54f..622fa2d 100644
--- a/src/nautilus-list-view.c
+++ b/src/nautilus-list-view.c
@@ -1456,10 +1456,7 @@ column_header_clicked (GtkWidget        *column_button,
                       list_view);
 
     gtk_widget_show_all (menu);
-    gtk_menu_popup_for_device (GTK_MENU (menu),
-                               gdk_event_get_device ((GdkEvent *) event),
-                               NULL, NULL, NULL, NULL, NULL,
-                               event->button, event->time);
+    gtk_menu_popup_at_pointer (GTK_MENU (menu), (GdkEvent *) event);
 
     g_hash_table_destroy (visible_columns_hash);
     nautilus_column_list_free (all_columns);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]