From 48324ba7bceeaf517cf13090b4c78a37ae8abab3 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Tue, 14 Jul 2009 12:53:42 +0100 Subject: [PATCH] move the enumeration menu items to the group menu and improve the wording. Closes LP #314909 --- terminatorlib/terminatorterm.py | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/terminatorlib/terminatorterm.py b/terminatorlib/terminatorterm.py index c8d1d48b..7e2a8446 100755 --- a/terminatorlib/terminatorterm.py +++ b/terminatorlib/terminatorterm.py @@ -1255,14 +1255,6 @@ text/plain item.connect ("activate", lambda menu_item: self.paste_clipboard ()) menu.append (item) - item = gtk.MenuItem (_("Enumerate")) - item.connect ("activate", lambda menu_item: self.do_enumerate ()) - menu.append (item) - - item = gtk.MenuItem (_("Enumerate with pad")) - item.connect ("activate", lambda menu_item: self.do_enumerate (pad=True)) - menu.append (item) - item = gtk.MenuItem () menu.append (item) @@ -1468,6 +1460,17 @@ text/plain item.connect ("toggled", lambda menu_item: self.do_autocleangroups_toggle ()) widget.append (item) + item = gtk.MenuItem () + widget.append (item) + + item = gtk.MenuItem (_("Insert terminal number")) + item.connect ("activate", lambda menu_item: self.do_enumerate ()) + widget.append (item) + + item = gtk.MenuItem (_("Insert padded terminal number")) + item.connect ("activate", lambda menu_item: self.do_enumerate (pad=True)) + widget.append (item) + def position_popup_group_menu(self, menu, widget): screen_w = gtk.gdk.screen_width() screen_h = gtk.gdk.screen_height()