[gnome-online-accounts] Use "dim-label" style class instead of hardcoded color



commit 151d865164ce54a59fc45c978f1f4862870dde5a
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Apr 20 15:54:15 2012 +0200

    Use "dim-label" style class instead of hardcoded color

 src/goabackend/goaprovider.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/goabackend/goaprovider.c b/src/goabackend/goaprovider.c
index fbdff46..39df23c 100644
--- a/src/goabackend/goaprovider.c
+++ b/src/goabackend/goaprovider.c
@@ -977,13 +977,13 @@ goa_util_add_row_widget (GtkGrid      *left,
 
   if (label_text != NULL)
     {
-      gchar *s;
-      s = g_strdup_printf ("<span foreground=\"#555555\">%s</span>", label_text);
-      label = gtk_label_new (NULL);
-      gtk_label_set_markup (GTK_LABEL (label), s);
+      GtkStyleContext *context;
+
+      label = gtk_label_new (label_text);
+      context = gtk_widget_get_style_context (label);
+      gtk_style_context_add_class (context, "dim-label");
       gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5);
       gtk_container_add (GTK_CONTAINER (left), label);
-      g_free (s);
     }
 
   gtk_container_add (GTK_CONTAINER (right), widget);



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