diff options
author | Stefano Karapetsas <[email protected]> | 2014-01-22 23:31:32 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-01-22 23:31:32 +0100 |
commit | ead0bbb5d787dfdc15f18d0245b308d239c4679f (patch) | |
tree | 9adbf08996373d754f9b8abfb3758b8c4c02a48c /shell/ev-window.c | |
parent | a45172bcbc96d1b519a620aa07aa080c26617044 (diff) | |
download | atril-ead0bbb5d787dfdc15f18d0245b308d239c4679f.tar.bz2 atril-ead0bbb5d787dfdc15f18d0245b308d239c4679f.tar.xz |
Use primary-toolbar style in GTK3
Diffstat (limited to 'shell/ev-window.c')
-rw-r--r-- | shell/ev-window.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c index cf40ae7d..1f989f85 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -6822,6 +6822,11 @@ ev_window_init (EvWindow *ev_window) NULL)); g_object_unref (toolbars_model); +#if GTK_CHECK_VERSION (3, 0, 0) + gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (ev_window->priv->toolbar)), + GTK_STYLE_CLASS_PRIMARY_TOOLBAR); +#endif + egg_editable_toolbar_show (EGG_EDITABLE_TOOLBAR (ev_window->priv->toolbar), "DefaultToolBar"); gtk_box_pack_start (GTK_BOX (ev_window->priv->main_box), |