diff options
author | Timm Bäder <mail@baedert.org> | 2017-04-21 18:59:59 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2017-04-25 20:30:37 +0200 |
commit | 5729ea7744c2a41ae8fb833db6690a6aa5ad7a84 (patch) | |
tree | ddda46f8b6c07a999ee9b844ec3a9c863b55a850 /examples | |
parent | 8f4c0bea6558dc98a2abd7e63436b1ce4caf689e (diff) | |
download | gtk+-5729ea7744c2a41ae8fb833db6690a6aa5ad7a84.tar.gz |
box: Remove expand child property
GtkWidget already has hexpand/vexpand properties.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/search-bar.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/examples/search-bar.c b/examples/search-bar.c index 8617ed657a..3d3a1adf71 100644 --- a/examples/search-bar.c +++ b/examples/search-bar.c @@ -27,15 +27,13 @@ activate_cb (GtkApplication *app, box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6); gtk_container_add (GTK_CONTAINER (search_bar), box); - gtk_widget_show (box); entry = gtk_search_entry_new (); - gtk_box_pack_start (GTK_BOX (box), entry, TRUE, TRUE); - gtk_widget_show (entry); + gtk_widget_set_hexpand (entry, TRUE); + gtk_box_pack_start (GTK_BOX (box), entry, TRUE); menu_button = gtk_menu_button_new (); - gtk_box_pack_start (GTK_BOX (box), menu_button, FALSE, FALSE); - gtk_widget_show (menu_button); + gtk_box_pack_start (GTK_BOX (box), menu_button, FALSE); gtk_search_bar_connect_entry (GTK_SEARCH_BAR (search_bar), GTK_ENTRY (entry)); |