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 644917 - Restore missing mnemonics and fix menu entries
Restore missing mnemonics and fix menu entries
Status: RESOLVED FIXED
Product: cheese
Classification: Applications
Component: general
git master
Other All
: Normal normal
: 2.32
Assigned To: Cheese Maintainer(s)
Cheese Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2011-03-16 13:46 UTC by Luca Ferretti
Modified: 2011-03-17 10:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (4.14 KB, patch)
2011-03-16 13:46 UTC, Luca Ferretti
none Details | Review
Updated patch using "stock-id" (6.63 KB, patch)
2011-03-16 15:45 UTC, Luca Ferretti
none Details | Review

Description Luca Ferretti 2011-03-16 13:46:41 UTC
Created attachment 183538 [details] [review]
Proposed patch

It seems recent changes in cheese removed some existing mnemnonics from menu items and changed others to non standard labels (for instance "Help Context" instead simple "Context" or Save As without ...)

Here is a patch to fix those issues, adding missing _, changing other in order to use the proper mnemonic and fixing wrong labels.

I'm going to ask a string freeze breakage too, in order to commit this on git ASAP (it should be a simple task for translators, mostly they have to restore previous translations)
Comment 1 Matthias Clasen 2011-03-16 14:23:36 UTC
Review of attachment 183538 [details] [review]:

::: data/cheese-actions.ui
@@ +71,2 @@
             <property name="stock_id">gtk-save-as</property>
             <signal name="activate" handler="cheese_main_window_on_file_save_as"/>

I'd say just use the stock label here ? (although that is  currently still '_Save As', without the ellipsis.

@@ +105,3 @@
           <object class="GtkToggleAction" id="fullscreen">
             <property name="name">Fullscreen</property>
+            <property name="label" translatable="yes">_Fullscreen</property>

This is the same as the stock label for GTK_STOCK_FULLSCREEN, so just use that, maybe ?

@@ +216,3 @@
           <object class="GtkAction" id="preferences">
             <property name="name">Preferences</property>
+            <property name="label" translatable="yes">Prefere_nces</property>

Again, could just use the stock label for GTK_STOCK_PREFERENCE here, though that is '_Preferences'
Comment 2 daniel g. siegel 2011-03-16 15:21:06 UTC
thanks a lot guys!

luca, could you commit the patch integrating matthias review?

not sure although, if you have to ask for a string freeze break here.
Comment 3 Luca Ferretti 2011-03-16 15:45:47 UTC
Created attachment 183548 [details] [review]
Updated patch using "stock-id"

Good catch, Matthias. I've updated the patch to directly use stock-id where applicable. This includes Open, Quit and Delete action. 

But I prefer to keep the custom label for "Save As". The scope was providing missing "..." and other applications are yet providing the sull "Save As..." (so translations are yet warned about it).

Maybe could be interesting provide a way to automatically add "..." when needed. Something like a "require-user" GtkAction property that could add "..." when the action appears as menu entry or simple button and hide them when on toolbar or similar. So we can reuse more and more stock labels.
Comment 4 Luca Ferretti 2011-03-16 16:12:56 UTC
David, yes, we are in string freeze, but I've yet sent the break request :)
Comment 5 Luca Ferretti 2011-03-17 10:14:34 UTC
Committed, thanks.