In progress...
This commit is contained in:
parent
01acd04331
commit
13f910282d
@ -2,18 +2,18 @@ namespace LAview.Core.Plugins {
|
|||||||
using Gtk, LAview;
|
using Gtk, LAview;
|
||||||
|
|
||||||
class ObjectExampleDialog : Object {
|
class ObjectExampleDialog : Object {
|
||||||
Window dialog;
|
Dialog dialog;
|
||||||
|
|
||||||
public ObjectExampleDialog (Window parent) throws Error {
|
public ObjectExampleDialog (/*Window parent*/) throws Error {
|
||||||
var builder = new Builder ();
|
var builder = new Builder ();
|
||||||
builder.add_from_file (AppDirs.ui_dir + "/laview-plugin-object-example.glade");
|
builder.add_from_file (AppDirs.ui_dir + "/laview-plugin-object-example.glade");
|
||||||
builder.connect_signals (this);
|
builder.connect_signals (this);
|
||||||
|
|
||||||
dialog = builder.get_object ("object_example_dialog") as Dialog;
|
dialog = builder.get_object ("object_example_dialog_bkp") as Dialog;
|
||||||
if (parent != null) {
|
//if (parent != null) {
|
||||||
dialog.transient_for = parent;
|
// dialog.transient_for = parent;
|
||||||
dialog.modal = true;
|
// dialog.modal = true;
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void show_all () {
|
public void show_all () {
|
||||||
|
@ -47,7 +47,7 @@ namespace LAview.Core.Plugins {
|
|||||||
* Compose the object.
|
* Compose the object.
|
||||||
*/
|
*/
|
||||||
public override bool compose (Gee.HashMap<string, AnswerValue> answers) throws Error {
|
public override bool compose (Gee.HashMap<string, AnswerValue> 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 ();
|
object_dialog.show_all ();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user