gtk-demo: Use max-content-height in the popover example

This is what the property was invented for.
This commit is contained in:
Matthias Clasen 2016-06-19 23:07:17 -04:00
parent c2534af15e
commit 815cc23c4c
2 changed files with 1 additions and 3 deletions

View File

@ -51,9 +51,6 @@ create_complex_popover (GtkWidget *parent,
popover = create_popover (parent, content, GTK_POS_BOTTOM);
g_object_unref (content);
gtk_widget_set_size_request (popover, 200, -1);
gtk_widget_set_vexpand (popover, TRUE);
gtk_widget_set_margin_start (popover, 10);
gtk_widget_set_margin_end (popover, 10);
gtk_widget_set_margin_bottom (popover, 10);

View File

@ -59,6 +59,7 @@
<property name="visible">1</property>
<property name="can_focus">1</property>
<property name="shadow_type">in</property>
<property name="max-content-height">100</property>
<child>
<object class="GtkTreeView" id="treeview1">
<property name="visible">1</property>