diff options
author | Rafael Ortiz <rafael@activitycentral.com> | 2012-06-20 02:07:38 (GMT) |
---|---|---|
committer | Rafael Ortiz <rafael@activitycentral.com> | 2012-06-20 02:07:38 (GMT) |
commit | d65c330f641599a98d0957980f6e74623c6f8a9c (patch) | |
tree | 95aaac335487a7d00da616944af7c00961e9e93e /terminal.py | |
parent | a6abb307909f1ddfc9d46a49534b313c97c18f01 (diff) |
Erasing become-root button code
Diffstat (limited to 'terminal.py')
-rw-r--r-- | terminal.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/terminal.py b/terminal.py index 7212ff6..a37e2ac 100644 --- a/terminal.py +++ b/terminal.py @@ -98,13 +98,6 @@ class TerminalActivity(activity.Activity): toolbar_box.toolbar.insert(tab_toolbar_button, -1) tab_toolbar_button.show() - # Add a button that will be used to become root easily. - root_button = ToolButton('activity-become-root') - root_button.set_tooltip(_('Become root')) - root_button.connect('clicked', self.__become_root_cb) - toolbar_box.toolbar.insert(root_button, -1) - root_button.show() - separator = Gtk.SeparatorToolItem() separator.props.draw = False separator.set_expand(True) @@ -377,17 +370,6 @@ class TerminalActivity(activity.Activity): def __motion_notify_cb(self, widget, event): self.emit('motion-notify-event', Gdk.Event(event)) - def __become_root_cb(self, button): - vt = self._notebook.get_nth_page(self._notebook.get_current_page()).vt - vt.feed('\r\n') - vt.fork_command_full(Vte.PtyFlags.DEFAULT, - os.environ["HOME"], - ["/bin/su"], - [], - GLib.SpawnFlags.DO_NOT_REAP_CHILD, - None, - None) - def __key_press_cb(self, window, event): """Route some keypresses directly to the vte and then drop them. |