src/Builder4/MainWindow.bjs
authorAlan Knowles <alan@roojs.com>
Thu, 7 May 2015 10:55:03 +0000 (18:55 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 7 May 2015 10:55:03 +0000 (18:55 +0800)
src/Builder4/MainWindow.vala

src/Builder4/MainWindow.bjs
src/Builder4/MainWindow.vala

index b916136..f5010f0 100644 (file)
@@ -42,7 +42,7 @@
         "button_press_event" : "  (self, ev) => {\n     \n        \n    var p = _this.topbarmenu;\n    p.el.set_screen(Gdk.Screen.get_default());\n    p.el.show_all();\n     p.el.popup(null, null, null, ev.button, ev.time);\n     return true;\n}"
        },
        "* pack" : "pack_start",
-       "xtype" : "Button",
+       "xtype" : "MenuButton",
        "$ xns" : "Gtk",
        "items" : [
         {
index a796ed3..c0cc218 100644 (file)
@@ -142,26 +142,26 @@ public class Xcls_MainWindow : Object
             // set gobject values
             this.el.title = "Application Builder";
             this.el.show_close_button = true;
-            var child_0 = new Xcls_Button3( _this );
+            var child_0 = new Xcls_MenuButton3( _this );
             child_0.ref();
             this.el.pack_start (  child_0.el  );
         }
 
         // user defined functions 
     }
-    public class Xcls_Button3 : Object 
+    public class Xcls_MenuButton3 : Object 
     {
-        public Gtk.Button el;
+        public Gtk.MenuButton el;
         private Xcls_MainWindow  _this;
 
 
             // my vars (def)
 
         // ctor 
-        public Xcls_Button3(Xcls_MainWindow _owner )
+        public Xcls_MenuButton3(Xcls_MainWindow _owner )
         {
             _this = _owner;
-            this.el = new Gtk.Button();
+            this.el = new Gtk.MenuButton();
 
             // my vars (dec)