[chirp_devel] [PATCH] Minor UI tweak, do not show empty header in tree view column. Fixes #9397

Kosta A.
Wed Sep 29 00:10:22 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 62d81b5019d77256fbd77ab762b15188b72f35ee
# Parent  5aa2294d78ea241c6573dcf1929475b072e73685
Minor UI tweak, do not show empty header in tree view column. Fixes #9397.

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