From f808a9edc9786d25ec457de60d68a2723c3a2174 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Wed, 13 Jan 2010 23:00:42 +0000 Subject: [PATCH] set_active triggers the 'activate' signal, which makes sense I suppose, but means we were changing profile to the profile we already were set to, which is a waste --- terminatorlib/terminal_popup_menu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminatorlib/terminal_popup_menu.py b/terminatorlib/terminal_popup_menu.py index 0866b652..c147657d 100755 --- a/terminatorlib/terminal_popup_menu.py +++ b/terminatorlib/terminal_popup_menu.py @@ -151,9 +151,9 @@ class TerminalPopupMenu(object): for profile in profilelist: item = gtk.RadioMenuItem(group, profile.capitalize()) - item.connect('activate', terminal.set_profile, profile) if profile == current: item.set_active(True) + item.connect('activate', terminal.set_profile, profile) submenu.append(item) self.add_encoding_items(menu)