examples: Fix alignment of search-bar example

The search entry was taking the whole window size.
Let's reduce the size so as to have more natural size.
This commit is contained in:
Mohammed Sadiq
2018-06-14 11:09:19 +05:30
parent eefd2d6f10
commit 6033bc56b4

View File

@@ -26,6 +26,7 @@ activate_cb (GtkApplication *app,
gtk_widget_show (window);
search_bar = gtk_search_bar_new ();
gtk_widget_set_valign (search_bar, GTK_ALIGN_START);
gtk_container_add (GTK_CONTAINER (window), search_bar);
gtk_widget_show (search_bar);