GtkAssistant: Simplify ui template

This commit is contained in:
Matthias Clasen
2015-05-02 17:55:52 -04:00
parent d6a698f700
commit 86383e63db

View File

@ -2,59 +2,38 @@
<interface domain="gtk30"> <interface domain="gtk30">
<!-- interface-requires gtk+ 3.10 --> <!-- interface-requires gtk+ 3.10 -->
<template class="GtkAssistant" parent="GtkWindow"> <template class="GtkAssistant" parent="GtkWindow">
<property name="can_focus">False</property>
<child type="titlebar"> <child type="titlebar">
<object class="GtkHeaderBar" id="headerbar"> <object class="GtkHeaderBar" id="headerbar">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property>
<property name="show-close-button">False</property>
</object> </object>
</child> </child>
<child> <child>
<object class="GtkBox" id="main_box"> <object class="GtkBox" id="main_box">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property>
<property name="border_width">0</property>
<property name="spacing">12</property> <property name="spacing">12</property>
<child> <child>
<object class="GtkFrame" id="sidebar_frame"> <object class="GtkFrame" id="sidebar_frame">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label_xalign">0</property>
<style> <style>
<class name="sidebar"/> <class name="sidebar"/>
</style> </style>
<child> <child>
<object class="GtkBox" id="sidebar"> <object class="GtkBox" id="sidebar">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<property name="spacing">6</property> <property name="spacing">6</property>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
</object> </object>
</child> </child>
<child type="label_item"> <child type="label_item">
<placeholder/>
</child> </child>
</object> </object>
<packing> <packing>
<property name="expand">False</property>
<property name="fill">False</property> <property name="fill">False</property>
<property name="position">0</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkBox" id="content_box"> <object class="GtkBox" id="content_box">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property>
<property name="border_width">12</property> <property name="border_width">12</property>
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<property name="spacing">12</property> <property name="spacing">12</property>
@ -65,23 +44,16 @@
<property name="show_tabs">False</property> <property name="show_tabs">False</property>
<property name="show_border">False</property> <property name="show_border">False</property>
<signal name="remove" handler="assistant_remove_page_cb" swapped="no"/> <signal name="remove" handler="assistant_remove_page_cb" swapped="no"/>
<child>
<placeholder/>
</child>
<child type="tab"> <child type="tab">
<placeholder/>
</child> </child>
</object> </object>
<packing> <packing>
<property name="expand">True</property> <property name="expand">True</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkBox" id="action_area"> <object class="GtkBox" id="action_area">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">end</property> <property name="halign">end</property>
<property name="spacing">6</property> <property name="spacing">6</property>
<child> <child>
@ -98,10 +70,8 @@
<signal name="clicked" handler="on_assistant_apply" swapped="no"/> <signal name="clicked" handler="on_assistant_apply" swapped="no"/>
</object> </object>
<packing> <packing>
<property name="expand">False</property>
<property name="fill">False</property> <property name="fill">False</property>
<property name="pack_type">end</property> <property name="pack_type">end</property>
<property name="position">0</property>
</packing> </packing>
</child> </child>
<child> <child>
@ -119,7 +89,6 @@
<signal name="clicked" handler="on_assistant_forward" swapped="no"/> <signal name="clicked" handler="on_assistant_forward" swapped="no"/>
</object> </object>
<packing> <packing>
<property name="expand">False</property>
<property name="fill">False</property> <property name="fill">False</property>
<property name="pack_type">end</property> <property name="pack_type">end</property>
<property name="position">1</property> <property name="position">1</property>
@ -139,7 +108,6 @@
<signal name="clicked" handler="on_assistant_back" swapped="no"/> <signal name="clicked" handler="on_assistant_back" swapped="no"/>
</object> </object>
<packing> <packing>
<property name="expand">False</property>
<property name="fill">False</property> <property name="fill">False</property>
<property name="pack_type">end</property> <property name="pack_type">end</property>
<property name="position">2</property> <property name="position">2</property>
@ -158,7 +126,6 @@
<signal name="clicked" handler="on_assistant_last" swapped="no"/> <signal name="clicked" handler="on_assistant_last" swapped="no"/>
</object> </object>
<packing> <packing>
<property name="expand">False</property>
<property name="fill">False</property> <property name="fill">False</property>
<property name="pack_type">end</property> <property name="pack_type">end</property>
<property name="position">3</property> <property name="position">3</property>
@ -178,7 +145,6 @@
<signal name="clicked" handler="on_assistant_cancel" swapped="no"/> <signal name="clicked" handler="on_assistant_cancel" swapped="no"/>
</object> </object>
<packing> <packing>
<property name="expand">False</property>
<property name="fill">False</property> <property name="fill">False</property>
<property name="pack_type">end</property> <property name="pack_type">end</property>
<property name="position">4</property> <property name="position">4</property>
@ -198,7 +164,6 @@
<signal name="clicked" handler="on_assistant_close" swapped="no"/> <signal name="clicked" handler="on_assistant_close" swapped="no"/>
</object> </object>
<packing> <packing>
<property name="expand">False</property>
<property name="fill">False</property> <property name="fill">False</property>
<property name="pack_type">end</property> <property name="pack_type">end</property>
<property name="position">5</property> <property name="position">5</property>
@ -206,15 +171,12 @@
</child> </child>
</object> </object>
<packing> <packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property> <property name="position">1</property>
</packing> </packing>
</child> </child>
</object> </object>
<packing> <packing>
<property name="expand">True</property> <property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property> <property name="position">1</property>
</packing> </packing>
</child> </child>