[gnome-online-accounts] goabackend: remove custom CSS styling



commit 2492da7a1714511d7bbda217333a7321deeb04d1
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed May 23 12:15:08 2012 -0400

    goabackend: remove custom CSS styling
    
    Now that the overlay progressbar is styled by the theme, we can just
    set the OSD style class on the overlay to get the same effect.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=676659

 data/Makefile.am               |    4 ----
 data/gnome-online-accounts.css |   28 ----------------------------
 src/goabackend/goaprovider.c   |    8 --------
 src/goabackend/goaprovider.h   |    2 --
 src/goabackend/goawebview.c    |    4 ++--
 5 files changed, 2 insertions(+), 44 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index dc550a7..1254c9a 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -3,9 +3,6 @@ NULL =
 
 SUBDIRS = icons
 
-cssdir           = $(pkgdatadir)
-css_DATA         = gnome-online-accounts.css
-
 servicedir       = $(datadir)/dbus-1/services
 service_in_files = org.gnome.OnlineAccounts.service.in
 service_DATA     = $(service_in_files:.service.in=.service)
@@ -14,7 +11,6 @@ $(service_DATA): $(service_in_files) Makefile
 	@sed -e "s|\ libexecdir\@|$(libexecdir)|" $< > $@
 
 EXTRA_DIST =						\
-	$(css_DATA)					\
 	$(service_in_files)				\
 	dbus-interfaces.xml				\
 	$(NULL)
diff --git a/src/goabackend/goaprovider.c b/src/goabackend/goaprovider.c
index 39df23c..5f7d6a9 100644
--- a/src/goabackend/goaprovider.c
+++ b/src/goabackend/goaprovider.c
@@ -944,14 +944,6 @@ goa_provider_delete_credentials_sync (GoaProvider   *provider,
 
 /* ---------------------------------------------------------------------------------------------------- */
 
-gchar *
-goa_util_get_css (void)
-{
-  return g_strdup (PACKAGE_DATA_DIR "/" PACKAGE "/" PACKAGE ".css");
-}
-
-/* ---------------------------------------------------------------------------------------------------- */
-
 /**
  * goa_util_add_row_widget:
  * @left: A #GtkGrid for the left side.
diff --git a/src/goabackend/goaprovider.h b/src/goabackend/goaprovider.h
index c1f0b61..06fcadb 100644
--- a/src/goabackend/goaprovider.h
+++ b/src/goabackend/goaprovider.h
@@ -190,8 +190,6 @@ GtkWidget *goa_util_add_row_widget (GtkGrid      *left,
                                     const gchar  *label_text,
                                     GtkWidget    *widget);
 
-gchar     *goa_util_get_css        (void);
-
 gchar *
 goa_util_lookup_keyfile_string (GoaObject    *object,
                                 const gchar  *key);
diff --git a/src/goabackend/goawebview.c b/src/goabackend/goawebview.c
index c4b27b9..9349789 100644
--- a/src/goabackend/goawebview.c
+++ b/src/goabackend/goawebview.c
@@ -229,7 +229,8 @@ goa_web_view_init (GoaWebView *self)
   soup_session_add_feature (session, SOUP_SESSION_FEATURE (cookie_jar));
   g_object_unref (cookie_jar);
 
-  gtk_widget_set_name (GTK_WIDGET (self), "goa-overlay");
+  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);
@@ -251,7 +252,6 @@ goa_web_view_init (GoaWebView *self)
   gtk_overlay_add_overlay (GTK_OVERLAY (self), priv->floating_bar);
 
   priv->progress_bar = gtk_progress_bar_new ();
-  gtk_widget_set_name (priv->progress_bar, "goa-progress-bar");
   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]