mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-06 16:19:07 -04:00
fix: allow adding action widgets to GtkInfoBar
This commit is contained in:
parent
d9ef1d4df9
commit
4103ad3e71
9 changed files with 47 additions and 13 deletions
|
@ -0,0 +1 @@
|
|||
4,13,11,Gtk.Box doesn't have action widgets
|
|
@ -1 +0,0 @@
|
|||
4,13,11,Gtk.Box is not a Gtk.Dialog, so it doesn't have action widgets
|
|
@ -16,3 +16,10 @@ Dialog {
|
|||
label: _("Ok");
|
||||
}
|
||||
}
|
||||
|
||||
InfoBar {
|
||||
[action response=ok]
|
||||
Button ok_info_button {
|
||||
label: _("Ok");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,4 +23,14 @@
|
|||
<action-widget response="ok" default="True">ok_button</action-widget>
|
||||
</action-widgets>
|
||||
</object>
|
||||
<object class="GtkInfoBar">
|
||||
<child type="action">
|
||||
<object class="GtkButton" id="ok_info_button">
|
||||
<property name="label" translatable="true">Ok</property>
|
||||
</object>
|
||||
</child>
|
||||
<action-widgets>
|
||||
<action-widget response="ok">ok_info_button</action-widget>
|
||||
</action-widgets>
|
||||
</object>
|
||||
</interface>
|
||||
|
|
|
@ -150,7 +150,7 @@ class TestSamples(unittest.TestCase):
|
|||
self.assert_sample_error("action_widget_have_no_id")
|
||||
self.assert_sample_error("action_widget_multiple_default")
|
||||
self.assert_sample_error("action_widget_not_action")
|
||||
self.assert_sample_error("action_widget_not_in_dialog")
|
||||
self.assert_sample_error("action_widget_in_invalid_container")
|
||||
self.assert_sample_error("action_widget_response_dne")
|
||||
self.assert_sample_error("action_widget_negative_response")
|
||||
self.assert_sample_error("class_assign")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue