From a7dd748aab0877efb1e681ffe72c6285ad23a29e Mon Sep 17 00:00:00 2001 From: raveit65 Date: Mon, 7 Aug 2017 18:44:16 +0200 Subject: 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 --- shell/ev-window.c | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/shell/ev-window.c b/shell/ev-window.c index 9e537ae4..94cd5071 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -4098,24 +4098,6 @@ fullscreen_toolbar_setup_item_properties (GtkUIManager *ui_manager) g_object_set (item, "is-important", TRUE, NULL); } -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) { @@ -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), -- cgit v1.2.1