aboutsummaryrefslogtreecommitdiff
path: root/system/pcmanfm/norootwarning.patch
diff options
context:
space:
mode:
authorponce <matteo.bernardini@gmail.com>2011-03-31 15:41:06 -0500
committerRobby Workman <rworkman@slackbuilds.org>2011-03-31 15:41:06 -0500
commitcbe0a05b49e54fac496303c12f7d82bb2fd59de7 (patch)
treea035a1fbd4df7924d90e4a7d4e61547cb881b493 /system/pcmanfm/norootwarning.patch
parentbc6ec6cfd3fed8462b03a7767b661d1970c467cf (diff)
system/pcmanfm: Updated for version 20110316_9c4603d
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/pcmanfm/norootwarning.patch')
-rw-r--r--system/pcmanfm/norootwarning.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/system/pcmanfm/norootwarning.patch b/system/pcmanfm/norootwarning.patch
new file mode 100644
index 0000000000000..bb9bb03c9440e
--- /dev/null
+++ b/system/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 );