forked from AuroraMiddleware/gtk
demo: expand notebook tabs
This commit is contained in:
parent
70bc941b73
commit
f115af11d2
@ -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);
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user