searchentry: Make the text entry expand

Fixes the broken layout.
This commit is contained in:
Timm Bäder 2019-10-17 16:38:21 +02:00
parent 17a111968b
commit 23be10cf69

View File

@ -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);