diff options
author | Carlos Soriano <csoriano@gnome.org> | 2016-02-15 11:04:46 +0100 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2016-02-15 11:38:43 +0100 |
commit | 2a17859961fc2ebf0eae03195d80fed681b4b9cd (patch) | |
tree | f50524cceb678410fe9dc6bb67dde8348edb0270 | |
parent | b04189427cc030bee6ad4943e99773bf1d4b5ae7 (diff) | |
download | nautilus-2a17859961fc2ebf0eae03195d80fed681b4b9cd.tar.gz |
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
-rw-r--r-- | src/nautilus-desktop-window.c | 5 | ||||
-rw-r--r-- | 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; } |