From a1e6e6fa9876f78f291a24073af1a7e64916e33c Mon Sep 17 00:00:00 2001 From: Wolfgang Ulbrich Date: Sat, 6 Feb 2016 06:33:14 +0100 Subject: GTK+3: add atril-window style class to top level --- shell/ev-window.c | 7 +++++++ 1 file changed, 7 insertions(+) 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); -- cgit v1.2.1