demo: expand notebook tabs

This commit is contained in:
William Jon McCann 2013-12-02 20:02:56 -05:00
parent 70bc941b73
commit f115af11d2
2 changed files with 9 additions and 0 deletions

View File

@ -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);

View File

@ -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">