Set properties in the order in which they are specified in the xml file.

* gtk/gtkbuilderparser.c (parse_custom): Set properties in the order
        in which they are specified in the xml file.


svn path=/trunk/; revision=20749
This commit is contained in:
Matthias Clasen
2008-07-03 18:09:04 +00:00
parent efd2dbf026
commit 7d9cf87a04
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2008-07-03 Matthias Clasen <mclasen@redhat.com>
Bug 540915 GtkBuilder sets properties in reverse order
* gtk/gtkbuilderparser.c (parse_custom): Set properties in the order
in which they are specified in the xml file.
2008-07-03 Matthias Clasen <mclasen@redhat.com> 2008-07-03 Matthias Clasen <mclasen@redhat.com>
Bug 539944 Add GtkScaleButton API so struct fields can be marked as Bug 539944 Add GtkScaleButton API so struct fields can be marked as

View File

@ -713,6 +713,7 @@ parse_custom (GMarkupParseContext *context,
ObjectInfo* object_info = (ObjectInfo*)parent_info; ObjectInfo* object_info = (ObjectInfo*)parent_info;
if (!object_info->object) if (!object_info->object)
{ {
object_info->properties = g_slist_reverse (object_info->properties);
object_info->object = _gtk_builder_construct (data->builder, object_info->object = _gtk_builder_construct (data->builder,
object_info, object_info,
error); error);