[nautilus] Add a border around info bars (#621366).



commit 712cf85b9c44fc93b8f506bfb03ea06cb58eb5e6
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sat Aug 21 12:58:34 2010 +0200

    Add a border around info bars (#621366).

 src/file-manager/fm-directory-view.c |    2 +-
 src/nautilus-window-slot.c           |   13 +++++++++----
 src/nautilus-window-slot.h           |    1 +
 3 files changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/src/file-manager/fm-directory-view.c b/src/file-manager/fm-directory-view.c
index e5146f5..058d64f 100644
--- a/src/file-manager/fm-directory-view.c
+++ b/src/file-manager/fm-directory-view.c
@@ -1930,7 +1930,7 @@ fm_directory_view_init (FMDirectoryView *view)
 					GTK_POLICY_AUTOMATIC);
 	gtk_scrolled_window_set_hadjustment (GTK_SCROLLED_WINDOW (view), NULL);
 	gtk_scrolled_window_set_vadjustment (GTK_SCROLLED_WINDOW (view), NULL);
-	gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (view), GTK_SHADOW_IN);
+	gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (view), GTK_SHADOW_ETCHED_IN);
 
 	set_up_scripts_directory_global ();
 	scripts_directory = nautilus_directory_get_by_uri (scripts_directory_uri);
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c
index fbef40d..b6b6568 100644
--- a/src/nautilus-window-slot.c
+++ b/src/nautilus-window-slot.c
@@ -172,17 +172,22 @@ nautilus_window_slot_inactive (NautilusWindowSlot *slot)
 static void
 nautilus_window_slot_init (NautilusWindowSlot *slot)
 {
-	GtkWidget *content_box, *eventbox, *extras_vbox;
+	GtkWidget *content_box, *eventbox, *extras_vbox, *frame;
 
 	content_box = gtk_vbox_new (FALSE, 0);
 	slot->content_box = content_box;
 	gtk_widget_show (content_box);
 
+	frame = gtk_frame_new (NULL);
+	gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
+	gtk_box_pack_start (GTK_BOX (content_box), frame, FALSE, FALSE, 0);
+	slot->extra_location_event_box = frame;
+
 	eventbox = gtk_event_box_new ();
-	slot->extra_location_event_box = eventbox;
 	gtk_widget_set_name (eventbox, "nautilus-extra-view-widget");
-	gtk_box_pack_start (GTK_BOX (content_box), eventbox, FALSE, FALSE, 0);
-	
+	gtk_container_add (GTK_CONTAINER (frame), eventbox);
+	gtk_widget_show (eventbox);
+
 	extras_vbox = gtk_vbox_new (FALSE, 6);
 	gtk_container_set_border_width (GTK_CONTAINER (extras_vbox), 6);
 	slot->extra_location_widgets = extras_vbox;
diff --git a/src/nautilus-window-slot.h b/src/nautilus-window-slot.h
index ce276d8..76228ca 100644
--- a/src/nautilus-window-slot.h
+++ b/src/nautilus-window-slot.h
@@ -74,6 +74,7 @@ struct NautilusWindowSlot {
 	GtkWidget *content_box;
 	GtkWidget *extra_location_event_box;
 	GtkWidget *extra_location_widgets;
+	GtkWidget *extra_location_separator;
 	GtkWidget *view_box;
 
 	NautilusView *content_view;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]