[epiphany] embed: move the OSD style class to the progressbar



commit 2e710ab607b2ab2b18125574bf9fbcd44abd74b4
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Dec 17 13:09:46 2012 +0100

    embed: move the OSD style class to the progressbar
    
    <xan> cosimoc: ok, sure, go ahead
    
    Fixes black scrollbars showing up.

 embed/ephy-embed.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index 151a18d..c66dad3 100644
--- a/embed/ephy-embed.c
+++ b/embed/ephy-embed.c
@@ -880,8 +880,6 @@ ephy_embed_constructed (GObject *object)
   scrolled_window = GTK_WIDGET (priv->scrolled_window);
 #endif
   overlay = gtk_overlay_new ();
-  gtk_style_context_add_class (gtk_widget_get_style_context (overlay),
-                               GTK_STYLE_CLASS_OSD);
 
   gtk_widget_add_events (overlay, 
                          GDK_ENTER_NOTIFY_MASK |
@@ -910,6 +908,8 @@ ephy_embed_constructed (GObject *object)
   gtk_overlay_add_overlay (GTK_OVERLAY (overlay), priv->floating_bar);
 
   priv->progress = gtk_progress_bar_new ();
+  gtk_style_context_add_class (gtk_widget_get_style_context (priv->progress),
+                               GTK_STYLE_CLASS_OSD);
   gtk_widget_set_halign (priv->progress, GTK_ALIGN_FILL);
   gtk_widget_set_valign (priv->progress, GTK_ALIGN_START);
   gtk_overlay_add_overlay (GTK_OVERLAY (overlay), priv->progress);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]