[nautilus] desktop: convert css name to style class
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] desktop: convert css name to style class
- Date: Mon, 15 Feb 2016 10:39:17 +0000 (UTC)
commit 2a17859961fc2ebf0eae03195d80fed681b4b9cd
Author: Carlos Soriano <csoriano gnome org>
Date: Mon Feb 15 11:04:46 2016 +0100
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 910d150..cd52182 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 6a8b9a9..1bc8343 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]