[glade3] * gladeui/glade-editor-property.c: Hide editor properties when the property is not available on
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade3] * gladeui/glade-editor-property.c: Hide editor properties when the property is not available on
- Date: Sat, 18 Dec 2010 10:35:21 +0000 (UTC)
commit 8164800bd222562f5cf84413042df3181cf48fb3
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Sat Dec 18 19:30:11 2010 +0900
* gladeui/glade-editor-property.c: Hide editor properties when the property is not available
on the widget, bug 585299, fix by Marco Diego Aurélio Mesquita.
ChangeLog | 3 +++
gladeui/glade-editor-property.c | 10 +++++++++-
2 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 06ffe9b..b9d5828 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,9 @@
* src/Makefile.am, gladeui/Makefile.am, plugins/gtk+/Makefile.am, plugins/gnome/Makefile.am:
Fixed makefiles as per bug 521713 (patch initially by Daniel Macks).
+ * gladeui/glade-editor-property.c: Hide editor properties when the property is not available
+ on the widget, bug 585299, fix by Marco Diego Aurélio Mesquita.
+
2010-12-17 Tristan Van Berkom <tristanvb openismus com>
* gladeui/glade-project.c: Restore proper sorting of objects at save time.
diff --git a/gladeui/glade-editor-property.c b/gladeui/glade-editor-property.c
index d79d462..4b3183c 100644
--- a/gladeui/glade-editor-property.c
+++ b/gladeui/glade-editor-property.c
@@ -3767,7 +3767,15 @@ glade_editor_property_load_by_widget (GladeEditorProperty *eprop,
/* properties are allowed to be missing on some internal widgets */
property = glade_widget_get_property (widget, eprop->klass->id);
- glade_editor_property_load (eprop, property);
+ if(property) {
+ glade_editor_property_load (eprop, property);
+ gtk_widget_show (GTK_WIDGET (eprop));
+ gtk_widget_show (GTK_WIDGET (eprop->item_label));
+ }
+ else {
+ gtk_widget_hide (GTK_WIDGET (eprop));
+ gtk_widget_hide (GTK_WIDGET (eprop->item_label));
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]