src/Builder4/ValaProjectSettingsPopover.bjs
authorAlan <alan@roojs.com>
Thu, 4 Jan 2024 09:49:14 +0000 (17:49 +0800)
committerAlan <alan@roojs.com>
Thu, 4 Jan 2024 09:49:14 +0000 (17:49 +0800)
src/Builder4/ValaProjectSettingsPopover.vala

src/Builder4/ValaProjectSettingsPopover.bjs
src/Builder4/ValaProjectSettingsPopover.vala

index 749951d..df33c1b 100644 (file)
@@ -5,7 +5,6 @@
   {
    "$ Project.Callback doneObj" : "null",
    "$ xns" : "Gtk",
-   "Gtk.PositionType position" : "Gtk.PositionType.RIGHT",
    "Project.Gtk project" : "null",
    "Project.GtkValaSettings? selected_target" : "null",
    "Xcls_MainWindow window" : "null",
     "//\tGtk.Allocation rect;",
     "\t//btn.get_allocation(out rect);",
     " //   this.el.set_pointing_to(rect);",
-    "\tthis.el.set_transient_for(pwin);",
+    " this.el.application = pwin.application; // ??? make it modal?",
+    "\t this.el.set_transient_for(pwin);",
+    "\t ",
     "\t// window + header?",
     "\t// print(\"SHOWALL - POPIP\\n\");",
     "\tthis.el.set_size_request(800,800);",
index 19e0a34..cdbf088 100644 (file)
@@ -37,7 +37,6 @@
             // my vars (def)
         public Project.Callback doneObj;
         public Xcls_MainWindow window;
-        public Gtk.PositionType position;
         public Project.GtkValaSettings? selected_target;
         public uint border_width;
         public bool done;
@@ -53,7 +52,6 @@
             // my vars (dec)
             this.doneObj = null;
             this.window = null;
-            this.position = Gtk.PositionType.RIGHT;
             this.selected_target = null;
             this.border_width = 0;
             this.done = false;
         //     Gtk.Allocation rect;
                //btn.get_allocation(out rect);
          //   this.el.set_pointing_to(rect);
-               this.el.set_transient_for(pwin);
+         this.el.application = pwin.application; // ??? make it modal?
+                this.el.set_transient_for(pwin);
+                
                // window + header?
                // print("SHOWALL - POPIP\n");
                this.el.set_size_request(800,800);