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 674939 - Provide an app menu
Provide an app menu
Status: RESOLVED FIXED
Product: gnome-dictionary
Classification: Core
Component: general
3.4.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-dictionary-maint
gnome-dictionary-maint
Depends on:
Blocks: 674957
 
 
Reported: 2012-04-27 12:03 UTC by Allan Day
Modified: 2012-09-14 20:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
window: Make sure to set the application on new windows (1.33 KB, patch)
2012-05-08 20:10 UTC, Florian Müllner
committed Details | Review
window: Base on GtkApplicationWindow rather than GtkWindow (1.35 KB, patch)
2012-05-08 20:10 UTC, Florian Müllner
committed Details | Review
window: Port to GMenu (36.41 KB, patch)
2012-05-08 20:10 UTC, Florian Müllner
committed Details | Review
app: Add a minimal application menu (9.48 KB, patch)
2012-05-08 20:10 UTC, Florian Müllner
committed Details | Review

Description Allan Day 2012-04-27 12:03:24 UTC
See https://live.gnome.org/GnomeGoals/PortToGMenu

Recommended app menu format:

New Window
---
Print...
Save As...
---
✓ Sidebar
✓ Statusbar
---
Preferences
---
Help
About Dictionary
Quit


You can probably nuke the rest of the menu bar.
Comment 1 Florian Müllner 2012-05-08 20:10:29 UTC
Created attachment 213702 [details] [review]
window: Make sure to set the application on new windows
Comment 2 Florian Müllner 2012-05-08 20:10:33 UTC
Created attachment 213703 [details] [review]
window: Base on GtkApplicationWindow rather than GtkWindow
Comment 3 Florian Müllner 2012-05-08 20:10:38 UTC
Created attachment 213704 [details] [review]
window: Port to GMenu

Menus using GtkUIManager/GtkAction should be phased out now in favor
of GMenu. Port to the new API, but don't change any UI just yet ...
Comment 4 Florian Müllner 2012-05-08 20:10:43 UTC
Created attachment 213705 [details] [review]
app: Add a minimal application menu

While Dictionary is a rather small application which probably could
do well with only an application menu and no menubar, this would
require a couple of design changes, as almost all actions currently
in the menus are window-specific.
So for now, leave the menubar alone and only add a minimal application
menu.
Comment 5 Emmanuele Bassi (:ebassi) 2012-05-10 13:31:17 UTC
Review of attachment 213702 [details] [review]:

looks good
Comment 6 Emmanuele Bassi (:ebassi) 2012-05-10 13:31:35 UTC
Review of attachment 213703 [details] [review]:

looks good
Comment 7 Emmanuele Bassi (:ebassi) 2012-05-10 13:33:45 UTC
Review of attachment 213704 [details] [review]:

looks good
Comment 8 Emmanuele Bassi (:ebassi) 2012-05-10 13:35:23 UTC
Review of attachment 213705 [details] [review]:

looks good.

as far as a redesign is concerned, I think we ought to get rid of basically every menu item and have just toolbar items for *some* of the actions.
Comment 9 Florian Müllner 2012-05-10 13:37:35 UTC
(In reply to comment #8)
> as far as a redesign is concerned, I think we ought to get rid of basically
> every menu item and have just toolbar items for *some* of the actions.

Oh, I agree. How about making the "show sidebar"/"show statusbar" global (so they can go in the app menu) and provide toolbar items for "Print"/"Save As"?
Comment 10 Florian Müllner 2012-05-10 13:39:26 UTC
Attachment 213702 [details] pushed as 5fb9b15 - window: Make sure to set the application on new windows
Attachment 213703 [details] pushed as 9006f1a - window: Base on GtkApplicationWindow rather than GtkWindow
Attachment 213704 [details] pushed as 64cf0ba - window: Port to GMenu
Attachment 213705 [details] pushed as 0e9e1cb - app: Add a minimal application menu
Comment 11 Emmanuele Bassi (:ebassi) 2012-05-10 13:43:36 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > as far as a redesign is concerned, I think we ought to get rid of basically
> > every menu item and have just toolbar items for *some* of the actions.
> 
> Oh, I agree. How about making the "show sidebar"/"show statusbar" global (so
> they can go in the app menu)

actually, I'd remove the statusbar option altogether; the side bar could be a button, similar to how Totem does it, or a toggle in the Preferences; right now, it's in the menu for the accelerator. personally, even the sidebar feels like overkill: we use it mostly to show multiple matching words, but that could be done inline within the text area, like:

  'See also: foo, bar, baz, blah, quux'

in case of multiple matches, and with something like:

  'No matches for "blah" found, but these words may be related: foo, bar, baz, quux'

> and provide toolbar items for "Print"/"Save As"?

these are definitely what I had in mind. "Save as" could even go away - saving to text/plain is pretty pointless, when you can print to a PDF.