summaryrefslogtreecommitdiffstats
path: root/system/pcmanfm-new/patches/pcmanfm-norootwarning.patch
diff options
context:
space:
mode:
author ponce2011-03-12 10:36:43 +0100
committer ponce2011-03-12 10:36:43 +0100
commit71c3706cb18c2ed8a134b6f70d8bc05c7a8595a2 (patch)
tree01ec39873fdb9c3a49de360f0a754fa1ec61a48a /system/pcmanfm-new/patches/pcmanfm-norootwarning.patch
parent14b97b9df3f67cffbb5791166e877b90e6c3b31c (diff)
downloadold.slackbuilds-71c3706cb18c2ed8a134b6f70d8bc05c7a8595a2.tar.gz
20110312.2 global branch merge.current-20110312.2
Diffstat (limited to 'system/pcmanfm-new/patches/pcmanfm-norootwarning.patch')
-rw-r--r--system/pcmanfm-new/patches/pcmanfm-norootwarning.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/system/pcmanfm-new/patches/pcmanfm-norootwarning.patch b/system/pcmanfm-new/patches/pcmanfm-norootwarning.patch
new file mode 100644
index 0000000000..bb9bb03c94
--- /dev/null
+++ b/system/pcmanfm-new/patches/pcmanfm-norootwarning.patch
@@ -0,0 +1,23 @@
+diff -Naur pcmanfm-20101129_0f075cf.orig/src/main-win.c pcmanfm-20101129_0f075cf/src/main-win.c
+--- pcmanfm-20101129_0f075cf.orig/src/main-win.c 2010-11-29 15:11:45.000000000 +0100
++++ pcmanfm-20101129_0f075cf/src/main-win.c 2010-12-03 11:05:46.000000000 +0100
+@@ -550,19 +550,6 @@
+ /* the location bar */
+ self->location = fm_path_entry_new();
+ g_signal_connect(self->location, "activate", on_location_activate, self);
+- if(geteuid() == 0) /* if we're using root, give the location entry a different color */
+- {
+- GtkStyle* style = gtk_rc_get_style_by_paths(
+- gtk_settings_get_for_screen(gtk_widget_get_screen(self->location)),
+- "gtk-tooltip", NULL, G_TYPE_NONE);
+- if(style)
+- {
+- gtk_widget_modify_base(self->location, GTK_STATE_NORMAL, &style->bg[GTK_STATE_NORMAL]);
+- gtk_widget_modify_fg(self->location, GTK_STATE_NORMAL, &style->fg[GTK_STATE_NORMAL]);
+- gtk_entry_set_icon_from_stock(GTK_ENTRY(self->location), GTK_ENTRY_ICON_PRIMARY, GTK_STOCK_DIALOG_WARNING);
+- }
+- gtk_entry_set_icon_tooltip_text(GTK_ENTRY(self->location), GTK_ENTRY_ICON_PRIMARY, _("You are in super user mode"));
+- }
+
+ toolitem = gtk_tool_item_new();
+ gtk_container_add( GTK_CONTAINER(toolitem), self->location );