From 595d902c5518765e086e8a911124ef36ed9300b7 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Sun, 2 Dec 2007 11:43:38 +0000 Subject: [PATCH] Remove the shadow of the fullscreen toolbar. Fixes bug #500702. 2007-12-02 Carlos Garcia Campos * shell/ev-window.c: (fullscreen_toolbar_remove_shadow), (ev_window_run_fullscreen): Remove the shadow of the fullscreen toolbar. Fixes bug #500702. svn path=/trunk/; revision=2756 --- ChangeLog | 7 +++++++ shell/ev-window.c | 22 ++++++++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/ChangeLog b/ChangeLog index 05e02272..23af1c20 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-12-02 Carlos Garcia Campos + + * shell/ev-window.c: (fullscreen_toolbar_remove_shadow), + (ev_window_run_fullscreen): + + Remove the shadow of the fullscreen toolbar. Fixes bug #500702. + 2007-12-01 Carlos Garcia Campos * ev-sidebar-thumbnails.c: (update_visible_range), diff --git a/shell/ev-window.c b/shell/ev-window.c index ef9d996d..ed568f95 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -2830,6 +2830,27 @@ fullscreen_toolbar_setup_item_properties (GtkUIManager *ui_manager) g_object_set (item, "is-important", TRUE, NULL); } +static void +fullscreen_toolbar_remove_shadow (GtkWidget *toolbar) +{ + static gboolean done = FALSE; + + if (!done) { + gtk_rc_parse_string ( + "\n" + " style \"fullscreen-toolbar-style\"\n" + " {\n" + " GtkToolbar::shadow-type=GTK_SHADOW_NONE\n" + " }\n" + "\n" + " widget \"*.fullscreen-toolbar\" style \"fullscreen-toolbar-style\"\n" + "\n"); + done = TRUE; + } + + gtk_widget_set_name (toolbar, "fullscreen-toolbar"); +} + static void ev_window_run_fullscreen (EvWindow *window) { @@ -2840,6 +2861,7 @@ ev_window_run_fullscreen (EvWindow *window) 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), -- 2.43.5