diff options
author | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2015-08-11 12:33:39 -0300 |
---|---|---|
committer | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2015-08-16 07:21:01 -0300 |
commit | dd90a18a5c66b90323cfd779b329425fda7ffbeb (patch) | |
tree | e3616a617127795e50e210f5542bf60a8cfc207b /src/nautilus-empty-view.c | |
parent | ae96063471fd31f1c58818dfa4b0440ce8302f7e (diff) | |
download | nautilus-wip/gbsneto/view-menu.tar.gz |
view: handle view menuwip/gbsneto/view-menu
NautilusToolbar handles the view menu, requiring
direct access to the underlying view inside the
window slot.
Since we're wiping out every access to the underlying
view, we shouldn't access it from NautilusToolbar.
To fix that, makes the view handle the view widget.
Since we're making NautilusWindowSlot a wrapper, add
the necessary properties for it to expose view data
without exposing the view itself.
Diffstat (limited to 'src/nautilus-empty-view.c')
-rw-r--r-- | src/nautilus-empty-view.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nautilus-empty-view.c b/src/nautilus-empty-view.c index 9881b841a..5ece1c4bf 100644 --- a/src/nautilus-empty-view.c +++ b/src/nautilus-empty-view.c @@ -229,6 +229,12 @@ nautilus_empty_view_get_id (NautilusView *view) return NAUTILUS_EMPTY_VIEW_ID; } +static GIcon* +nautilus_empty_view_get_icon (NautilusView *view) +{ + return NULL; +} + static void nautilus_empty_view_class_init (NautilusEmptyViewClass *class) { @@ -266,6 +272,7 @@ nautilus_empty_view_class_init (NautilusEmptyViewClass *class) nautilus_view_class->get_view_id = nautilus_empty_view_get_id; nautilus_view_class->get_first_visible_file = nautilus_empty_view_get_first_visible_file; nautilus_view_class->scroll_to_file = nautilus_empty_view_scroll_to_file; + nautilus_view_class->get_icon = nautilus_empty_view_get_icon; } static void |