Clones.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 30 Oct 2018 05:42:01 +0000 (13:42 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 30 Oct 2018 05:42:01 +0000 (13:42 +0800)
Clones.vala

Clones.bjs
Clones.vala

index e4d28b6..031f9ea 100644 (file)
@@ -9,7 +9,7 @@
  "items" : [
   {
    "default_width" : 600,
-   "| void show" : "(Gtk.StatusIcon icon)    {\n\n    Gdk.Rectangle area;\n    Gdk.Screen screen;\n    Gtk.Orientation ori;\n    \n    icon.get_geometry(out screen, out area, out ori);\n    \n\tthis.el.set_pointing_to(area);\n    \n    \t//console.log('show all');\n\tthis.el.set_modal(true);\n\n\n\tthis.el.set_position(Gtk.PositionType.TOP);\n//\tthis.el.popup();\n\t// window + header?\n\tthis.el.show_all();\n\tthis.el.set_size_request(800,500);\n\n\t//this.view.el.grab_focus();\n}\n",
+   "| void show" : "(Gtk.Widget icon)    {\n\n    Gdk.Rectangle area;\n    Gdk.Screen screen;\n    Gtk.Orientation ori;\n    \n    icon.get_geometry(out screen, out area, out ori);\n    \n\tthis.el.set_pointing_to(area);\n    \n    \t//console.log('show all');\n\tthis.el.set_modal(true);\n\n\n\tthis.el.set_position(Gtk.PositionType.BOTTOM);\n//\tthis.el.popup();\n\t// window + header?\n\tthis.el.show_all();\n\tthis.el.set_size_request(800,500);\n\n\t//this.view.el.grab_focus();\n}\n",
    "$ deletable" : true,
    "title" : "Manage Clones",
    "xtype" : "Popover",
index 45caad8..03477e1 100644 (file)
@@ -47,7 +47,7 @@ public class Clones : Object
     }
 
     // user defined functions
-    public void show (Gtk.StatusIcon icon)    {
+    public void show (Gtk.Widget icon)    {
     
         Gdk.Rectangle area;
         Gdk.Screen screen;
@@ -61,7 +61,7 @@ public class Clones : Object
        this.el.set_modal(true);
     
     
-       this.el.set_position(Gtk.PositionType.TOP);
+       this.el.set_position(Gtk.PositionType.BOTTOM);
     // this.el.popup();
        // window + header?
        this.el.show_all();