[PATCH] GtkTreeView does not honour GtkScrollable policies
Submitted by Julian Ahrens
Assigned to gtk..@..tk.org
Link to original bug (#729341)
Description
Created attachment 275554 quick fix
GtkTreeView does not honour GtkScrollable policies
The current implementation of GtkTreeView does not honour the GtkScrollable policies. When gtk_scrollable_set_hscroll_policy or gtk_scrollable_set_vscroll_policy is called, the supplied value is stored but it is never used by the sizing logic which always seems to assume GTK_SCROLL_MINIMUM. The following references illustrate the resulting behaviour:
https://mail.gnome.org/archives/gtk-perl-list/2013-December/msg00019.html
[bug 698925](https://bugzilla.gnome.org/show_bug.cgi?id=698925)
I have written a very conservative patch which fixes the issue. It is based on a previous patch by John Lindgren
https://git.gnome.org/browse/gtk+/commit?id=666d10ec7676a15b6861b785397563cbd4ef21e6
which changed the sizing logic to always assume GTK_SCROLL_NATURAL.
Patch 275554, "quick fix":
treeview-Implement-scrollable-policies.patch