diff options
author | Carlos Soriano <csoriano@gnome.org> | 2016-02-10 21:35:33 +0100 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2016-02-12 17:52:24 +0100 |
commit | a88310dd2143476bf34d2d892807d0457d2f7d85 (patch) | |
tree | ec37d67142dcfcdb995fd14527d26ba7f2e8423e /src/nautilus-canvas-view.c | |
parent | b1392c7a6cdac5cc978bf40560f04e966cca54bb (diff) | |
download | nautilus-a88310dd2143476bf34d2d892807d0457d2f7d85.tar.gz |
search: use a separate view setting for search
So we can select what type of view do we want for search independently
of what we normally use.
This is needed since we default to switch to list view for search, but
we would like to allow users to select a different view. However,
instead of adding a preference in the preference dialog, we can do it
more straightforward and change the setting when we are in search.
On the way, rework all the enums and views id for a saner code...
Diffstat (limited to 'src/nautilus-canvas-view.c')
-rw-r--r-- | src/nautilus-canvas-view.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nautilus-canvas-view.c b/src/nautilus-canvas-view.c index 1d498e04d..a5de12a6a 100644 --- a/src/nautilus-canvas-view.c +++ b/src/nautilus-canvas-view.c @@ -1811,10 +1811,10 @@ canvas_view_scroll_to_file (NautilusFilesView *view, } } -static const char * +static guint nautilus_canvas_view_get_id (NautilusFilesView *view) { - return NAUTILUS_CANVAS_VIEW_ID; + return NAUTILUS_VIEW_GRID_ID; } static void |