From 2a17859961fc2ebf0eae03195d80fed681b4b9cd Mon Sep 17 00:00:00 2001 From: Carlos Soriano Date: Mon, 15 Feb 2016 11:04:46 +0100 Subject: desktop: convert css name to style class We expect any GtkWindow to actually have the window style. So instead of changing the css node, just apply a style class. This will be needed for upcoming patches. https://bugzilla.gnome.org/show_bug.cgi?id=761965 --- src/nautilus-desktop-window.c | 5 +++-- src/resources/css/nautilus.css | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/nautilus-desktop-window.c b/src/nautilus-desktop-window.c index 910d150ff..cd52182f3 100644 --- a/src/nautilus-desktop-window.c +++ b/src/nautilus-desktop-window.c @@ -217,6 +217,9 @@ nautilus_desktop_window_init (NautilusDesktopWindow *window) { window->details = G_TYPE_INSTANCE_GET_PRIVATE (window, NAUTILUS_TYPE_DESKTOP_WINDOW, NautilusDesktopWindowDetails); + gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (window)), + "nautilus-desktop-window"); + } static void @@ -389,8 +392,6 @@ nautilus_desktop_window_class_init (NautilusDesktopWindowClass *klass) nclass->sync_title = real_sync_title; nclass->close = real_window_close; - gtk_widget_class_set_css_name (wclass, "nautilus-desktop-window"); - g_type_class_add_private (klass, sizeof (NautilusDesktopWindowDetails)); } diff --git a/src/resources/css/nautilus.css b/src/resources/css/nautilus.css index 6a8b9a9b4..1bc8343cb 100644 --- a/src/resources/css/nautilus.css +++ b/src/resources/css/nautilus.css @@ -3,8 +3,8 @@ -gtk-outline-radius: 20px; } -nautilus-desktop-window, -nautilus-desktop-window notebook, -nautilus-desktop-window notebook > stack { +.nautilus-desktop-window, +.nautilus-desktop-window notebook, +.nautilus-desktop-window notebook > stack { background: transparent; } -- cgit v1.2.1