Use headerbar in the preferences dialog

https://bugzilla.gnome.org/show_bug.cgi?id=727068
This commit is contained in:
Yosef Or Boczko 2014-04-14 11:01:30 +03:00
parent 05564e62f2
commit fd9d6c780e
2 changed files with 1 additions and 38 deletions

View file

@ -240,10 +240,6 @@ public class Application : Gtk.Application
d_preferences.destroy.connect((w) => {
d_preferences = null;
});
d_preferences.response.connect((w, r) => {
d_preferences.destroy();
});
}
if (wnds != null)

View file

@ -7,43 +7,13 @@
<property name="default_width">400</property>
<property name="default_height">500</property>
<property name="type_hint">dialog</property>
<property name="use_header_bar">1</property>
<property name="title" translatable="yes">Preferences</property>
<child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox1">
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="spacing">2</property>
<child internal-child="action_area">
<object class="GtkButtonBox" id="dialog-action_area1">
<property name="can_focus">False</property>
<property name="layout_style">end</property>
<child>
<placeholder/>
</child>
<child>
<object class="GtkButton" id="button1">
<property name="label">gtk-close</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
<property name="use_stock">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="pack_type">end</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkNotebook" id="notebook_elements">
<property name="visible">True</property>
@ -59,8 +29,5 @@
</child>
</object>
</child>
<action-widgets>
<action-widget response="-7">button1</action-widget>
</action-widgets>
</object>
</interface>