[chirp_devel] [PATCH] Minor UI tweak, do not show empty header in tree view column. Fixes #9397
# HG changeset patch # User Kosta A. ve7kcy@gmail.com # Date 1632859901 25200 # Tue Sep 28 13:11:41 2021 -0700 # Branch ui-fix # Node ID 2bf6e8155e7edfbe02e51187e9da3d3ca6fce051 # 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)
Yes sorry, i sent a follow up patch to resolve that.
On Wed, Sep 29, 2021 at 6:18 PM Dan Smith via chirp_devel < chirp_devel@intrepid.danplanet.com> wrote:
Minor UI tweak, do not show empty header in tree view column. Fixes
#9397.
Thanks for the bug and images to illustrate the change, that makes it clear.
#column.set_widget(gtk.Label())
This should not be added, I'm guessing you meant to remove it?
--Dan _______________________________________________ chirp_devel mailing list chirp_devel@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_devel Developer docs: http://chirp.danplanet.com/projects/chirp/wiki/Developers
participants (3)
-
Dan Smith
-
Kosta A.
-
Kosta Arvanitis