From 104206b0eb93cf9ac283987ae9218669abff21a9 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Mon, 17 Nov 2008 00:41:49 +0000 Subject: [PATCH] helps if you read the function documentation. set_attributes() replaces all other attributes, so we had a bunch of empty, editable cells --- terminatorlib/prefs_profile.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/terminatorlib/prefs_profile.py b/terminatorlib/prefs_profile.py index 136dc465..5a2e7342 100644 --- a/terminatorlib/prefs_profile.py +++ b/terminatorlib/prefs_profile.py @@ -321,10 +321,7 @@ class ProfileEditor: cell = gtk.CellRendererAccel() col = gtk.TreeViewColumn(_("Keyboard shortcut")) col.pack_start(cell, True) - col.set_attributes(cell, accel_key=1) - col.set_attributes(cell, accel_mods=2) - col.set_attributes(cell, editable=3) - cell.connect('accel-edited', self.accel_edited) + col.set_attributes(cell, accel_key=1, accel_mods=2, editable=3) treeview.append_column(col) @@ -332,5 +329,3 @@ class ProfileEditor: return (treeview) - def accel_edited (self, obj, path, key, mods, code): - print "Edited %s, %s, %s, %s" % (path, key, mods, code)