summaryrefslogtreecommitdiff
path: root/gtk/gtksearchentry.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2019-10-17 16:38:21 +0200
committerTimm Bäder <mail@baedert.org>2019-10-22 09:37:07 +0200
commit23be10cf696ca6ef84a32ae72995d9f71339ba59 (patch)
treeaf78fde00d1ee1fc8ec667fbd022bacbcc635abc /gtk/gtksearchentry.c
parent17a111968b855e1e00579cf84eb79960dc8ac2cb (diff)
downloadgtk+-23be10cf696ca6ef84a32ae72995d9f71339ba59.tar.gz
searchentry: Make the text entry expand
Fixes the broken layout.
Diffstat (limited to 'gtk/gtksearchentry.c')
-rw-r--r--gtk/gtksearchentry.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtksearchentry.c b/gtk/gtksearchentry.c
index 06460e6282..f701ac21be 100644
--- a/gtk/gtksearchentry.c
+++ b/gtk/gtksearchentry.c
@@ -523,6 +523,7 @@ gtk_search_entry_init (GtkSearchEntry *entry)
priv->entry = gtk_text_new ();
gtk_widget_set_parent (priv->entry, GTK_WIDGET (entry));
+ gtk_widget_set_hexpand (priv->entry, TRUE);
gtk_editable_init_delegate (GTK_EDITABLE (entry));
g_signal_connect_swapped (priv->entry, "changed", G_CALLBACK (text_changed), entry);
g_signal_connect_after (priv->entry, "changed", G_CALLBACK (gtk_search_entry_changed), entry);