[chirp_devel] [PATCH] Add TreeView into ScrolledWindow to prevent resize of window. #4209
Michael Wagner (OE4AMW)
Fri Nov 11 14:31:58 PST 2016
# HG changeset patch
# User Michael Wagner <michael.wagner at gmx.at>
# Date 1478903495 -3600
# Fri Nov 11 23:31:35 2016 +0100
# Node ID 7131b7133b5ebce905376c59784d1d10503d0fe7
# Parent c386ef4dc431e5065266de2b163260e6f5637b27
Add TreeView into ScrolledWindow to prevent resize of window. #4209
diff -r c386ef4dc431 -r 7131b7133b5e chirp/ui/settingsedit.py
--- a/chirp/ui/settingsedit.py Tue Nov 01 18:42:18 2016 -0700
+++ b/chirp/ui/settingsedit.py Fri Nov 11 23:31:35 2016 +0100
@@ -45,12 +45,17 @@
# The selection tree
self._store = gtk.TreeStore(gobject.TYPE_STRING, gobject.TYPE_INT)
self._view = gtk.TreeView(self._store)
- self._view.set_size_request(150, -1)
self._view.get_selection().connect("changed", self._view_changed_cb)
self._view.append_column(
gtk.TreeViewColumn("", gtk.CellRendererText(), text=0))
self._view.show()
- paned.pack1(self._view)
+ scrolled_window = gtk.ScrolledWindow()
+ scrolled_window.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
+ scrolled_window.add_with_viewport(self._view)
+ scrolled_window.set_size_request(200, -1)
+ scrolled_window.show()
+ paned.pack1(scrolled_window)
+
# The settings notebook
self._notebook = gtk.Notebook()
More information about the chirp_devel
mailing list