From 2e710ab607b2ab2b18125574bf9fbcd44abd74b4 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Mon, 17 Dec 2012 13:09:46 +0100 Subject: embed: move the OSD style class to the progressbar cosimoc: ok, sure, go ahead Fixes black scrollbars showing up. --- embed/ephy-embed.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'embed') diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c index 151a18dfa..c66dad3c5 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); -- cgit v1.2.3