[chirp_devel] [PATCH] Minor UI tweak, do not show empty header in tree view column
Kosta A.
Tue Sep 28 13:11:47 PDT 2021
# HG changeset patch
# User Kosta A. <ve7kcy at gmail.com>
# Date 1632859901 25200
# Tue Sep 28 13:11:41 2021 -0700
# Branch ui-fix
# Node ID 2c38f278e2de7e1954225c030963df5789202718
# Parent 5aa2294d78ea241c6573dcf1929475b072e73685
Minor UI tweak, do not show empty header in tree view column.
diff --git a/chirp/ui/settingsedit.py b/chirp/ui/settingsedit.py
--- a/chirp/ui/settingsedit.py
+++ b/chirp/ui/settingsedit.py
@@ -48,8 +48,9 @@
self._store = gtk.TreeStore(gobject.TYPE_STRING, gobject.TYPE_INT)
self._view = gtk.TreeView(self._store)
self._view.get_selection().connect("changed", self._view_changed_cb)
- self._view.append_column(
- gtk.TreeViewColumn("", gtk.CellRendererText(), text=0))
+ column = gtk.TreeViewColumn("", gtk.CellRendererText(), text=0)
+ column.set_widget(gtk.Label())
+ self._view.append_column(column)
self._view.show()
scrolled_window = gtk.ScrolledWindow()
scrolled_window.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
More information about the chirp_devel
mailing list