After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 697591 - Grid/List view must be in the toolbar, and not in the application menu, for coherence with nautilus
Grid/List view must be in the toolbar, and not in the application menu, for c...
Status: RESOLVED FIXED
Product: gnome-documents
Classification: Core
Component: general
3.8.x
Other All
: Normal normal
: ---
Assigned To: GNOME documents maintainer(s)
GNOME documents maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2013-04-08 22:29 UTC by Juanjo Marín
Modified: 2014-01-08 17:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
mainToolbar: Add Grid/List view toggle buttons to the toolbar (2.36 KB, patch)
2013-12-23 13:20 UTC, Debarshi Ray
none Details | Review
mainToolbar: Add a button to toggle Grid/List view (3.84 KB, patch)
2014-01-08 14:18 UTC, Debarshi Ray
committed Details | Review
app-menu: Remove the Grid/List items (1.22 KB, patch)
2014-01-08 14:18 UTC, Debarshi Ray
committed Details | Review

Description Juanjo Marín 2013-04-08 22:29:58 UTC
It is confusing that the grid/list options in Documents are in the application menu and not in the toolbar like in nautilus.
Comment 1 Debarshi Ray 2013-12-23 13:12:01 UTC
I spoke with aday about this and he was OK with making this consistent with Nautilus.
Comment 2 Debarshi Ray 2013-12-23 13:20:50 UTC
Created attachment 264798 [details] [review]
mainToolbar: Add Grid/List view toggle buttons to the toolbar

Couple of questions:

1. Do we retain the entries in the application menu?

2. Do we show the toggle buttons in the toolbar in the selection mode? Currently you can change the view while being in the selection mode from the application menu.
Comment 3 Debarshi Ray 2014-01-02 11:54:53 UTC
I noticed that, unlike Nautilus, Bijiben only shows one button.
Comment 4 Allan Day 2014-01-02 12:55:27 UTC
(In reply to comment #2)
> Created an attachment (id=264798) [details] [review]
> mainToolbar: Add Grid/List view toggle buttons to the toolbar
> 
> Couple of questions:
> 
> 1. Do we retain the entries in the application menu?

I wouldn't. As mentioned on IRC, having these items in the app menu is problematic, since they relate only to the grid/list view, and don't have a visible effect if a document is being viewed.

> 2. Do we show the toggle buttons in the toolbar in the selection mode?
> Currently you can change the view while being in the selection mode from the
> application menu.

That doesn't seem necessary - you should already be in your preferred view before entering selection mode.
Comment 5 Allan Day 2014-01-02 13:04:42 UTC
(In reply to comment #3)
> I noticed that, unlike Nautilus, Bijiben only shows one button.

There are three options that I can think of:

1. Two toggle buttons.
2. Single toggle button (like in Bijiben).
3. Radio buttons in a gear menu.

1 is probably out - it will make the header bar pretty unbalanced - so it's a choice between 2 and 3. Since it could be odd to have a menu with two radio options in it, option 2 might be best.
Comment 6 Debarshi Ray 2014-01-08 14:18:33 UTC
Created attachment 265703 [details] [review]
mainToolbar: Add a button to toggle Grid/List view
Comment 7 Debarshi Ray 2014-01-08 14:18:59 UTC
Created attachment 265704 [details] [review]
app-menu: Remove the Grid/List items
Comment 8 Cosimo Cecchi 2014-01-08 16:24:22 UTC
Is this the desired design? Nautilus always has both buttons visible instead of hiding the one that matches the current view.
Comment 9 Cosimo Cecchi 2014-01-08 16:25:49 UTC
Sorry, ignore my last comment - I just saw Allan's comment above.
Comment 10 Cosimo Cecchi 2014-01-08 16:29:23 UTC
Comment on attachment 265703 [details] [review]
mainToolbar: Add a button to toggle Grid/List view

This looks good to me, but we should probably move away from GdHeaderButtons soon. I think GtkButton these days already applies the same style we need.
Comment 11 Cosimo Cecchi 2014-01-08 16:29:54 UTC
Comment on attachment 265704 [details] [review]
app-menu: Remove the Grid/List items

Looks good
Comment 12 Debarshi Ray 2014-01-08 17:21:48 UTC
Thanks for the review, Cosimo!
Comment 13 Debarshi Ray 2014-01-08 17:23:40 UTC
(In reply to comment #10)
> (From update of attachment 265703 [details] [review])
> This looks good to me, but we should probably move away from GdHeaderButtons
> soon. I think GtkButton these days already applies the same style we need.

Yes, we should. It would also let us drop "header-bar" from LIBGD_INIT. I will write a patch.