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 771683 - Duplicate menu to set AppMenu to be displayed in the application window
Duplicate menu to set AppMenu to be displayed in the application window
Status: RESOLVED FIXED
Product: gnome-games
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Games maintainers
GNOME Games maintainers
Depends on:
Blocks:
 
 
Reported: 2016-09-20 05:09 UTC by Alejandro HC
Modified: 2017-02-02 09:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
App-Menu (7.71 KB, image/jpeg)
2016-09-20 05:09 UTC, Alejandro HC
  Details
weird menu (183.33 KB, image/png)
2016-09-28 11:53 UTC, Bastián Díaz
  Details
ui: Hide menubar when app menu disabled (853 bytes, patch)
2017-02-01 20:22 UTC, Abhinav Singh
none Details | Review
ui: Hide menubar when app menu disabled (856 bytes, patch)
2017-02-01 20:28 UTC, Abhinav Singh
committed Details | Review

Description Alejandro HC 2016-09-20 05:09:46 UTC
Created attachment 335899 [details]
App-Menu

Description of problem:
By activating display the application menu in the application window via dconf-editor or gnome-tweak-tool, this menu is doubled.


Version-Release number of selected component (if applicable):
Fedora 24 64 bit, Gnome and Budgie Desktop
gnome-games nightly flatpak version

How reproducible:
Always

Steps to Reproduce:
1. Enable display application menu in the application windows
2. Open gnome-games
3. Open app menu

Actual results:
The application menu doubles (see attached)

Expected results:
Only the application menu is displayed in the header bar

Additional info:
Using GNOME is an alternative configuration, but using an alternative GNOME-based desktop (eg. Budgie, Unity, Pantheon, etc), this option is essential to access all available options graphically in the application.
Comment 1 Bastián Díaz 2016-09-28 11:53:01 UTC
Created attachment 336430 [details]
weird menu

The same problem here.

Using: nighly flatpak on fedora 24 XFCE
Comment 2 Adrien Plazas 2017-01-31 20:05:23 UTC
Can any of you provide a screenshot of the problem so we can have a better idea of it?
Comment 3 Abhinav Singh 2017-02-01 09:15:38 UTC
Seems like a bug with Gtk.
The property "show_menubar" for ApplicationWindow doesn't work when it is in ui file but if set to false in code it hides the menubar.
Comment 4 Adrien Plazas 2017-02-01 09:42:22 UTC
Just to be sure I understand the problem:
- you are using a desktop which is not GNOME so you need the app's menu to be moved to the app's window
- you want this menu as a button and not a menubar so it doesn't completely destroy the UI design
- you force the menubar to appear
- the menu bar appears and so you have two menus

Why do you need to force the menubar to appear, do you have the application menu button in the window without enabling it?
Comment 5 Abhinav Singh 2017-02-01 20:22:54 UTC
Created attachment 344741 [details] [review]
ui: Hide menubar when app menu disabled

Set 'show-menubar' false in code because xml property isn't working.
Comment 6 Abhinav Singh 2017-02-01 20:28:04 UTC
Created attachment 344742 [details] [review]
ui: Hide menubar when app menu disabled

Set 'show-menubar' false in code because xml property isn't working.
Comment 7 Adrien Plazas 2017-02-02 09:00:23 UTC
Review of attachment 344742 [details] [review]:

LGTM.
Comment 8 Adrien Plazas 2017-02-02 09:01:21 UTC
Attachment 344742 [details] pushed as fa1aa5a - ui: Hide menubar when app menu disabled