diff options
author | António Fernandes <antoniof@gnome.org> | 2018-01-16 17:14:22 +0000 |
---|---|---|
committer | António Fernandes <antoniof@gnome.org> | 2018-01-29 22:28:28 +0000 |
commit | 44e005079b0ea57e9f2737b325bf902d2bbfa76f (patch) | |
tree | 8134a87fd6480a3fe7275774601b01f7cf33c908 /src/nautilus-pathbar.c | |
parent | 53f552e3d5ab2540769b9d1fa3ab4a95662809bc (diff) | |
download | nautilus-44e005079b0ea57e9f2737b325bf902d2bbfa76f.tar.gz |
ui-utilities: Rename and simplify pop_up_context_menu()
nautilus_pop_up_context_menu() was implemented in bb884cb6 when it was
a wrapper for gtk_menu_popup(). But gtk_menu_popup() has since
deprecated, so it was ported to gtk_menu_popup_at_pointer() in 1f57c5b1.
However, _popup_at_pointer() is not enough for our context menu needs.
We will use _popup_at_rect() and _popup_at_widget in future commits.
Rename to nautilus_pop_up_context_menu_at_pointer() to reflect this
specific use. Also, simplify the code, as GtkMenu's API already
interprets event=NULL as the current event.
Diffstat (limited to 'src/nautilus-pathbar.c')
-rw-r--r-- | src/nautilus-pathbar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nautilus-pathbar.c b/src/nautilus-pathbar.c index dc8ee6dbe..8466e31de 100644 --- a/src/nautilus-pathbar.c +++ b/src/nautilus-pathbar.c @@ -1626,9 +1626,9 @@ real_pop_up_pathbar_context_menu (NautilusPathBar *self) priv = nautilus_path_bar_get_instance_private (self); - nautilus_pop_up_context_menu (GTK_WIDGET (self), - priv->context_menu, - priv->context_menu_event); + nautilus_pop_up_context_menu_at_pointer (GTK_WIDGET (self), + priv->context_menu, + priv->context_menu_event); } static void |