summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2010-08-21 12:58:34 +0200
committerCosimo Cecchi <cosimoc@gnome.org>2010-09-11 15:02:50 +0200
commit8b8993c501e46be37cb0bd12bbbd6ca9f76effea (patch)
tree4db75626ff988d852d737c0d9dfa0e074d0184fd
parent80ec7cec3ac0d0b8340a318e52420aa36aa61459 (diff)
downloadnautilus-8b8993c501e46be37cb0bd12bbbd6ca9f76effea.tar.gz
Add a border around info bars (#621366).
-rw-r--r--src/file-manager/fm-directory-view.c2
-rw-r--r--src/nautilus-window-slot.c13
-rw-r--r--src/nautilus-window-slot.h1
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 3b77fcba9..765936e44 100644
--- a/src/file-manager/fm-directory-view.c
+++ b/src/file-manager/fm-directory-view.c
@@ -1952,7 +1952,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 fbef40d0b..b6b65682c 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 ce276d859..76228ca29 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;