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 686883 - Make selection mode work/look like documents
Make selection mode work/look like documents
Status: RESOLVED DUPLICATE of bug 686941
Product: gnome-boxes
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: --
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks: 686781
 
 
Reported: 2012-10-25 18:40 UTC by Alexander Larsson
Modified: 2016-03-31 13:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Make selection toolbar look like gnome-documents (4.27 KB, patch)
2012-10-25 18:41 UTC, Alexander Larsson
committed Details | Review
Remove unused css (2.09 KB, patch)
2012-10-25 18:41 UTC, Alexander Larsson
committed Details | Review
Add select All/None/Running menu to selection toolbar (4.24 KB, patch)
2012-10-25 18:41 UTC, Alexander Larsson
committed Details | Review
Add parenthesis around "Click on items to select them" (1.01 KB, patch)
2012-10-25 18:41 UTC, Alexander Larsson
committed Details | Review
searchbar: Clear search when dismissed (794 bytes, patch)
2012-10-26 08:49 UTC, Alexander Larsson
committed Details | Review
Add search button to selection mode toolbar too (2.37 KB, patch)
2012-10-26 08:49 UTC, Alexander Larsson
committed Details | Review
Rename Selectiion enum to SelectionCriteria (2.72 KB, patch)
2012-10-29 12:13 UTC, Alexander Larsson
committed Details | Review

Description Alexander Larsson 2012-10-25 18:40:32 UTC
We're currently not using the standard themeing and looks for the selection toolbar. It should look like gnome-documents.
Comment 1 Alexander Larsson 2012-10-25 18:41:28 UTC
Created attachment 227294 [details] [review]
Make selection toolbar look like gnome-documents

This uses the standard Adwaita themeing, plus it copies the size
and positioning of the toolbar from documents. It also uses
the same left/right group split.
Comment 2 Alexander Larsson 2012-10-25 18:41:31 UTC
Created attachment 227295 [details] [review]
Remove unused css

We don't need to have custom CSS for the selection bar anymore.
Comment 3 Alexander Larsson 2012-10-25 18:41:34 UTC
Created attachment 227296 [details] [review]
Add select All/None/Running menu to selection toolbar

This is similar to gnome-documents, although we added
the "running" state as proposed by jimmac.
Comment 4 Alexander Larsson 2012-10-25 18:41:37 UTC
Created attachment 227297 [details] [review]
Add parenthesis around "Click on items to select them"

This is what gnome-documents does in the selection toolbar.
Comment 5 Alexander Larsson 2012-10-25 18:44:33 UTC
These patches depend on the ones in bug #686777.

Also, this does not really change the order of the buttons wrt the 
split in the middle. But I've been discussing this with the design folks, and
I don't think the current use is *quite* right. It should be more like
the things on the left are actions on the items, and the right is more like properties (although they were a little fuzzy on this).

I think the right split for us is probably 
favourite, save, delete on the left
and properties on the right

Although we don't have properties yet.
Comment 6 Alexander Larsson 2012-10-25 18:45:35 UTC
Oh, and another bug is that we should show the search button also in selection mode, like documents.
Comment 7 Alexander Larsson 2012-10-26 08:49:29 UTC
Created attachment 227336 [details] [review]
searchbar: Clear search when dismissed

When we're not showing the search field we should
always show all entries.
Comment 8 Alexander Larsson 2012-10-26 08:49:32 UTC
Created attachment 227337 [details] [review]
Add search button to selection mode toolbar too
Comment 9 Alexander Larsson 2012-10-26 09:42:00 UTC
Also, we should add hover text to the overlay toolbar items.
Comment 10 Zeeshan Ali 2012-10-26 13:16:22 UTC
Review of attachment 227294 [details] [review]:

Not any expert on theming so if you have tested it and it works/looks good, do commit! + I don't see any obvious problems in the patch.
Comment 11 Zeeshan Ali 2012-10-26 13:37:36 UTC
Review of attachment 227295 [details] [review]:

Always nice to see lines getting removed. :) Same thing for this one, if it works/looks good..
Comment 12 Zeeshan Ali 2012-10-26 13:37:58 UTC
Review of attachment 227294 [details] [review]:

Not any expert on theming so if you have tested it and it works/looks good, do commit! + I don't see any obvious problems in the patch.
Comment 13 Zeeshan Ali 2012-10-26 13:44:33 UTC
Review of attachment 227296 [details] [review]:

Looks good.

::: src/collection-view.vala
@@ +2,3 @@
 using Clutter;
 
+public enum Boxes.Selection {

I'd recommend: Selection -> SelectionCriteria
Comment 14 Zeeshan Ali 2012-10-26 13:47:52 UTC
Review of attachment 227297 [details] [review]:

ACK
Comment 15 Zeeshan Ali 2012-10-26 13:50:39 UTC
Review of attachment 227336 [details] [review]:

by 'entries' you meant 'item' in the commit log? Good otherwise but log detail got me confused.
Comment 16 Zeeshan Ali 2012-10-26 14:02:27 UTC
Review of attachment 227337 [details] [review]:

ACK anyways.

::: src/topbar.vala
@@ +18,3 @@
     private Gtk.Spinner spinner;
     private Gtk.ToggleButton search_btn;
+    private Gtk.ToggleButton search2_btn;

search2_btn -> search_btn2 ?
Comment 17 Alexander Larsson 2012-10-26 15:00:41 UTC
Attachment 227294 [details] pushed as 15ede51 - Make selection toolbar look like gnome-documents
Attachment 227295 [details] pushed as 9cdb870 - Remove unused css
Attachment 227296 [details] pushed as 7b0c636 - Add select All/None/Running menu to selection toolbar
Attachment 227297 [details] pushed as 821956d - Add parenthesis around "Click on items to select them"
Attachment 227336 [details] pushed as 6f320f7 - searchbar: Clear search when dismissed
Attachment 227337 [details] pushed as 7013c3a - Add search button to selection mode toolbar too
Comment 18 Alexander Larsson 2012-10-29 12:13:17 UTC
Review of attachment 227296 [details] [review]:

::: src/collection-view.vala
@@ +2,3 @@
 using Clutter;
 
+public enum Boxes.Selection {

Missed this one, and i agree. Will change.
Comment 19 Alexander Larsson 2012-10-29 12:13:57 UTC
Created attachment 227519 [details] [review]
Rename Selectiion enum to SelectionCriteria
Comment 20 Alexander Larsson 2012-10-29 12:15:05 UTC
Comment on attachment 227519 [details] [review]
Rename Selectiion enum to SelectionCriteria

Attachment 227519 [details] pushed as 587b309 - Rename Selectiion enum to SelectionCriteria
Comment 21 Alexander Larsson 2012-10-29 12:16:34 UTC
Still missing:
* hover text, or switch to text instead of icons if the designers agree
* decide what is the right grouping
Comment 22 Alexander Larsson 2013-01-25 15:37:00 UTC
Bug 686941 seems to say we should use text for the buttons.
Comment 23 Alexander Larsson 2013-01-28 14:53:04 UTC
I think the grouping is right as is, so making this a dup of 686941

*** This bug has been marked as a duplicate of bug 686941 ***