[gtk+] widget-factory: Add another notebook example
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] widget-factory: Add another notebook example
- Date: Mon, 9 Nov 2015 02:09:13 +0000 (UTC)
commit 306b6c6024bc5153ccf5fe5407bea496749842bc
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Nov 7 13:17:17 2015 -0500
widget-factory: Add another notebook example
This example shows a scrollable notebook with action widgets.
demos/widget-factory/widget-factory.ui | 112 ++++++++++++++++++++++++++++++++
1 files changed, 112 insertions(+), 0 deletions(-)
---
diff --git a/demos/widget-factory/widget-factory.ui b/demos/widget-factory/widget-factory.ui
index b90ca34..69f3685 100644
--- a/demos/widget-factory/widget-factory.ui
+++ b/demos/widget-factory/widget-factory.ui
@@ -3620,6 +3620,7 @@ microphone-sensitivity-medium-symbolic</property>
<object class="GtkBox">
<property name="visible">1</property>
<property name="orientation">vertical</property>
+ <property name="spacing">10</property>
<child>
<object class="GtkBox">
<property name="visible">1</property>
@@ -3647,6 +3648,108 @@ microphone-sensitivity-medium-symbolic</property>
</object>
</child>
<child>
+ <object class="GtkSeparator">
+ <property name="visible">1</property>
+ <property name="orientation">horizontal</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkNotebook">
+ <property name="visible">1</property>
+ <property name="scrollable">1</property>
+ <child type="action-end">
+ <object class="GtkMenuButton">
+ <property name="visible">1</property>
+ <property name="valign">center</property>
+ <property name="popover">notebook_info_popover</property>
+ <child>
+ <object class="GtkImage">
+ <property name="visible">1</property>
+ <property name="icon-name">emblem-important-symbolic</property>
+ <property name="icon-size">1</property>
+ </object>
+ </child>
+ <style>
+ <class name="image-button"/>
+ <class name="sidebar-button"/>
+ </style>
+ </object>
+ </child>
+ <child>
+ <object class="GtkBox">
+ <property name="visible">1</property>
+ <property name="height-request">120</property>
+ </object>
+ <packing>
+ <property name="tab-expand">1</property>
+ </packing>
+ </child>
+ <child type="tab">
+ <object class="GtkLabel">
+ <property name="visible">1</property>
+ <property name="label" translatable="yes">Page 1</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkBox">
+ <property name="visible">1</property>
+ <property name="height-request">40</property>
+ </object>
+ <packing>
+ <property name="tab-expand">1</property>
+ </packing>
+ </child>
+ <child type="tab">
+ <object class="GtkLabel">
+ <property name="visible">1</property>
+ <property name="label" translatable="yes">Page 2</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkBox">
+ <property name="visible">1</property>
+ </object>
+ <packing>
+ <property name="tab-expand">1</property>
+ </packing>
+ </child>
+ <child type="tab">
+ <object class="GtkLabel">
+ <property name="visible">1</property>
+ <property name="label" translatable="yes">Page 3</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkBox">
+ <property name="visible">1</property>
+ </object>
+ <packing>
+ <property name="tab-expand">1</property>
+ </packing>
+ </child>
+ <child type="tab">
+ <object class="GtkLabel">
+ <property name="visible">1</property>
+ <property name="label" translatable="yes">Page 4</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkBox">
+ <property name="visible">1</property>
+ </object>
+ <packing>
+ <property name="tab-expand">1</property>
+ </packing>
+ </child>
+ <child type="tab">
+ <object class="GtkLabel">
+ <property name="visible">1</property>
+ <property name="label" translatable="yes">Page 5</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
<object class="GtkSpinner">
<property name="visible">1</property>
<property name="active">1</property>
@@ -4001,4 +4104,13 @@ bad things might happen.</property>
<widget name="panedframe2"/>
</widgets>
</object>
+ <object class="GtkPopover" id="notebook_info_popover">
+ <child>
+ <object class="GtkLabel" id="notebook_info_label">
+ <property name="visible">1</property>
+ <property name="margin">10</property>
+ <property name="label">No updates at this time</property>
+ </object>
+ </child>
+ </object>
</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]