Add missing templates to testdialog
This makes the template test cases not crash. The templates also serve to test the new action widget support. https://bugzilla.gnome.org/show_bug.cgi?id=728846
This commit is contained in:
23
tests/mydialog.ui
Normal file
23
tests/mydialog.ui
Normal file
@@ -0,0 +1,23 @@
|
||||
<interface>
|
||||
<template class="MyDialog" parent="GtkDialog">
|
||||
<child type="action">
|
||||
<object class="GtkButton" id="cancel_button">
|
||||
<property name="visible">True</property>
|
||||
<property name="label">_Abort</property>
|
||||
<property name="use_underline">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child type="action">
|
||||
<object class="GtkButton" id="go_button">
|
||||
<property name="visible">True</property>
|
||||
<property name="label">_Go</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="can_default">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<action-widgets>
|
||||
<action-widget response="cancel">cancel_button</action-widget>
|
||||
<action-widget response="apply" default="True">go_button</action-widget>
|
||||
</action-widgets>
|
||||
</template>
|
||||
</interface>
|
||||
Reference in New Issue
Block a user