In the Ubuntu Accomplishments project we are having a few unusual bugs:
Namely that we have a window with a GtkNotebook and a GtkIconView on a page and another on another page.
When the user re-sizes the window the iconview does not automatically fill the space with icons (they stay in their original column layout) but if the user changes the GtkNotebook pages and thus refreshes the icon view the space is taken up as expected. How can we automatically use the space when resizing the window?
What is more concerning though is that when the window appears, we can resize it smaller - it seems as if the iconview is blocking us from resizing and then having a scrollable region for the icons.
The code looks like this. The ListStores that drive the IconViews:
self.trophystore = Gtk.ListStore(str, GdkPixbuf.Pixbuf, bool, bool, str, str) # title, icon accomplished, locked, app, accomplishment
self.trophystore.set_sort_column_id(COL_TITLE, Gtk.SortType.ASCENDING)
self.trophy_icon.set_model(self.trophystore)
self.oppstore = Gtk.ListStore(str, GdkPixbuf.Pixbuf, bool, bool, str, str) # title, icon, accomplished, locked, app, accomplishment
self.oppstore.set_sort_column_id(COL_TITLE, Gtk.SortType.ASCENDING)
self.opp_icon.set_model(self.oppstore)
self.trophy_icon.set_text_column(COL_TITLE)
self.trophy_icon.set_pixbuf_column(COL_PIXBUF)
self.opp_icon.set_text_column(COL_TITLE)
self.opp_icon.set_pixbuf_column(COL_PIXBUF)
Other than this, we don't really poke around with the IconViews, we just add content to the ListStores to update the views.
The code for the project is here - can anyone recommend how we can fix these two issues?