Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Ortiz <rafael@activitycentral.com>2012-06-20 02:14:16 (GMT)
committer Rafael Ortiz <rafael@activitycentral.com>2012-06-20 02:14:16 (GMT)
commitcba0197dbd7160693d4944734a10ebebc386cafe (patch)
treeffaccbb1b86693cf5fb4cb00652fbc4a8c836973
parente1c0a89a947638fe2d31427b88501d1878194350 (diff)
erasing commented code for become-root button
-rw-r--r--terminal.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/terminal.py b/terminal.py
index 0bdbb75..ae81b0e 100644
--- a/terminal.py
+++ b/terminal.py
@@ -93,13 +93,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)
@@ -374,11 +367,6 @@ class TerminalActivity(activity.Activity):
def __motion_notify_cb(self, widget, event):
self.canvas.parent.emit('motion-notify-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("/bin/su", ('/bin/su', '-'))
-
def __key_press_cb(self, window, event):
"""Route some keypresses directly to the vte and then drop them.