GNOME Bugzilla – Bug 732175
shell: Fix list box scrolling helper
Last modified: 2014-06-25 16:27:21 UTC
The new helpers are a great and overdue cleanup but this one wasn't working correctly. Note that GtkBox doesn't work as a parent for the GtkScrolledWindow in this case since the preferred height is always the minimum for that container.
Created attachment 279131 [details] [review] shell: Fix list box scrolling helper GtkListBox doesn't implement GtkScrollable so it needs to be added to a GtkViewport. Instead of having to do this in all .ui files, add a new helper function to setup the widget tree correctly.
Review of attachment 279131 [details] [review]: Looks good. Sorry about the mess. ::: shell/list-box-helper.c @@ +93,3 @@ + + g_object_set_data (G_OBJECT (listbox), "cc-scrolling-parent", parent); + g_object_set_data (G_OBJECT (listbox), "cc-scrolling-scroll-window", scrolled_window); scrolled-window
Attachment 279131 [details] pushed as 61a6c6f - shell: Fix list box scrolling helper