Skip to content

Commit d634dca

Browse files
committed
preferences.ui: Update preferences dialog to new style with headerbar
1 parent 8eb2b54 commit d634dca

1 file changed

Lines changed: 5 additions & 50 deletions

File tree

data/ui/preferences.ui

Lines changed: 5 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -86,64 +86,23 @@
8686
</data>
8787
</object>
8888
<object class="GtkDialog" id="preferencesdialog">
89-
<property name="can_focus">False</property>
90-
<property name="border_width">5</property>
89+
<property name="border_width">0</property>
90+
<property name="modal">True</property>
91+
<property name="resizable">False</property>
9192
<property name="title" translatable="yes">Meld Preferences</property>
9293
<property name="type_hint">dialog</property>
94+
<property name="use-header-bar">1</property>
9395
<signal name="response" handler="on_response" swapped="no"/>
9496
<child internal-child="vbox">
9597
<object class="GtkBox" id="dialog-vbox4">
9698
<property name="visible">True</property>
9799
<property name="can_focus">False</property>
98100
<property name="orientation">vertical</property>
99-
<child internal-child="action_area">
100-
<object class="GtkButtonBox" id="dialog-action_area4">
101-
<property name="visible">True</property>
102-
<property name="can_focus">False</property>
103-
<property name="layout_style">end</property>
104-
<child>
105-
<object class="GtkButton" id="helpbutton1">
106-
<property name="label">gtk-help</property>
107-
<property name="can_focus">True</property>
108-
<property name="can_default">True</property>
109-
<property name="receives_default">False</property>
110-
<property name="use_stock">True</property>
111-
</object>
112-
<packing>
113-
<property name="expand">False</property>
114-
<property name="fill">False</property>
115-
<property name="position">0</property>
116-
</packing>
117-
</child>
118-
<child>
119-
<object class="GtkButton" id="closebutton1">
120-
<property name="label">gtk-close</property>
121-
<property name="visible">True</property>
122-
<property name="can_focus">True</property>
123-
<property name="can_default">True</property>
124-
<property name="receives_default">False</property>
125-
<property name="use_stock">True</property>
126-
<accelerator key="Escape" signal="clicked"/>
127-
</object>
128-
<packing>
129-
<property name="expand">False</property>
130-
<property name="fill">False</property>
131-
<property name="position">1</property>
132-
</packing>
133-
</child>
134-
</object>
135-
<packing>
136-
<property name="expand">False</property>
137-
<property name="fill">True</property>
138-
<property name="pack_type">end</property>
139-
<property name="position">0</property>
140-
</packing>
141-
</child>
101+
<property name="border-width">0</property>
142102
<child>
143103
<object class="GtkNotebook" id="notebook">
144104
<property name="visible">True</property>
145105
<property name="can_focus">False</property>
146-
<property name="border_width">5</property>
147106
<property name="show_border">False</property>
148107
<child>
149108
<object class="GtkVBox" id="editor_tab">
@@ -1586,10 +1545,6 @@
15861545
</child>
15871546
</object>
15881547
</child>
1589-
<action-widgets>
1590-
<action-widget response="-11">helpbutton1</action-widget>
1591-
<action-widget response="-7">closebutton1</action-widget>
1592-
</action-widgets>
15931548
</object>
15941549
<object class="GtkSizeGroup" id="sizegroup_editor">
15951550
<widgets>

0 commit comments

Comments
 (0)