src/Builder4/About.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 17 Mar 2015 14:31:51 +0000 (22:31 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 17 Mar 2015 14:31:51 +0000 (22:31 +0800)
src/Builder4/About.vala

src/Builder4/About.bjs
src/Builder4/About.vala

index b4c3d75..d121846 100644 (file)
@@ -11,7 +11,7 @@
     "delete_event" : "(self, event) => {\n    this.el.hide();\n    return true;\n\n}\n ",
     "response" : "(rid) => {\n    this.el.hide();\n}\n"
    },
-   "|    void show" : "() {\n    this.el.show_all();\n}\n ",
+   "|    void show" : "(Gtk.Window parent) {\n    this.el.set_transient_for(parent);\n    this.el.modal = true;\n    this.el.show();\n}\n ",
    "copyright" : "LGPL",
    "xtype" : "AboutDialog",
    "program_name" : "app.Builder.js",
index 298b09f..a5560d2 100644 (file)
@@ -43,7 +43,9 @@ public class About : Object
     }
 
     // user defined functions 
-    public    void show () {
-        this.el.show_all();
+    public    void show (Gtk.Window parent) {
+        this.el.set_transient_for(parent);
+        this.el.modal = true;
+        this.el.show();
     }
 }