summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-08-07 18:44:16 +0200
committerraveit65 <[email protected]>2017-08-15 14:20:33 +0200
commita7dd748aab0877efb1e681ffe72c6285ad23a29e (patch)
tree9d5d1a93c864d8284cc5a19225dbed6b2b6610fa /shell
parent13ece1f6fc9ae21b58bba38df4aaa960baa22d8e (diff)
downloadatril-a7dd748aab0877efb1e681ffe72c6285ad23a29e.tar.bz2
atril-a7dd748aab0877efb1e681ffe72c6285ad23a29e.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
Diffstat (limited to 'shell')
-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 9e537ae4..94cd5071 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),