mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-09 18:30:08 +00:00
treepopover: Do not propagate natural width of content
Propagating the natural width of the tree popover contents breaks ellipsizing of items (see 'Unconstrained menu' in tests/testcombo).
This commit is contained in:
parent
2b131f09a8
commit
9c919ffa46
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user