GNOME Bugzilla – Bug 781073
list-view: Misplaced context menu on column headers due to deprecated gtk_menu_popup_for_device()
Last modified: 2017-05-02 15:33:56 UTC
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().
Created attachment 349743 [details] [review] Patch
Review of attachment 349743 [details] [review]: Looks good. Just some nits to pick. > To fix this we will use a straightforward function. What is a “straightforward function”? I think the commit message works without that sentence. The subject line isn’t entirely correct as well. We are replacing the call to the deprecated method, rather than removing the method. ::: src/nautilus-list-view.c @@ +1458,2 @@ gtk_widget_show_all (menu); + gtk_menu_popup_at_pointer (GTK_MENU(menu), (GdkEvent *) event); Leave a space after GTK_MENU. We do that for functions and function-like macros.
Created attachment 349796 [details] [review] Patch
Review of attachment 349796 [details] [review]: LGTM
Attachment 349796 [details] pushed e9f56f4 - list-view: Replaced deprecated gtk_menu_popup_for_device()
Oops. Attachment 349796 [details] pushed as e9f56f4 - list-view: Replaced deprecated gtk_menu_popup_for_device()