diff options
author | Tristan Van Berkom <tvb@src.gnome.org> | 2008-10-25 06:01:51 +0000 |
---|---|---|
committer | Tristan Van Berkom <tvb@src.gnome.org> | 2008-10-25 06:01:51 +0000 |
commit | 77a9f9eac3901f9e0a15c6890e141224f4eca63a (patch) | |
tree | 344ed54a5bddb4d1b422f94eb76772c6b7b4cea8 /gladeui/glade-editor-table.c | |
parent | b27b083455a9ad05a3ea31fdba80812ac4eb1b0d (diff) | |
download | glade-77a9f9eac3901f9e0a15c6890e141224f4eca63a.tar.gz |
Fixed glade_property_class_make_adjustment() for floating and double
* gladeui/glade-property-class.c: Fixed glade_property_class_make_adjustment()
for floating and double values (page inc and size were not properly set).
* gladeui/glade-app.c: Fixed a warning
* gladeui/glade-editor-table.c: Was loading invisible properties, oops.
* doc/properties.sgml: Documented custom-layout property.
svn path=/trunk/; revision=1996
Diffstat (limited to 'gladeui/glade-editor-table.c')
-rw-r--r-- | gladeui/glade-editor-table.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gladeui/glade-editor-table.c b/gladeui/glade-editor-table.c index 0a0da0ee..e1ae84d2 100644 --- a/gladeui/glade-editor-table.c +++ b/gladeui/glade-editor-table.c @@ -206,7 +206,7 @@ get_sorted_properties (GladeWidgetAdaptor *adaptor, properties = (type == GLADE_PAGE_PACKING) ? adaptor->packing_props : adaptor->properties; - for (l = properties; l && l->data; l = g_list_next (l)) + for (l = properties; l; l = g_list_next (l)) { GladePropertyClass *klass = l->data; @@ -214,9 +214,11 @@ get_sorted_properties (GladeWidgetAdaptor *adaptor, * invisible properties, allow adaptors to filter out properties from * the GladeEditorTable using the "custom-layout" attribute. */ - if (!klass->custom_layout && GLADE_PROPERTY_CLASS_IS_TYPE (klass, type) && - (glade_property_class_is_visible (klass) || type != GLADE_PAGE_QUERY)) + if ((!klass->custom_layout) && GLADE_PROPERTY_CLASS_IS_TYPE (klass, type) && + (glade_property_class_is_visible (klass) || type == GLADE_PAGE_QUERY)) + { list = g_list_prepend (list, klass); + } } return g_list_sort (list, property_class_comp); |