[gnome-user-share] share-bar: don't set italic text



commit 05df1dd95aef7b164932d89d91004df264bbdbe4
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon May 21 15:05:22 2012 -0400

    share-bar: don't set italic text
    
    We don't favor italic text in the GNOME3 style. Since we already have a
    bold heading, this is kinda redundant anyway.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=676515

 src/nautilus-share-bar.c |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/src/nautilus-share-bar.c b/src/nautilus-share-bar.c
index 0d663ed..33dab14 100644
--- a/src/nautilus-share-bar.c
+++ b/src/nautilus-share-bar.c
@@ -53,10 +53,7 @@ nautilus_share_bar_set_property (GObject            *object,
 
         switch (prop_id) {
 	case PROP_LABEL: {
-		char *str;
-		str = g_strdup_printf ("<i>%s</i>", g_value_get_string (value));
-		gtk_label_set_markup (GTK_LABEL (self->priv->label), str);
-                g_free (str);
+		gtk_label_set_text (GTK_LABEL (self->priv->label), g_value_get_string (value));
 		break;
 	}
         default:
@@ -90,7 +87,6 @@ nautilus_share_bar_init (NautilusShareBar *bar)
         GtkWidget *vbox;
         GtkWidget *image;
         GtkWidget *button;
-        char      *hint;
         PangoAttrList *attrs;
 
         bar->priv = NAUTILUS_SHARE_BAR_GET_PRIVATE (bar);
@@ -112,10 +108,8 @@ nautilus_share_bar_init (NautilusShareBar *bar)
         gtk_widget_show (label);
         gtk_container_add (GTK_CONTAINER (vbox), label);
 
-        bar->priv->label = gtk_label_new ("");
+        bar->priv->label = gtk_label_new (NULL);
         gtk_widget_set_halign (bar->priv->label, GTK_ALIGN_START);
-        hint = g_strdup_printf ("<i>%s</i>", "");
-        gtk_label_set_markup (GTK_LABEL (bar->priv->label), hint);
         gtk_widget_show (bar->priv->label);
         gtk_container_add (GTK_CONTAINER (vbox), bar->priv->label);
 



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