diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-02-22 15:55:05 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-02-22 15:55:05 -0500 |
commit | c53e9ed6aa17a16467fc8a4e3e9480e6f51030a8 (patch) | |
tree | 6cadf6df605d4449f02984eabbbcb3edc3e399ea /gtk/gtksearchentry.c | |
parent | 2b9436b27939e3afb3e9746226d5fb6350a89539 (diff) | |
download | gtk+-c53e9ed6aa17a16467fc8a4e3e9480e6f51030a8.tar.gz |
search/password entry: Prevent expand leaks
We don't want the entry to expand, we just want
the text to expand inside the box, so explicitly
unset expand flags on the box.
Diffstat (limited to 'gtk/gtksearchentry.c')
-rw-r--r-- | gtk/gtksearchentry.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtksearchentry.c b/gtk/gtksearchentry.c index 188ede1d9f..a227956e93 100644 --- a/gtk/gtksearchentry.c +++ b/gtk/gtksearchentry.c @@ -506,6 +506,8 @@ gtk_search_entry_init (GtkSearchEntry *entry) priv->box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_widget_set_parent (priv->box, GTK_WIDGET (entry)); + gtk_widget_set_hexpand (priv->box, FALSE); + gtk_widget_set_vexpand (priv->box, FALSE); priv->entry = gtk_text_new (); gtk_widget_set_hexpand (priv->entry, TRUE); |