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 787153 - toolbar: Add explanatory tooltips to buttons
toolbar: Add explanatory tooltips to buttons
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-09-01 18:56 UTC by Daniel Boles
Modified: 2017-09-17 16:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
toolbar: Add explanatory tooltips to buttons (2.84 KB, patch)
2017-09-01 18:56 UTC, Daniel Boles
none Details | Review
toolbar: Add explanatory tooltips to buttons (3.36 KB, patch)
2017-09-02 11:38 UTC, Daniel Boles
committed Details | Review

Description Daniel Boles 2017-09-01 18:56:47 UTC
These are nice to have for anyone, and might be essential for a11y.
Comment 1 Daniel Boles 2017-09-01 18:56:51 UTC
Created attachment 358958 [details] [review]
toolbar: Add explanatory tooltips to buttons
Comment 2 Ernestas Kulik 2017-09-01 21:48:05 UTC
Review of attachment 358958 [details] [review]:

Thanks!

One question: isn’t sentence capitalization more appropriate for tooltips?

::: src/resources/ui/nautilus-toolbar.ui
@@ +163,3 @@
             <property name="visible">False</property>
             <property name="popover">operations_popover</property>
+            <property name="tooltip-text" translatable="yes">Operations</property>

I think that “Show operations” would indeed fit better here.
Comment 3 Daniel Boles 2017-09-02 06:28:05 UTC
> isn’t sentence capitalization more appropriate for tooltips?

I noticed after that Nautilus preferred this, but it's unclear to me. Relative to the HIG,
 * to me, such tooltips are titles/'headings' for the buttons, hence title-case?
 * but they happen to be grammatically self-contained too, hence sentence case?

The HIG doesn't seem to address tooltips specifically. There are other situations where it seems to enforce case by widget - e.g.
 * menu items, like the PlacesSidebar's "Open in New _Tab", already in Nautilus
 * or the new GtkEntry "Insert Emoji" in menu, which we copied to the tooltip
- but tooltips do not seem to be so clear-cut. In the case of menu items, it lumps them in with labels that are 'not usually complete sentences', but that seems to apply even if they are (or could be, when read as commands to the app).

Anyway, I guess I should just follow what Nautilus normally does, by using sentence case - and you can have the larger debate about capitalisation another time. :P
Comment 4 Ernestas Kulik 2017-09-02 07:44:59 UTC
(In reply to Daniel Boles from comment #3)
> > isn’t sentence capitalization more appropriate for tooltips?
> 
> I noticed after that Nautilus preferred this, but it's unclear to me.
> Relative to the HIG,
>  * to me, such tooltips are titles/'headings' for the buttons, hence
> title-case?
>  * but they happen to be grammatically self-contained too, hence sentence
> case?
> 
> The HIG doesn't seem to address tooltips specifically. There are other
> situations where it seems to enforce case by widget - e.g.
>  * menu items, like the PlacesSidebar's "Open in New _Tab", already in
> Nautilus
>  * or the new GtkEntry "Insert Emoji" in menu, which we copied to the tooltip
> - but tooltips do not seem to be so clear-cut. In the case of menu items, it
> lumps them in with labels that are 'not usually complete sentences', but
> that seems to apply even if they are (or could be, when read as commands to
> the app).
> 
> Anyway, I guess I should just follow what Nautilus normally does, by using
> sentence case - and you can have the larger debate about capitalisation
> another time. :P

Looking at the HIG from the glorious 2.x days, it seems to suggest sentence capitalization, but I’m not sure how much of it still applies.
Comment 5 Daniel Boles 2017-09-02 11:38:54 UTC
Created attachment 358977 [details] [review]
toolbar: Add explanatory tooltips to buttons

These are nice to have for anyone and might also help with a11y.
Comment 6 Ernestas Kulik 2017-09-02 18:35:28 UTC
Review of attachment 358977 [details] [review]:

LGTM
Comment 7 Daniel Boles 2017-09-12 21:39:12 UTC
Comment on attachment 358977 [details] [review]
toolbar: Add explanatory tooltips to buttons

Thanks. Since it looks like this can go in now, I'd appreciate if someone else can commit it, until I figure out what my gitlab account is, if I have one. :P
Comment 8 Carlos Soriano 2017-09-12 22:23:26 UTC
You don't need any GitLab account or any change, everything should work as before. Feel free to commit! :)
Comment 9 Daniel Boles 2017-09-14 22:15:25 UTC
*tries* oh yeah! off to master it goes.
Comment 10 Piotr Drąg 2017-09-14 22:19:23 UTC
There is no gnome-3-26 yet, so you just broke the string freeze. :)
Comment 11 Piotr Drąg 2017-09-14 22:21:52 UTC
Review of attachment 358977 [details] [review]:

::: src/resources/ui/nautilus-toolbar.ui
@@ +107,3 @@
         <property name="sensitive">True</property>
         <property name="action_name">slot.files-view-mode-toggle</property>
+        <property name="tooltip-text" Vranslatable="yes">Toggle view</property>

Oops.
Comment 12 Daniel Boles 2017-09-14 22:25:36 UTC
hahaha... oh dear. Thanks for both of those!

I thought I had checked and saw a 3.26 branch, then I obviously confused Carlos into approving it, and convinced myself. :P

reverted by https://gitlab.gnome.org/GNOME/nautilus/commit/1cdbecd1625bc433679d0c3758ddcc4a40f46cbb
Comment 13 Piotr Drąg 2017-09-17 15:50:26 UTC
Nautilus has branched for gnome-3-26, so master is unfrozen.
Comment 14 Daniel Boles 2017-09-17 16:13:30 UTC
Attachment 358977 [details] pushed as 6649444 - toolbar: Add explanatory tooltips to buttons


committed with the typo fixed. Thanks for the reminder!