GNOME Bugzilla – Bug 622658
GTK_STOCK_FILE Stock Label
Last modified: 2010-08-25 04:48:02 UTC
There is an icon, but not a translatable label for GTK_STOCK_FILE. It seems like there should be so that it gets translated all in one place. Similar to GTK_STOCK_EDIT.
Created attachment 164548 [details] [review] Simple patch to add the label.
I believe this is intentional. Stock items should not be used in the menubar.
I can see not wanting people to use gtk_image_menu_item_new_from_stock() as that would put an icon in the menu bar as well. But I think that doing a gtk_stock_item_lookup() to get the label and using that in gtk_menu_item_new() makes a bunch of sense so that there's only one "_File" string to translate.
The reason it is like this is that STOCK_FILE was only added to have a stock icon for the file chooser. But I don't think there is anything fundamentally wrong with adding the label. Please go ahead.
Comment on attachment 164548 [details] [review] Simple patch to add the label. commit 6330ea9e43edd3025d3281f5779e6352eb7f2308
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
I think this should be documented, otherwise it will lead to surprises.
Created attachment 166448 [details] [review] Mention that GTK_STOCK_FILE only has a label since 3.0