summaryrefslogtreecommitdiffstats
path: root/opensuse/core/tdebase/quick_browser_menu.diff
diff options
context:
space:
mode:
authorRobert Xu <[email protected]>2011-11-10 18:04:39 -0500
committerRobert Xu <[email protected]>2011-11-10 18:04:39 -0500
commit21fcfa3348213aa87f0e3aef62ca4720c6d31cb7 (patch)
tree2cfb64c59322628e613ed0895e3c3694d3abe6bd /opensuse/core/tdebase/quick_browser_menu.diff
parent8667643bff14a60d8571c599efd3e48bed3e3b12 (diff)
downloadtde-packaging-21fcfa3348213aa87f0e3aef62ca4720c6d31cb7.tar.gz
tde-packaging-21fcfa3348213aa87f0e3aef62ca4720c6d31cb7.zip
initial commit to suse branch: eclipse integration
Diffstat (limited to 'opensuse/core/tdebase/quick_browser_menu.diff')
-rw-r--r--opensuse/core/tdebase/quick_browser_menu.diff30
1 files changed, 30 insertions, 0 deletions
diff --git a/opensuse/core/tdebase/quick_browser_menu.diff b/opensuse/core/tdebase/quick_browser_menu.diff
new file mode 100644
index 000000000..dd955115c
--- /dev/null
+++ b/opensuse/core/tdebase/quick_browser_menu.diff
@@ -0,0 +1,30 @@
+Index: kicker/kicker/ui/browser_mnu.cpp
+===================================================================
+--- kicker/kicker/ui/browser_mnu.cpp.orig
++++ kicker/kicker/ui/browser_mnu.cpp
+@@ -31,6 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE
+ #include <kfileitem.h>
+ #include <kglobal.h>
+ #include <kglobalsettings.h>
++#include <kconfig.h>
+ #include <kiconloader.h>
+ #include <kio/global.h>
+ #include <klocale.h>
+@@ -148,12 +149,14 @@ void PanelBrowserMenu::initialize()
+ // only the first part menu got them
+ if(_startid == 0 && !_filesOnly) {
+ insertTitle(path());
++ KConfig *c = KGlobal::config();
++ c->setGroup("menus");
+ insertItem(CICON("kfm"), i18n("Open in File Manager"), this, SLOT(slotOpenFileManager()));
+- if (kapp->authorize("shell_access"))
+- insertItem(CICON("terminal"), i18n("Open in Terminal"), this, SLOT(slotOpenTerminal()));
++ if (kapp->authorize("shell_access") && c->readBoolEntry("kickerOpenInTerminalIsVisible",false))
++ insertItem(CICON("terminal"), i18n("Open in Terminal"), this, SLOT(slotOpenTerminal()));
++ insertSeparator();
+ }
+
+-
+ bool first_entry = true;
+ bool dirfile_separator = false;
+ unsigned int item_count = 0;