diff options
author | Carlos Soriano <csoriano@gnome.org> | 2016-03-22 17:20:21 +0100 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2016-04-14 10:35:15 +0200 |
commit | 5f295bd92cb4dabc44e76dd76e83df8190373bd8 (patch) | |
tree | e4a10e5a68d8db865cc9e0adb984c723f770d677 /src/nautilus-window.h | |
parent | ef1d15273b12b9f292d50d734dbb6c1cee2520d9 (diff) | |
download | nautilus-5f295bd92cb4dabc44e76dd76e83df8190373bd8.tar.gz |
window-slot: use inheritance for other locations view
We need to special case the other locations view when using that
location, since it's not a files-view and doesn't support several things
that we usually support, like the changes between icon view and list
view.
Also we specifically special case its creation in window slot and we
disable few actions that are not available on it.
This patch creates a other locations slot, which will handle all of it.
The class that is responsible of creating one type of slot or another is
the window, and will use a vfunc that will request whether the slot
handles a location or not and will act accordingly.
In upcoming patches we will move all the special casing of this and the
desktop in the window slot to its respective subclasses now that we have
everything ready.
https://bugzilla.gnome.org/show_bug.cgi?id=712620
Diffstat (limited to 'src/nautilus-window.h')
-rw-r--r-- | src/nautilus-window.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nautilus-window.h b/src/nautilus-window.h index 10cc2ba97..c803df96f 100644 --- a/src/nautilus-window.h +++ b/src/nautilus-window.h @@ -89,7 +89,8 @@ struct NautilusWindowClass { /* Use this in case your window has a special slot. Also is expected that * the slot is initialized with nautilus_window_initialize_slot. */ - NautilusWindowSlot * (* create_slot) (NautilusWindow *window); + NautilusWindowSlot * (* create_slot) (NautilusWindow *window, + GFile *location); }; typedef struct _NautilusWindowPrivate NautilusWindowPrivate; |