[glade/ui-incubator] Update GladeEditorProperty label sensitivity on GladeProperty sensitivity notify.
- From: Juan Pablo Ugarte <jpu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade/ui-incubator] Update GladeEditorProperty label sensitivity on GladeProperty sensitivity notify.
- Date: Wed, 31 Oct 2012 20:05:21 +0000 (UTC)
commit 0676c8c8d7aabd120027f9013f5ec232866f045b
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date: Fri Oct 19 11:37:44 2012 -0700
Update GladeEditorProperty label sensitivity on GladeProperty sensitivity notify.
gladeui/glade-editor-property.c | 18 ++++++++++++------
1 files changed, 12 insertions(+), 6 deletions(-)
---
diff --git a/gladeui/glade-editor-property.c b/gladeui/glade-editor-property.c
index 556fcf1..7a29ddf 100644
--- a/gladeui/glade-editor-property.c
+++ b/gladeui/glade-editor-property.c
@@ -201,14 +201,20 @@ glade_editor_property_sensitivity_cb (GladeProperty *property,
GParamSpec *pspec,
GladeEditorProperty *eprop)
{
- gboolean sensitive = glade_property_get_sensitive (eprop->priv->property);
+ GladeEditorPropertyPrivate *priv = eprop->priv;
+ gboolean property_enabled = glade_property_get_enabled (property);
+ gboolean sensitive = glade_property_get_sensitive (priv->property);
gboolean support_sensitive =
- (glade_property_get_state (eprop->priv->property) & GLADE_STATE_SUPPORT_DISABLED) == 0;
+ (glade_property_get_state (priv->property) & GLADE_STATE_SUPPORT_DISABLED) == 0;
- gtk_widget_set_sensitive (eprop->priv->input, sensitive && support_sensitive &&
- glade_property_get_enabled (property));
- if (eprop->priv->check)
- gtk_widget_set_sensitive (eprop->priv->check, sensitive && support_sensitive);
+ gtk_widget_set_sensitive (priv->input,
+ sensitive && support_sensitive && property_enabled);
+
+ if (priv->item_label)
+ gtk_widget_set_sensitive (priv->item_label,
+ sensitive && support_sensitive && property_enabled);
+ if (priv->check)
+ gtk_widget_set_sensitive (priv->check, sensitive && support_sensitive);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]