diff options
author | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2013-04-14 21:51:40 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2013-04-14 21:51:40 +0900 |
commit | 6aec2ea56f528d0d62915cebfb343fce011a2f87 (patch) | |
tree | 0668561cde2d332518062cea3b16ed43f81f9842 /gladeui | |
parent | 7e904c4f1559977c6fc9530b361b4efac7594c89 (diff) | |
download | glade-6aec2ea56f528d0d62915cebfb343fce011a2f87.tar.gz |
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.
Diffstat (limited to 'gladeui')
-rw-r--r-- | gladeui/glade-property-label.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gladeui/glade-property-label.c b/gladeui/glade-property-label.c index 268d4ab6..52ebdf87 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); |