Use alignments and improve style of commit preferences

This commit is contained in:
Ignacio Casal Quinteiro 2013-07-07 11:34:25 +02:00
parent 2a87c054f6
commit 6ec7c9fd1f

View file

@ -1,84 +1,72 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<interface> <interface>
<!-- interface-requires gtk+ 3.0 --> <!-- interface-requires gtk+ 3.0 -->
<object class="GtkAdjustment" id="spin_button_right_margin_adjustment">
<property name="lower">1</property>
<property name="upper">160</property>
<property name="value">72</property>
<property name="step_increment">1</property>
<property name="page_increment">10</property>
</object>
<object class="GtkAdjustment" id="spin_button_subject_margin_adjustment">
<property name="upper">100</property>
<property name="step_increment">1</property>
<property name="page_increment">10</property>
</object>
<template class="GitgPreferencesCommit" parent="GtkGrid"> <template class="GitgPreferencesCommit" parent="GtkGrid">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="has_focus">False</property>
<property name="is_focus">False</property>
<property name="hexpand">True</property> <property name="hexpand">True</property>
<property name="vexpand">True</property> <property name="vexpand">True</property>
<property name="border_width">12</property> <property name="border_width">12</property>
<property name="row_spacing">18</property> <property name="row_spacing">18</property>
<property name="column_spacing">18</property> <property name="column_spacing">18</property>
<child> <child>
<object class="GtkGrid" id="grid2"> <object class="GtkGrid" id="grid">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="has_focus">False</property>
<property name="is_focus">False</property>
<property name="hexpand">True</property> <property name="hexpand">True</property>
<property name="row_spacing">6</property> <property name="row_spacing">6</property>
<child> <child>
<object class="GtkLabel" id="label1"> <object class="GtkAlignment" id="alignment2">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="xalign">0</property> <property name="has_focus">False</property>
<property name="label" translatable="yes">Commit Message</property> <property name="is_focus">False</property>
<attributes> <property name="left_padding">12</property>
<attribute name="weight" value="bold"/> <child>
</attributes> <object class="GtkGrid" id="grid1">
</object> <property name="visible">True</property>
<packing> <property name="can_focus">False</property>
<property name="left_attach">0</property> <property name="has_focus">False</property>
<property name="top_attach">0</property> <property name="is_focus">False</property>
<property name="width">3</property> <property name="row_spacing">6</property>
<property name="height">1</property>
</packing>
</child>
<child> <child>
<object class="GtkCheckButton" id="check_button_show_markup"> <object class="GtkCheckButton" id="check_button_show_markup">
<property name="label" translatable="yes">Show markup</property> <property name="label" translatable="yes">Show markup</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="has_focus">False</property>
<property name="is_focus">False</property>
<property name="receives_default">False</property> <property name="receives_default">False</property>
<property name="xalign">0</property> <property name="xalign">0</property>
<property name="draw_indicator">True</property> <property name="draw_indicator">True</property>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left_attach">0</property>
<property name="top_attach">1</property> <property name="top_attach">0</property>
<property name="width">2</property> <property name="width">1</property>
<property name="height">1</property> <property name="height">1</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel" id="label2"> <object class="GtkAlignment" id="alignment1">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="label"> </property> <property name="has_focus">False</property>
</object> <property name="is_focus">False</property>
<packing> <property name="left_padding">12</property>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">2</property>
</packing>
</child>
<child> <child>
<object class="GtkGrid" id="grid_show_markup"> <object class="GtkGrid" id="grid_show_markup">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="has_focus">False</property>
<property name="is_focus">False</property>
<property name="hexpand">True</property> <property name="hexpand">True</property>
<property name="vexpand">True</property> <property name="vexpand">True</property>
<property name="row_spacing">6</property>
<property name="column_spacing">6</property> <property name="column_spacing">6</property>
<child> <child>
<object class="GtkCheckButton" id="check_button_show_subject_margin"> <object class="GtkCheckButton" id="check_button_show_subject_margin">
@ -86,6 +74,8 @@
<property name="use_action_appearance">False</property> <property name="use_action_appearance">False</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="has_focus">False</property>
<property name="is_focus">False</property>
<property name="receives_default">False</property> <property name="receives_default">False</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="xalign">0</property> <property name="xalign">0</property>
@ -103,17 +93,25 @@
<object class="GtkGrid" id="spin_button_subject_margin_grid"> <object class="GtkGrid" id="spin_button_subject_margin_grid">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="has_focus">False</property>
<property name="is_focus">False</property>
<child> <child>
<object class="GtkSpinButton" id="spin_button_subject_margin"> <object class="GtkSpinButton" id="spin_button_subject_margin">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="text" translatable="yes">50</property> <property name="has_focus">False</property>
<property name="is_focus">False</property>
<property name="adjustment">spin_button_subject_margin_adjustment</property> <property name="adjustment">spin_button_subject_margin_adjustment</property>
<property name="climb_rate">1</property> <property name="climb_rate">1</property>
<property name="snap_to_ticks">True</property> <property name="snap_to_ticks">True</property>
<property name="numeric">True</property> <property name="numeric">True</property>
<property name="value">50</property>
</object> </object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child> </child>
</object> </object>
<packing> <packing>
@ -129,6 +127,8 @@
<property name="use_action_appearance">False</property> <property name="use_action_appearance">False</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="has_focus">False</property>
<property name="is_focus">False</property>
<property name="receives_default">False</property> <property name="receives_default">False</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="xalign">0</property> <property name="xalign">0</property>
@ -146,17 +146,25 @@
<object class="GtkGrid" id="spin_button_right_margin_grid"> <object class="GtkGrid" id="spin_button_right_margin_grid">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="has_focus">False</property>
<property name="is_focus">False</property>
<child> <child>
<object class="GtkSpinButton" id="spin_button_right_margin"> <object class="GtkSpinButton" id="spin_button_right_margin">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="text" translatable="yes">72</property> <property name="has_focus">False</property>
<property name="is_focus">False</property>
<property name="adjustment">spin_button_right_margin_adjustment</property> <property name="adjustment">spin_button_right_margin_adjustment</property>
<property name="climb_rate">1</property> <property name="climb_rate">1</property>
<property name="snap_to_ticks">True</property> <property name="snap_to_ticks">True</property>
<property name="numeric">True</property> <property name="numeric">True</property>
<property name="value">72</property>
</object> </object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child> </child>
</object> </object>
<packing> <packing>
@ -167,22 +175,40 @@
</packing> </packing>
</child> </child>
</object> </object>
</child>
</object>
<packing> <packing>
<property name="left_attach">2</property> <property name="left_attach">0</property>
<property name="top_attach">2</property> <property name="top_attach">1</property>
<property name="width">1</property> <property name="width">1</property>
<property name="height">1</property> <property name="height">1</property>
</packing> </packing>
</child> </child>
<child> </object>
<object class="GtkLabel" id="label3"> </child>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label"> </property>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left_attach">0</property>
<property name="top_attach">2</property> <property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">2</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="has_focus">False</property>
<property name="is_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Commit Message</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property> <property name="width">1</property>
<property name="height">1</property> <property name="height">1</property>
</packing> </packing>
@ -196,4 +222,16 @@
</packing> </packing>
</child> </child>
</template> </template>
<object class="GtkAdjustment" id="spin_button_right_margin_adjustment">
<property name="lower">1</property>
<property name="upper">160</property>
<property name="value">72</property>
<property name="step_increment">1</property>
<property name="page_increment">10</property>
</object>
<object class="GtkAdjustment" id="spin_button_subject_margin_adjustment">
<property name="upper">100</property>
<property name="step_increment">1</property>
<property name="page_increment">10</property>
</object>
</interface> </interface>