treepopover: Do not propagate natural width of content
authorMat <mail@mathias.is>
Wed, 20 Jul 2022 13:43:18 +0000 (16:43 +0300)
committerMat <mail@mathias.is>
Wed, 20 Jul 2022 13:51:33 +0000 (16:51 +0300)
Propagating the natural width of the tree popover contents breaks ellipsizing of items
(see 'Unconstrained menu' in tests/testcombo).

gtk/gtktreepopover.c

index 7a0881b6e43fbbfef24993bb2db32404819d9ffb..77cd8f9e5248815bc3da24a01b380bfaf6ebe894 100644 (file)
@@ -267,7 +267,6 @@ gtk_tree_popover_init (GtkTreePopover *popover)
 
   sw = gtk_scrolled_window_new ();
   gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
-  gtk_scrolled_window_set_propagate_natural_width (GTK_SCROLLED_WINDOW (sw), TRUE);
   gtk_scrolled_window_set_propagate_natural_height (GTK_SCROLLED_WINDOW (sw), TRUE);
   gtk_popover_set_child (GTK_POPOVER (popover), sw);