Add Show title in the Headerbar when switching to ShowWidget.

This commit is contained in:
Jordan Petridis
2017-12-15 13:45:08 +02:00
parent 6284c8828b
commit 4b0a6ea0f7
5 changed files with 63 additions and 28 deletions
+2 -2
View File
@@ -66,7 +66,7 @@
</packing>
</child>
<child>
<object class="GtkLabel" id="seperator1">
<object class="GtkLabel" id="separator1">
<property name="can_focus">False</property>
<property name="no_show_all">True</property>
<property name="label" translatable="yes">·</property>
@@ -93,7 +93,7 @@
</packing>
</child>
<child>
<object class="GtkLabel" id="seperator2">
<object class="GtkLabel" id="separator2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">·</property>
+44 -16
View File
@@ -156,30 +156,39 @@
</packing>
</child>
<child type="title">
<object class="GtkStackSwitcher" id="switch">
<object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">center</property>
<property name="valign">center</property>
</object>
</child>
<child>
<object class="GtkMenuButton" id="menu">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="valign">center</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkImage">
<object class="GtkStackSwitcher" id="switch">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="icon_name">open-menu-symbolic</property>
<property name="halign">center</property>
<property name="valign">center</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="show_title">
<property name="can_focus">False</property>
<property name="no_show_all">True</property>
<property name="label" translatable="yes">Show Title</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="pack_type">end</property>
</packing>
</child>
<child>
<object class="GtkButton" id="ref_button">
@@ -202,5 +211,24 @@
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkMenuButton" id="menu">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="valign">center</property>
<child>
<object class="GtkImage">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="icon_name">open-menu-symbolic</property>
</object>
</child>
</object>
<packing>
<property name="pack_type">end</property>
<property name="position">2</property>
</packing>
</child>
</object>
</interface>