[gedit] tools: do not allow horizontal scrolling on languages popover



commit 7978eb7934912e7c3338178fdf5ed56c39023fc7
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Thu Feb 6 22:54:11 2014 +0100

    tools: do not allow horizontal scrolling on languages popover

 plugins/externaltools/tools/manager.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/externaltools/tools/manager.py b/plugins/externaltools/tools/manager.py
index 6f5ea96..6797b0c 100644
--- a/plugins/externaltools/tools/manager.py
+++ b/plugins/externaltools/tools/manager.py
@@ -46,10 +46,10 @@ class LanguagesPopup(Gtk.Popover):
         self.model = Gtk.ListStore(str, str, bool)
 
         self.sw = Gtk.ScrolledWindow()
-        self.sw.set_size_request(200, 200)
+        self.sw.set_size_request(-1, 200)
         self.sw.show()
 
-        self.sw.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC)
+        self.sw.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC)
         self.sw.set_shadow_type(Gtk.ShadowType.ETCHED_IN)
 
         self.view = Gtk.TreeView(model=self.model)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]