projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eefd2d6
)
examples: Fix alignment of search-bar example
author
Mohammed Sadiq
<sadiq@sadiqpk.org>
Thu, 14 Jun 2018 05:39:19 +0000
(11:09 +0530)
committer
Mohammed Sadiq
<sadiq@sadiqpk.org>
Thu, 14 Jun 2018 05:39:19 +0000
(11:09 +0530)
The search entry was taking the whole window size.
Let's reduce the size so as to have more natural size.
examples/search-bar.c
patch
|
blob
|
history
diff --git
a/examples/search-bar.c
b/examples/search-bar.c
index 136354ac8475daec9c680711fbc845752c61f1c5..c2a6f2d805b299673924d9245d84f420493268c4 100644
(file)
--- a/
examples/search-bar.c
+++ b/
examples/search-bar.c
@@
-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);