[Sugar-devel] [PATCH 2/2] disabling become root button

Rafael Ortiz rafael at activitycentral.com
Thu May 19 12:52:59 EDT 2011


Temporaly Disabling become root button on terminal activity 
avoiding problems reported  SL#2756 and #2597, also in merge request on gitorious 
 
Signed-off-by: Rafael Ortiz <rafael at activitycentral.com>
---
 terminal.py |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)
 mode change 100644 => 100755 terminal.py

diff --git a/terminal.py b/terminal.py
old mode 100644
new mode 100755
index a0f97ba..63605b3
--- a/terminal.py
+++ b/terminal.py
@@ -86,17 +86,17 @@ 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()
-
-        separator = gtk.SeparatorToolItem()
-        separator.props.draw = False
-        separator.set_expand(True)
-        toolbar_box.toolbar.insert(separator, -1)
-        separator.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
+        #separator.set_expand(True)
+        #toolbar_box.toolbar.insert(separator, -1)
+        #separator.show()
 
         stop_button = StopButton(self)
         stop_button.props.accelerator = '<Ctrl><Shift>Q'
-- 
1.7.4.1



More information about the Sugar-devel mailing list