Index: thunar/thunar-window.c =================================================================== --- thunar/thunar-window.c (revision 22891) +++ thunar/thunar-window.c (working copy) @@ -687,10 +687,35 @@ gtk_box_pack_start (GTK_BOX (vbox), window->location_standalone_box, FALSE, FALSE, 0); gtk_widget_show (window->location_standalone_box); - window->view_container = gtk_alignment_new (0.5f, 0.5f, 1.0f, 1.0f); - gtk_box_pack_start (GTK_BOX (vbox), window->view_container, TRUE, TRUE, 0); - gtk_widget_show (window->view_container); + { + GtkWidget *label; + GtkWidget *ebox; + GtkWidget *box; + box = gtk_vbox_new (FALSE, 6); + gtk_box_pack_start (GTK_BOX (vbox), box, TRUE, TRUE, 0); + gtk_widget_show (box); + + gtk_rc_parse_string ("style\"thunar-window-root-style\"{bg[NORMAL]=\"#d4355b\"\nfg[NORMAL]=\"#eeeeee\"}\n" + "widget \"ThunarWindow.*.root-warning\" style \"thunar-window-root-style\"\n" + "widget \"ThunarWindow.*.root-warning.GtkLabel\" style \"thunar-window-root-style\"\n"); + + ebox = gtk_event_box_new (); + gtk_widget_set_name (ebox, "root-warning"); + gtk_box_pack_start (GTK_BOX (box), ebox, FALSE, FALSE, 0); + gtk_widget_show (ebox); + + label = gtk_label_new (_("Warning, you are using the root account, you may harm your system.")); + gtk_label_set_use_markup (GTK_LABEL (label), TRUE); + gtk_misc_set_padding (GTK_MISC (label), 6, 3); + gtk_container_add (GTK_CONTAINER (ebox), label); + gtk_widget_show (label); + + window->view_container = gtk_alignment_new (0.5f, 0.5f, 1.0f, 1.0f); + gtk_box_pack_start (GTK_BOX (box), window->view_container, TRUE, TRUE, 0); + gtk_widget_show (window->view_container); + } + /* determine the selected location bar */ g_object_get (G_OBJECT (window->preferences), "last-location-bar", &type_name, NULL); type = g_type_from_name (type_name);