[nautilus/wip/csoriano/search-popover: 3/17] nautilus-window: add a styleclass
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/csoriano/search-popover: 3/17] nautilus-window: add a styleclass
- Date: Wed, 27 Jan 2016 20:00:08 +0000 (UTC)
commit 18233f7d7f6058f8dd02005c274f4679d67ebdef
Author: Horst3180 <horst3180 gmx net>
Date: Wed Jan 27 12:46:05 2016 +0100
nautilus-window: add a styleclass
This adds the "nautilus-window" styleclass to the main Nautilus window.
This commit provides a way for third party themes to apply their
own custom styling to Nautilus by using the newly introduced styleclass,
since the inbuilt Adwaita.css stylesheet is only being loaded when
the Adwaita theme is used.
https://bugzilla.gnome.org/show_bug.cgi?id=761098
src/nautilus-window.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index 830b1cf..417f183 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -2442,6 +2442,9 @@ nautilus_window_init (NautilusWindow *window)
window->priv->slots = NULL;
window->priv->active_slot = NULL;
+ gtk_style_context_add_class (gtk_widget_get_style_context (window),
+ "nautilus-window");
+
window_group = gtk_window_group_new ();
gtk_window_group_add_window (window_group, GTK_WINDOW (window));
g_object_unref (window_group);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]