[glade/gbinding: 13/60] 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: 13/60] Make the labels of bound properties in the inspector bold-italic
- Date: Tue, 13 Dec 2011 07:00:34 +0000 (UTC)
commit 304bc56f0c017636f1842962bddf6e0f9af4d689
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 9b4cc68..e161b0e 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]