[nautilus] Add a border around info bars (#621366).
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] Add a border around info bars (#621366).
- Date: Thu, 17 Jun 2010 17:34:03 +0000 (UTC)
commit 48c0e19e60eee88f38a6e9c7a51211376a4c90f9
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Jun 17 19:34:48 2010 +0200
Add a border around info bars (#621366).
src/file-manager/fm-directory-view.c | 1 -
src/nautilus-window-slot.c | 23 +++++++++++++++++------
src/nautilus-window-slot.h | 1 +
3 files changed, 18 insertions(+), 7 deletions(-)
---
diff --git a/src/file-manager/fm-directory-view.c b/src/file-manager/fm-directory-view.c
index 5de313c..fa9f6b7 100644
--- a/src/file-manager/fm-directory-view.c
+++ b/src/file-manager/fm-directory-view.c
@@ -1956,7 +1956,6 @@ 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);
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 82e5072..2eb319d 100644
--- a/src/nautilus-window-slot.c
+++ b/src/nautilus-window-slot.c
@@ -172,26 +172,35 @@ 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, *hsep;
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, TRUE, TRUE, 0);
+ gtk_widget_show (frame);
+
+ slot->view_box = gtk_vbox_new (FALSE, 0);
+ gtk_container_add (GTK_CONTAINER (frame), slot->view_box);
+ gtk_widget_show (slot->view_box);
+
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_box_pack_start (GTK_BOX (slot->view_box), eventbox, FALSE, FALSE, 0);
+
extras_vbox = gtk_vbox_new (FALSE, 6);
gtk_container_set_border_width (GTK_CONTAINER (extras_vbox), 6);
slot->extra_location_widgets = extras_vbox;
gtk_container_add (GTK_CONTAINER (eventbox), extras_vbox);
gtk_widget_show (extras_vbox);
- slot->view_box = gtk_vbox_new (FALSE, 0);
- gtk_box_pack_start (GTK_BOX (content_box), slot->view_box, TRUE, TRUE, 0);
- gtk_widget_show (slot->view_box);
+ hsep = gtk_hseparator_new ();
+ gtk_box_pack_start (GTK_BOX (slot->view_box), hsep, FALSE, FALSE, 0);
+ slot->extra_location_separator = hsep;
slot->title = g_strdup (_("Loading..."));
}
@@ -543,6 +552,7 @@ nautilus_window_slot_remove_extra_location_widgets (NautilusWindowSlot *slot)
remove_all,
slot->extra_location_widgets);
gtk_widget_hide (slot->extra_location_event_box);
+ gtk_widget_hide (slot->extra_location_separator);
}
void
@@ -552,6 +562,7 @@ nautilus_window_slot_add_extra_location_widget (NautilusWindowSlot *slot,
gtk_box_pack_start (GTK_BOX (slot->extra_location_widgets),
widget, TRUE, TRUE, 0);
gtk_widget_show (slot->extra_location_event_box);
+ gtk_widget_show (slot->extra_location_separator);
}
void
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]