summaryrefslogtreecommitdiff
path: root/shell/ev-window.c
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2016-02-06 06:33:14 +0100
committerWolfgang Ulbrich <[email protected]>2016-02-06 06:33:14 +0100
commita1e6e6fa9876f78f291a24073af1a7e64916e33c (patch)
treeae5ca1968c638872f105530d2233dc74bdaa4781 /shell/ev-window.c
parent4190ce2680b339c9bfc3d51008811f0b1abb1b9d (diff)
downloadatril-a1e6e6fa9876f78f291a24073af1a7e64916e33c.tar.bz2
atril-a1e6e6fa9876f78f291a24073af1a7e64916e33c.tar.xz
GTK+3: add atril-window style class to top level
Diffstat (limited to 'shell/ev-window.c')
-rw-r--r--shell/ev-window.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 257a6acb..67208a8a 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -7442,6 +7442,13 @@ ev_window_init (EvWindow *ev_window)
ev_window->priv->chrome = EV_CHROME_NORMAL;
ev_window->priv->title = ev_window_title_new (ev_window);
+#if GTK_CHECK_VERSION(3, 0, 0)
+ GtkStyleContext *context;
+
+ context = gtk_widget_get_style_context (GTK_WIDGET (ev_window));
+ gtk_style_context_add_class (context, "atril-window");
+#endif
+
ev_window->priv->main_box = gtk_vbox_new (FALSE, 0);
gtk_container_add (GTK_CONTAINER (ev_window), ev_window->priv->main_box);
gtk_widget_show (ev_window->priv->main_box);