summaryrefslogtreecommitdiff
path: root/gtk/gtkpasswordentry.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-02-22 15:55:05 -0500
committerMatthias Clasen <mclasen@redhat.com>2019-02-22 15:55:05 -0500
commitc53e9ed6aa17a16467fc8a4e3e9480e6f51030a8 (patch)
tree6cadf6df605d4449f02984eabbbcb3edc3e399ea /gtk/gtkpasswordentry.c
parent2b9436b27939e3afb3e9746226d5fb6350a89539 (diff)
downloadgtk+-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/gtkpasswordentry.c')
-rw-r--r--gtk/gtkpasswordentry.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkpasswordentry.c b/gtk/gtkpasswordentry.c
index 16a811a8b3..78f12b0d62 100644
--- a/gtk/gtkpasswordentry.c
+++ b/gtk/gtkpasswordentry.c
@@ -90,6 +90,8 @@ gtk_password_entry_init (GtkPasswordEntry *entry)
gtk_widget_set_has_surface (GTK_WIDGET (entry), FALSE);
priv->box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
+ gtk_widget_set_hexpand (priv->box, FALSE);
+ gtk_widget_set_vexpand (priv->box, FALSE);
gtk_widget_set_parent (priv->box, GTK_WIDGET (entry));
priv->entry = gtk_text_new ();