diff --git a/src/ObjectDialog.vala b/src/ObjectDialog.vala index 9dc644b..9e3507d 100644 --- a/src/ObjectDialog.vala +++ b/src/ObjectDialog.vala @@ -2,18 +2,18 @@ namespace LAview.Core.Plugins { using Gtk, LAview; class ObjectExampleDialog : Object { - Window dialog; + Dialog dialog; - public ObjectExampleDialog (Window parent) throws Error { + public ObjectExampleDialog (/*Window parent*/) throws Error { var builder = new Builder (); builder.add_from_file (AppDirs.ui_dir + "/laview-plugin-object-example.glade"); builder.connect_signals (this); - dialog = builder.get_object ("object_example_dialog") as Dialog; - if (parent != null) { - dialog.transient_for = parent; - dialog.modal = true; - } + dialog = builder.get_object ("object_example_dialog_bkp") as Dialog; + //if (parent != null) { + // dialog.transient_for = parent; + // dialog.modal = true; + //} } public void show_all () { diff --git a/src/main.vala b/src/main.vala index 24efe13..639e7cc 100644 --- a/src/main.vala +++ b/src/main.vala @@ -47,7 +47,7 @@ namespace LAview.Core.Plugins { * Compose the object. */ public override bool compose (Gee.HashMap answers) throws Error { - if (object_dialog == null) object_dialog = new ObjectExampleDialog (null); + if (object_dialog == null) object_dialog = new ObjectExampleDialog ();//null); object_dialog.show_all ();