diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-04-17 13:53:56 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-04-17 13:53:56 -0400 |
commit | 79267674fffb7c60f6afcdc0b7d29318a8110646 (patch) | |
tree | 23c73c2d2a184de95e3a21a0523e81024d08ca9d /gtk/gtkmenusectionbox.c | |
parent | 908590e032fbd80d9f86445c4f330b10d4e60564 (diff) | |
download | gtk+-79267674fffb7c60f6afcdc0b7d29318a8110646.tar.gz |
popovermenu: Reinstate section title handling
We were creating a hbox with separators around the label,
but forgot to arrange sizing to prevent the separators from
shrinking into nothingness.
Diffstat (limited to 'gtk/gtkmenusectionbox.c')
-rw-r--r-- | gtk/gtkmenusectionbox.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkmenusectionbox.c b/gtk/gtkmenusectionbox.c index 16d5061b4a..7933f81dfa 100644 --- a/gtk/gtkmenusectionbox.c +++ b/gtk/gtkmenusectionbox.c @@ -618,6 +618,7 @@ gtk_menu_section_box_new_section (GtkMenuTrackerItem *item, separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL); gtk_widget_set_valign (separator, GTK_ALIGN_CENTER); gtk_container_add (GTK_CONTAINER (box->separator), separator); + gtk_size_group_add_widget (box->indicators, separator); title = gtk_label_new (label); g_object_bind_property (item, "label", title, "label", G_BINDING_SYNC_CREATE); @@ -627,6 +628,7 @@ gtk_menu_section_box_new_section (GtkMenuTrackerItem *item, separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL); gtk_widget_set_valign (separator, GTK_ALIGN_CENTER); + gtk_widget_set_hexpand (separator, TRUE); gtk_container_add (GTK_CONTAINER (box->separator), separator); } else |