[gtk+] demo: expand notebook tabs



commit f115af11d2977e6c39bc0470b58c0abb50a76d43
Author: William Jon McCann <william jon mccann gmail com>
Date:   Mon Dec 2 20:02:56 2013 -0500

    demo: expand notebook tabs

 demos/gtk-demo/main.c  |    4 ++++
 demos/gtk-demo/main.ui |    5 +++++
 2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/demos/gtk-demo/main.c b/demos/gtk-demo/main.c
index b863443..2449b12 100644
--- a/demos/gtk-demo/main.c
+++ b/demos/gtk-demo/main.c
@@ -510,6 +510,10 @@ add_data_tab (const gchar *demoname)
       label = gtk_label_new (resources[i]);
       gtk_widget_show (label);
       gtk_notebook_append_page (GTK_NOTEBOOK (notebook), widget, label);
+      gtk_container_child_set (GTK_CONTAINER (notebook),
+                               GTK_WIDGET (widget),
+                               "tab-expand", TRUE,
+                               NULL);
 
       g_free (content_mime);
       g_free (content_type);
diff --git a/demos/gtk-demo/main.ui b/demos/gtk-demo/main.ui
index fed6cae..060ff4b 100644
--- a/demos/gtk-demo/main.ui
+++ b/demos/gtk-demo/main.ui
@@ -115,6 +115,9 @@
                   </object>
                 </child>
               </object>
+              <packing>
+                <property name="tab_expand">True</property>
+              </packing>
             </child>
             <child type="tab">
               <object class="GtkLabel" id="label1">
@@ -124,6 +127,7 @@
                 <property name="use_underline">True</property>
               </object>
               <packing>
+                <property name="tab_expand">True</property>
                 <property name="tab_fill">False</property>
               </packing>
             </child>
@@ -148,6 +152,7 @@
               </object>
               <packing>
                 <property name="position">1</property>
+                <property name="tab_expand">True</property>
               </packing>
             </child>
             <child type="tab">


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]