[gnome-games] gnotravex: Fix menubar being in the same location as the toolbar



commit 98cae8748e331325098b6669cf104645394383e9
Author: Robert Ancell <robert ancell canonical com>
Date:   Tue Dec 20 18:12:07 2011 +1100

    gnotravex: Fix menubar being in the same location as the toolbar

 gnotravex/src/gnotravex.vala |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gnotravex/src/gnotravex.vala b/gnotravex/src/gnotravex.vala
index 2283e25..3ab98f0 100644
--- a/gnotravex/src/gnotravex.vala
+++ b/gnotravex/src/gnotravex.vala
@@ -141,22 +141,22 @@ public class Gnotravex : Gtk.Application
         grid.show ();
         window.add (grid);
 
-        var toolbar = (Gtk.Toolbar) ui_manager.get_widget ("/Toolbar");
-        toolbar.get_style_context ().add_class (Gtk.STYLE_CLASS_PRIMARY_TOOLBAR);
-        toolbar.show ();
-        grid.attach (toolbar, 0, 0, 1, 1);
-
         var menubar = ui_manager.get_widget ("/MainMenu");
         menubar.show ();
         grid.attach (menubar, 0, 0, 1, 1);
 
+        var toolbar = (Gtk.Toolbar) ui_manager.get_widget ("/Toolbar");
+        toolbar.get_style_context ().add_class (Gtk.STYLE_CLASS_PRIMARY_TOOLBAR);
+        toolbar.show ();
+        grid.attach (toolbar, 0, 1, 1, 1);
+
         view = new PuzzleView ();
         view.hexpand = true;
         view.vexpand = true;
         view.click_to_move = settings.get_boolean (KEY_CLICK_MOVE);
         view.button_press_event.connect (view_button_press_event);
         view.show ();
-        grid.attach (view, 0, 1, 1, 1);
+        grid.attach (view, 0, 2, 1, 1);
 
         var time_item = new Gtk.ToolItem ();
         time_item.set_expand (true);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]