[nautilus] view: add the "view" style class to the icon container
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] view: add the "view" style class to the icon container
- Date: Mon, 23 May 2011 14:52:03 +0000 (UTC)
commit b30bda3e1f341b107fbe4f73f1d7b769504d23cd
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon May 23 09:44:29 2011 -0400
view: add the "view" style class to the icon container
Not to the NautilusView scrolled windows.
src/nautilus-icon-view-container.c | 3 +++
src/nautilus-view.c | 3 ---
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/nautilus-icon-view-container.c b/src/nautilus-icon-view-container.c
index 640a9cc..dd6f1ee 100644
--- a/src/nautilus-icon-view-container.c
+++ b/src/nautilus-icon-view-container.c
@@ -565,6 +565,9 @@ nautilus_icon_view_container_class_init (NautilusIconViewContainerClass *klass)
static void
nautilus_icon_view_container_init (NautilusIconViewContainer *icon_container)
{
+ gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (icon_container)),
+ GTK_STYLE_CLASS_VIEW);
+
}
NautilusIconContainer *
diff --git a/src/nautilus-view.c b/src/nautilus-view.c
index 12bc534..4851e85 100644
--- a/src/nautilus-view.c
+++ b/src/nautilus-view.c
@@ -2596,9 +2596,6 @@ nautilus_view_init (NautilusView *view)
g_signal_connect_swapped (nautilus_window_state,
"changed::" NAUTILUS_WINDOW_STATE_START_WITH_STATUS_BAR,
G_CALLBACK (nautilus_view_display_selection_info), view);
-
- gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (view)),
- GTK_STYLE_CLASS_VIEW);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]