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 699910 - Selection pattern design updates
Selection pattern design updates
Status: RESOLVED FIXED
Product: gnome-documents
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME documents maintainer(s)
GNOME documents maintainer(s)
3.10
: 687649 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-05-08 09:17 UTC by Allan Day
Modified: 2013-08-08 09:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
selections: Implement the new selection toolbar (10.76 KB, patch)
2013-08-05 09:14 UTC, Debarshi Ray
reviewed Details | Review
mainToolbar: Use a "Cancel" button instead of "Done" (1.02 KB, patch)
2013-08-05 09:17 UTC, Debarshi Ray
committed Details | Review
selections: Exit the selection mode when an action has been performed (3.36 KB, patch)
2013-08-05 11:18 UTC, Debarshi Ray
reviewed Details | Review
selections: Implement the new selection toolbar (11.04 KB, patch)
2013-08-05 13:32 UTC, Debarshi Ray
committed Details | Review
selections: Exit the selection mode when an action has been performed (3.47 KB, patch)
2013-08-05 13:36 UTC, Debarshi Ray
committed Details | Review
selections: Tighten the conditions for the actions in selection mode (2.24 KB, patch)
2013-08-06 23:44 UTC, Debarshi Ray
rejected Details | Review
selections: Use labels instead of tooltips for Open (1.04 KB, patch)
2013-08-07 00:34 UTC, Debarshi Ray
committed Details | Review

Description Allan Day 2013-05-08 09:17:22 UTC
There's been a round of changes to the selection pattern; these are intended to overcome a bunch of issues that we've encountered with the existing design.

Details of the updated design can be found here:

https://live.gnome.org/GnomeOS/Design/Whiteboards/SelectionPattern
Comment 1 Cosimo Cecchi 2013-06-07 15:22:02 UTC
*** Bug 687649 has been marked as a duplicate of this bug. ***
Comment 2 Debarshi Ray 2013-08-05 09:14:19 UTC
Created attachment 250837 [details] [review]
selections: Implement the new selection toolbar
Comment 3 Debarshi Ray 2013-08-05 09:17:48 UTC
Created attachment 250838 [details] [review]
mainToolbar: Use a "Cancel" button instead of "Done"
Comment 4 Debarshi Ray 2013-08-05 11:18:11 UTC
Created attachment 250848 [details] [review]
selections: Exit the selection mode when an action has been performed
Comment 5 Debarshi Ray 2013-08-05 11:20:50 UTC
I don't know what the behaviour should be when performing an action opens a modal dialog. Should we exit from the selection mode immediately when the dialog is opened? Or should we only exit when the dialog has been destroyed?
Comment 6 Cosimo Cecchi 2013-08-05 11:51:23 UTC
Review of attachment 250837 [details] [review]:

Thanks, looks good to me.
Comment 7 Cosimo Cecchi 2013-08-05 11:52:18 UTC
Review of attachment 250837 [details] [review]:

Thanks, looks good to me.

::: src/selections.js
@@ +742,1 @@
+        let toolbar = new Gtk.HeaderBar();

Actually, thinking more about this, can't you just use a GtkBox instead?
Comment 8 Cosimo Cecchi 2013-08-05 11:52:34 UTC
Review of attachment 250838 [details] [review]:

Sure
Comment 9 Cosimo Cecchi 2013-08-05 11:55:40 UTC
Review of attachment 250848 [details] [review]:

Looks good other than the comment below.

::: src/selections.js
@@ +796,3 @@
 
+        this._setItemVisibility();
+        this.widget.set_reveal_child(true);

I feel this should be part of the first patch maybe?
Comment 10 Cosimo Cecchi 2013-08-05 11:57:44 UTC
(In reply to comment #5)
> I don't know what the behaviour should be when performing an action opens a
> modal dialog. Should we exit from the selection mode immediately when the
> dialog is opened? Or should we only exit when the dialog has been destroyed?

I think it should exit the mode when the dialog is destroyed; it's useful to see the selection in the background and changing it while at the same time opening a dialog might feel a little too noisy.
Allan, Jon, what do you think?
Comment 11 Debarshi Ray 2013-08-05 12:44:30 UTC
(In reply to comment #7)
> Review of attachment 250837 [details] [review]:
> 
> Thanks, looks good to me.
> 
> ::: src/selections.js
> @@ +742,1 @@
> +        let toolbar = new Gtk.HeaderBar();
> 
> Actually, thinking more about this, can't you just use a GtkBox instead?

I found Gtk.HeaderBar to be more convenient because:
- You get the behaviour of the pack_start and pack_end methods for free. Otherwise, to have a bunch of buttons on the left and few on the right, you have to do some magic yourself. This used to be the case before.
- You also get the spacing/padding between the buttons/bar for free.

Also, gnome-weather uses a Gtk.HeaderBar. So ... :-)
Comment 12 Debarshi Ray 2013-08-05 13:10:45 UTC
(In reply to comment #10)
> (In reply to comment #5)
> > I don't know what the behaviour should be when performing an action opens a
> > modal dialog. Should we exit from the selection mode immediately when the
> > dialog is opened? Or should we only exit when the dialog has been destroyed?
> 
> I think it should exit the mode when the dialog is destroyed; it's useful to
> see the selection in the background and changing it while at the same time
> opening a dialog might feel a little too noisy.
> Allan, Jon, what do you think?

After talking to Jon, we decided to quit the selection mode if the response from the dialog was positive. In case of a negative response (say "Cancel") we should stay in the mode.
Comment 13 Debarshi Ray 2013-08-05 13:32:23 UTC
Created attachment 250876 [details] [review]
selections: Implement the new selection toolbar
Comment 14 Debarshi Ray 2013-08-05 13:36:26 UTC
Created attachment 250877 [details] [review]
selections: Exit the selection mode when an action has been performed
Comment 15 Debarshi Ray 2013-08-05 13:37:05 UTC
(In reply to comment #9)
> Review of attachment 250848 [details] [review]:
> 
> Looks good other than the comment below.
> 
> ::: src/selections.js
> @@ +796,3 @@
> 
> +        this._setItemVisibility();
> +        this.widget.set_reveal_child(true);
> 
> I feel this should be part of the first patch maybe?

Done.
Comment 16 Cosimo Cecchi 2013-08-06 08:26:55 UTC
Review of attachment 250876 [details] [review]:

Looks good
Comment 17 Cosimo Cecchi 2013-08-06 08:27:56 UTC
Review of attachment 250877 [details] [review]:

Sure
Comment 18 Debarshi Ray 2013-08-06 23:44:48 UTC
Created attachment 251006 [details] [review]
selections: Tighten the conditions for the actions in selection mode
Comment 19 Debarshi Ray 2013-08-07 00:34:22 UTC
Created attachment 251008 [details] [review]
selections: Use labels instead of tooltips for Open
Comment 20 Cosimo Cecchi 2013-08-07 09:17:18 UTC
Review of attachment 251006 [details] [review]:

I might already have fixed this with a slightly different patch in git master yesterday - can you see if this still applies?
Comment 21 Cosimo Cecchi 2013-08-07 09:17:44 UTC
Review of attachment 251008 [details] [review]:

Looks good
Comment 22 Debarshi Ray 2013-08-08 09:47:02 UTC
(In reply to comment #20)
> Review of attachment 251006 [details] [review]:
> 
> I might already have fixed this with a slightly different patch in git master
> yesterday - can you see if this still applies?

Yes, your patch already fixes it and it takes a more elegant approach than mine. This patch is no longer needed.