[gnome-online-accounts] webview: don't set the OSD style class on the whole overlay



commit 0f3bd6c6384e30385363f36e89eccf602bfb627e
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Fri Jan 4 12:06:38 2013 +0100

    webview: don't set the OSD style class on the whole overlay
    
    The progressbar is an OSD; setting it on the whole overlay means the
    scrolled window and the view itself will also match it, which we don't
    want. See also
    
    http://git.gnome.org/browse/epiphany/commit/?id=2e710ab607b2ab2b18125574bf9fbcd44abd74b4
    
    https://bugzilla.gnome.org/show_bug.cgi?id=691122

 src/goabackend/goawebview.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/goabackend/goawebview.c b/src/goabackend/goawebview.c
index c139fd7..4fc4dd3 100644
--- a/src/goabackend/goawebview.c
+++ b/src/goabackend/goawebview.c
@@ -250,9 +250,6 @@ goa_web_view_init (GoaWebView *self)
   soup_session_add_feature (session, SOUP_SESSION_FEATURE (logger));
   g_object_unref (logger);
 
-  gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (self)),
-                               GTK_STYLE_CLASS_OSD);
-
   scrolled_window = gtk_scrolled_window_new (NULL, NULL);
   gtk_widget_set_size_request (scrolled_window, 500, 400);
   gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_window), GTK_SHADOW_IN);
@@ -276,6 +273,8 @@ goa_web_view_init (GoaWebView *self)
   gtk_overlay_add_overlay (GTK_OVERLAY (self), priv->floating_bar);
 
   priv->progress_bar = gtk_progress_bar_new ();
+  gtk_style_context_add_class (gtk_widget_get_style_context (priv->progress_bar),
+                               GTK_STYLE_CLASS_OSD);
   gtk_widget_set_halign (priv->progress_bar, GTK_ALIGN_FILL);
   gtk_widget_set_valign (priv->progress_bar, GTK_ALIGN_START);
   gtk_overlay_add_overlay (GTK_OVERLAY (self), priv->progress_bar);



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