[glade] GladePropertyLabel: Now use italic to show changed state of properties.



commit 6aec2ea56f528d0d62915cebfb343fce011a2f87
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Sun Apr 14 21:51:40 2013 +0900

    GladePropertyLabel: Now use italic to show changed state of properties.
    
    We want to use bold lettering to show different sections in an editor,
    using bold for modified state of properties conflicts with the appearance,
    italic is more subtle but also obvious.

 gladeui/glade-property-label.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gladeui/glade-property-label.c b/gladeui/glade-property-label.c
index 268d4ab..52ebdf8 100644
--- a/gladeui/glade-property-label.c
+++ b/gladeui/glade-property-label.c
@@ -357,7 +357,7 @@ glade_property_label_sensitivity_cb (GladeProperty      *property,
 }
 
 static PangoAttrList *
-get_bold_attribute (void)
+get_modified_attribute (void)
 {
   static PangoAttrList *attrs = NULL;
 
@@ -366,7 +366,7 @@ get_bold_attribute (void)
       PangoAttribute *attr;
 
       attrs = pango_attr_list_new ();
-      attr  = pango_attr_weight_new (PANGO_WEIGHT_BOLD);
+      attr  = pango_attr_style_new (PANGO_STYLE_ITALIC);
       pango_attr_list_insert (attrs, attr);
     }
 
@@ -385,7 +385,7 @@ glade_property_label_state_cb (GladeProperty      *property,
 
   /* refresh label */
   if ((glade_property_get_state (priv->property) & GLADE_STATE_CHANGED) != 0)
-    gtk_label_set_attributes (GTK_LABEL (priv->label), get_bold_attribute());
+    gtk_label_set_attributes (GTK_LABEL (priv->label), get_modified_attribute());
   else
     gtk_label_set_attributes (GTK_LABEL (priv->label), NULL);
 


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