#! /bin/sh /usr/share/dpatch/dpatch-run
## 10_ubuntu_uses_sudo.dpatch by  <Rolf Leggewie <foss@rolf.leggewie.biz>>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fix status line of 'Become root' menu entry to not refer to su. 
## DP: LP#139661.

Index: b/src/gtk/aptitude.glade
===================================================================
--- a/src/gtk/aptitude.glade
+++ b/src/gtk/aptitude.glade
@@ -115,7 +115,7 @@
                       <widget class="GtkImageMenuItem" id="menu_do_su_to_root">
                         <property name="label">_Become Root</property>
                         <property name="visible">True</property>
-                        <property name="tooltip" translatable="yes">Run 'su' to become root; this will restart the program, but your settings will be preserved</property>
+                        <property name="tooltip" translatable="yes">Restart the program as root; your settings will be preserved</property>
                         <property name="use_underline">True</property>
                         <property name="use_stock">True</property>
                       </widget>
Index: b/src/ui.cc
===================================================================
--- a/src/ui.cc
+++ b/src/ui.cc
@@ -2380,7 +2380,7 @@
   cw::menu_info::MENU_SEPARATOR,
 
   cw::menu_info(cw::menu_info::MENU_ITEM, N_("^Become root"), NULL,
-	       N_("Run 'su' to become root; this will restart the program, but your settings will be preserved"), sigc::bind(sigc::ptr_fun(do_su_to_root), ""), sigc::ptr_fun(su_to_root_enabled)),
+	       N_("Restart the program as root; your settings will be preserved"), sigc::bind(sigc::ptr_fun(do_su_to_root), ""), sigc::ptr_fun(su_to_root_enabled)),
 
   cw::menu_info(cw::menu_info::MENU_ITEM, N_("^Quit"), "QuitProgram",
 	       N_("Exit the program"), sigc::ptr_fun(do_quit)),
