Web · Wiki · Activities · Blog · Lists · Chat · Meeting · Bugs · Git · Translate · Archive · People · Donate

Commit e1c0a89a947638fe2d31427b88501d1878194350

erasing become-root button
  
9494 tab_toolbar_button.show()
9595
9696 # Add a button that will be used to become root easily.
97 root_button = ToolButton('activity-become-root')
98 root_button.set_tooltip(_('Become root'))
99 root_button.connect('clicked', self.__become_root_cb)
100 toolbar_box.toolbar.insert(root_button, -1)
101 root_button.show()
97 #root_button = ToolButton('activity-become-root')
98 #root_button.set_tooltip(_('Become root'))
99 #root_button.connect('clicked', self.__become_root_cb)
100 #toolbar_box.toolbar.insert(root_button, -1)
101 #root_button.show()
102102
103103 separator = gtk.SeparatorToolItem()
104104 separator.props.draw = False
374374 def __motion_notify_cb(self, widget, event):
375375 self.canvas.parent.emit('motion-notify-event', event)
376376
377 def __become_root_cb(self, button):
378 vt = self._notebook.get_nth_page(self._notebook.get_current_page()).vt
379 vt.feed('\r\n')
380 vt.fork_command("/bin/su", ('/bin/su', '-'))
377 #def __become_root_cb(self, button):
378 # vt = self._notebook.get_nth_page(self._notebook.get_current_page()).vt
379 # vt.feed('\r\n')
380 # vt.fork_command("/bin/su", ('/bin/su', '-'))
381381
382382 def __key_press_cb(self, window, event):
383383 """Route some keypresses directly to the vte and then drop them.