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:11:55 (GMT)
committer Rafael Ortiz <rafael@activitycentral.com>2012-06-20 02:11:55 (GMT)
commite1c0a89a947638fe2d31427b88501d1878194350 (patch)
tree840ab42c4740d4dadba98686cc0cdc6775232332
parent164c37db3d9a997d77bfb89b66fcb62721f46de9 (diff)
erasing become-root button
-rw-r--r--terminal.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/terminal.py b/terminal.py
index ee46fdc..0bdbb75 100644
--- a/terminal.py
+++ b/terminal.py
@@ -94,11 +94,11 @@ class TerminalActivity(activity.Activity):
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()
+ #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
@@ -374,10 +374,10 @@ 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 __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.