src/Builder4/MainWindow.bjs
authorAlan Knowles <alan@roojs.com>
Mon, 6 Jun 2016 06:26:38 +0000 (14:26 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 6 Jun 2016 06:26:38 +0000 (14:26 +0800)
src/Builder4/MainWindow.vala

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

index 9cd27a4..e8a2db7 100644 (file)
@@ -16,7 +16,7 @@
    },
    "id" : "MainWindow",
    "default_width" : 800,
-   "* init" : " \n\t  \n    //this.el.show_all();\n    //try {\n         this.el.icon = new Gdk.Pixbuf.from_file (\"roobuilder.png\");\n\t//} catch (Exception e) {\n\t//\tprint(\"no icon found\");\n//\t}",
+   "* init" : " \n\t  \n    //this.el.show_all();\n    //try {\n         this.el.set_icon_name(\"roobuilder\");\n\t//} catch (Exception e) {\n\t//\tprint(\"no icon found\");\n//\t}",
    "| void openNewWindow" : "() {\n\tXcls_MainWindow.singleton().no_windows++;\n        var w = new Xcls_MainWindow();\n        w.ref();\n\n        w.el.show_all();\n        w.initChildren();\n        w.windowstate.switchState(WindowState.State.FILES);\n}\n",
    "# Project.Project project" : "null",
    "# string title" : "\"Application Builder\"",
index 07561d7..d62b8db 100644 (file)
@@ -80,7 +80,7 @@ public class Xcls_MainWindow : Object
 
         //this.el.show_all();
             //try {
-                 this.el.icon = new Gdk.Pixbuf.from_file ("roobuilder.png");
+                 this.el.set_icon_name("roobuilder");
                //} catch (Exception e) {
                //      print("no icon found");
         //     }