summaryrefslogtreecommitdiff
path: root/src/nautilus-pathbar.h
diff options
context:
space:
mode:
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2015-08-02 22:14:40 -0300
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2015-08-02 22:29:36 -0300
commitfdcf91d0e84c203895ff8b28ad6b94d3550e13eb (patch)
tree419904e034c070c268660f19721d70becb7e8a99 /src/nautilus-pathbar.h
parent0c0cd2e7a7b67a4ff598da4000caca09d338958b (diff)
downloadnautilus-wip/gbsneto/pathbar.tar.gz
pathbar: handle context menuwip/gbsneto/pathbar
NautilusView is an abstract class that manages various context menus, depending on the view's location, the clicked point and the implementation details. While this in theory provides a good isolation from other classes, in practice NautilusView manages the pathbar context menu, which is not necessary, as it doesn't depend on the current view by no means. Fix that by making NautilusPathBar manage the context menu by itself instead of the view. To cleanly implement that, add a new signal that matches GtkPlacesSidebar::open-location signature, and adapt NautilusWindow to reuse the existing methods to handle pathbar's new signal. https://bugzilla.gnome.org/show_bug.cgi?id=753158
Diffstat (limited to 'src/nautilus-pathbar.h')
-rw-r--r--src/nautilus-pathbar.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nautilus-pathbar.h b/src/nautilus-pathbar.h
index 471c0e145..3f89785cc 100644
--- a/src/nautilus-pathbar.h
+++ b/src/nautilus-pathbar.h
@@ -47,9 +47,9 @@ struct _NautilusPathBarClass
void (* path_clicked) (NautilusPathBar *path_bar,
GFile *location);
- gboolean (* path_event) (NautilusPathBar *path_bar,
- GdkEventButton *event,
- GFile *location);
+ void (* open_location) (NautilusPathBar *path_bar,
+ GFile *location,
+ GtkPlacesOpenFlags flags);
};
GType nautilus_path_bar_get_type (void) G_GNUC_CONST;