[pitivi] transitions: Work around a silly GTK2 scrollbar policy bug
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] transitions: Work around a silly GTK2 scrollbar policy bug
- Date: Sun, 27 May 2012 19:46:28 +0000 (UTC)
commit c2181b35d754e8a13ec667fe45ebe250eae5afed
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date: Tue May 8 11:20:32 2012 -0400
transitions: Work around a silly GTK2 scrollbar policy bug
Without this, the iconview would size up horizontally, but
never allow being sized down, which leads to UI madness.
pitivi/transitions.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/transitions.py b/pitivi/transitions.py
index 5a500bd..abd5f52 100644
--- a/pitivi/transitions.py
+++ b/pitivi/transitions.py
@@ -103,8 +103,11 @@ class TransitionsListWidget(Signallable, gtk.VBox, Loggable):
self.storemodel = gtk.ListStore(str, str, str, gtk.gdk.Pixbuf)
self.iconview_scrollwin = gtk.ScrolledWindow()
- self.iconview_scrollwin.set_policy(gtk.POLICY_NEVER, gtk.POLICY_AUTOMATIC)
self.iconview_scrollwin.set_shadow_type(gtk.SHADOW_ETCHED_IN)
+ # FIXME: the "never" horizontal scroll policy in GTK2 messes up iconview
+ # Re-enable this when we switch to GTK3
+ # See also http://python.6.n6.nabble.com/Cannot-shrink-width-of-scrolled-textview-tp1945060.html
+ #self.iconview_scrollwin.set_policy(gtk.POLICY_NEVER, gtk.POLICY_AUTOMATIC)
self.iconview = gtk.IconView(self.storemodel)
self.iconview.set_pixbuf_column(COL_ICON)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]