[glade/gbinding] Make the labels of bound properties in the inspector bold-italic
- From: Denis Washington <denisw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade/gbinding] Make the labels of bound properties in the inspector bold-italic
- Date: Fri, 10 Jun 2011 08:45:24 +0000 (UTC)
commit 6b9d6860ac32475a4c82d8f4e12f54a75150a491
Author: Denis Washington <denisw src gnome org>
Date: Fri Jun 10 10:40:45 2011 +0200
Make the labels of bound properties in the inspector bold-italic
This makes bound properties stick out more than purely italicizing,
which is barely noticeable.
gladeui/glade-editor-property.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gladeui/glade-editor-property.c b/gladeui/glade-editor-property.c
index cdb0abc..9d0d921 100644
--- a/gladeui/glade-editor-property.c
+++ b/gladeui/glade-editor-property.c
@@ -252,10 +252,10 @@ glade_editor_property_fix_label (GladeEditorProperty * eprop)
return;
/* refresh label */
- if ((glade_property_get_state (eprop->priv->property) & GLADE_STATE_CHANGED) != 0)
+ if (glade_property_get_binding (eprop->priv->property))
+ text = g_strdup_printf ("<b><i>%s:</i></b>", glade_property_class_get_name (eprop->priv->klass));
+ else if ((glade_property_get_state (eprop->priv->property) & GLADE_STATE_CHANGED) != 0)
text = g_strdup_printf ("<b>%s:</b>", glade_property_class_get_name (eprop->priv->klass));
- else if (glade_property_get_binding (eprop->priv->property))
- text = g_strdup_printf ("<i>%s:</i>", glade_property_class_get_name (eprop->priv->klass));
else
text = g_strdup_printf ("%s:", glade_property_class_get_name (eprop->priv->klass));
gtk_label_set_markup (GTK_LABEL (eprop->priv->label), text);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]