diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-08-04 16:34:14 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-08-04 17:17:37 +0100 |
commit | 3b39ff8b4e71928e7f33452322522dea49aee1e4 (patch) | |
tree | b78e79bbae01542608fb657c657a1104cbba6741 | |
parent | c14f1abc49de68591298437b33b07feeddeb5a5d (diff) |
tweak insert break menu to load the same with native gtk builder
1) we can use a GtkComboBoxText for this simple case and move the liststore into the widget
2) add the response ids for the buttons
Change-Id: I7b3bd10c05f35b0e34bbbebc9f7a811f87d443ac
-rw-r--r-- | sw/uiconfig/swriter/ui/insertbreak.ui | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/sw/uiconfig/swriter/ui/insertbreak.ui b/sw/uiconfig/swriter/ui/insertbreak.ui index 0299a6bc66a3..12e2f94907b7 100644 --- a/sw/uiconfig/swriter/ui/insertbreak.ui +++ b/sw/uiconfig/swriter/ui/insertbreak.ui @@ -8,17 +8,6 @@ <property name="step_increment">1</property> <property name="page_increment">10</property> </object> - <object class="GtkListStore" id="liststore1"> - <columns> - <!-- column-name gchararray1 --> - <column type="gchararray"/> - </columns> - <data> - <row> - <col id="0" translatable="yes" context="insertbreak|liststore1">[None]</col> - </row> - </data> - </object> <object class="GtkDialog" id="BreakDialog"> <property name="can_focus">False</property> <property name="border_width">6</property> @@ -171,10 +160,13 @@ </packing> </child> <child> - <object class="GtkComboBox" id="stylelb"> + <object class="GtkComboBoxText" id="stylelb"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="model">liststore1</property> + <property name="active">0</property> + <items> + <item translatable="yes" context="insertbreak|liststore1">[None]</item> + </items> </object> <packing> <property name="expand">False</property> @@ -244,9 +236,9 @@ </object> </child> <action-widgets> - <action-widget response="0">ok</action-widget> - <action-widget response="0">cancel</action-widget> - <action-widget response="0">help</action-widget> + <action-widget response="-5">ok</action-widget> + <action-widget response="-6">cancel</action-widget> + <action-widget response="-11">help</action-widget> </action-widgets> </object> </interface> |