Commit daf6eace authored by Robert Roth's avatar Robert Roth

Moved appmenu items to primary menu (#11)

parent 08b93d5e
......@@ -149,7 +149,6 @@ public class SwellFoop : Gtk.Application
menu.append_section (null, section);
section.append (_("_Help"), "app.help");
section.append (_("_About Swell Foop"), "app.about");
set_app_menu (menu);
/* Create a headerbar */
headerbar = new Gtk.HeaderBar ();
......@@ -158,6 +157,13 @@ public class SwellFoop : Gtk.Application
headerbar.show_close_button = true;
window.set_titlebar (headerbar);
/* Add the primary menu button */
var primary_menu = new Gtk.MenuButton ();
primary_menu.show ();
primary_menu.set_image (new Gtk.Image.from_icon_name ("open-menu-symbolic", Gtk.IconSize.BUTTON));
primary_menu.set_menu_model (menu);
headerbar.pack_end (primary_menu);
/* show the current score */
update_score_cb (0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment