1
0
Fork 0

In progress...

This commit is contained in:
Kolan Sh 2016-04-07 02:05:55 +03:00
parent 4febb98a53
commit 1e682efaf0
2 changed files with 15 additions and 8 deletions

View File

@ -16,17 +16,23 @@ namespace LAview.Core.Plugins {
dialog.modal = true;
//dialog.application = application;
dialog.delete_event.connect ((source) => {return true;});
dialog.hide_on_delete ();
}
dialog.response.connect ((response_id) => {
if (response_id == Gtk.ResponseType.CANCEL || response_id == Gtk.ResponseType.DELETE_EVENT) {
dialog.hide_on_delete ();
}
});
//dialog.response.connect ((response_id) => {
// if (response_id == Gtk.ResponseType.CANCEL || response_id == Gtk.ResponseType.DELETE_EVENT) {
// dialog.hide_on_delete ();
// }
//});
}
public void show_all () {
dialog.show_all ();
}
[CCode (instance_pos = -1)]
public void button_ok_clicked (Button button) {
dialog.hide_on_delete ();
}
}
}

View File

@ -15,7 +15,7 @@
<property name="can_focus">False</property>
<property name="layout_style">end</property>
<child>
<object class="GtkButton" id="button3">
<object class="GtkButton" id="button_apply">
<property name="label">gtk-apply</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
@ -29,7 +29,7 @@
</packing>
</child>
<child>
<object class="GtkButton" id="button1">
<object class="GtkButton" id="button_ok">
<property name="label">gtk-ok</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
@ -43,12 +43,13 @@
</packing>
</child>
<child>
<object class="GtkButton" id="button2">
<object class="GtkButton" id="button_cancel">
<property name="label">gtk-undo</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_stock">True</property>
<signal name="activate" handler="l" swapped="no"/>
</object>
<packing>
<property name="expand">True</property>