diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2007-12-02 11:43:38 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@src.gnome.org> | 2007-12-02 11:43:38 (GMT) |
commit | 595d902c5518765e086e8a911124ef36ed9300b7 (patch) | |
tree | a8103f389798eb93c3afd380889e4202d600601b /shell | |
parent | 0e105f494990d6cad66dd8c90794089a7b2cd2b3 (diff) |
Remove the shadow of the fullscreen toolbar. Fixes bug #500702.
2007-12-02 Carlos Garcia Campos <carlosgc@gnome.org>
* 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
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ev-window.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c index ef9d996..ed568f9 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -2831,6 +2831,27 @@ fullscreen_toolbar_setup_item_properties (GtkUIManager *ui_manager) } 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) { if (!window->priv->fullscreen_toolbar) { @@ -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), |