summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-08-07 18:44:16 +0200
committerraveit65 <[email protected]>2017-08-07 18:44:16 +0200
commit963490dc47f7887cf5666b18b2e5dc4dd7b0698e (patch)
tree9a7bbf1fdfc7467d7ad3dc7ff3ca519a9c0cf6ff
parentd134b361ccce0bdb32d4aaf9d1874918d6ee4eee (diff)
downloadatril-963490dc47f7887cf5666b18b2e5dc4dd7b0698e.tar.bz2
atril-963490dc47f7887cf5666b18b2e5dc4dd7b0698e.tar.xz
ev-window: remove deprecated GtkToolbar-shadow-type
Whole the function fullscreen_toolbar_remove_shadow isn't needed without that deprecation. Setting instead the widget name to make theming possible. GtkToolbar-shadow-type is deprecated since gtk+-3.6
-rw-r--r--shell/ev-window.c21
1 files changed, 2 insertions, 19 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index a2217882..5c7124b4 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -4099,24 +4099,6 @@ fullscreen_toolbar_setup_item_properties (GtkUIManager *ui_manager)
}
static void
-fullscreen_toolbar_remove_shadow (GtkWidget *toolbar)
-{
- GtkCssProvider *provider;
-
- gtk_widget_set_name (toolbar, "ev-fullscreen-toolbar");
-
- provider = gtk_css_provider_new ();
- gtk_css_provider_load_from_data (provider,
- "#ev-fullscreen-toolbar {\n"
- " -GtkToolbar-shadow-type: none; }",
- -1, NULL);
- gtk_style_context_add_provider (gtk_widget_get_style_context (toolbar),
- GTK_STYLE_PROVIDER (provider),
- GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
- g_object_unref (provider);
-}
-
-static void
ev_window_run_fullscreen (EvWindow *window)
{
gboolean fullscreen_window = TRUE;
@@ -4129,9 +4111,10 @@ ev_window_run_fullscreen (EvWindow *window)
gtk_ui_manager_get_widget (window->priv->ui_manager,
"/FullscreenToolbar");
+ gtk_widget_set_name (window->priv->fullscreen_toolbar,
+ "atril-fullscreen-toolbar");
gtk_toolbar_set_style (GTK_TOOLBAR (window->priv->fullscreen_toolbar),
GTK_TOOLBAR_BOTH_HORIZ);
- fullscreen_toolbar_remove_shadow (window->priv->fullscreen_toolbar);
fullscreen_toolbar_setup_item_properties (window->priv->ui_manager);
gtk_box_pack_start (GTK_BOX (window->priv->main_box),