From db376bf7deca30691aedfed45401efef787568f7 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Sun, 8 Jul 2007 13:39:42 +0000 Subject: [PATCH] Parse last_modification_time attribute in tag 2007-07-08 Johan Dahlin * gtk/gtkbuilderparser.c (parse_signal): Parse last_modification_time attribute in tag svn path=/trunk/; revision=18402 --- ChangeLog | 5 ++++ docs/reference/ChangeLog | 4 +++ docs/reference/gtk/tmpl/gtkbuilder.sgml | 36 +++++++++++++------------ gtk/gtkbuilderparser.c | 3 +++ 4 files changed, 31 insertions(+), 17 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2d22507448..0b9de35ad5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-07-08 Johan Dahlin + + * gtk/gtkbuilderparser.c (parse_signal): Parse last_modification_time + attribute in tag + 2007-07-07 Matthias Clasen * gtk/gtkbuilderprivate.h: diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index 7325eda066..3d4396783a 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,7 @@ +2007-07-08 Johan Dahlin + + * gtk/tmpl/gtkbuilder.sgml: Mention last_modification_time + 2007-07-07 Matthias Clasen * gtk/tmpl/gtkbuilder.sgml: Document context and diff --git a/docs/reference/gtk/tmpl/gtkbuilder.sgml b/docs/reference/gtk/tmpl/gtkbuilder.sgml index 1a83eb3cb0..2945ce3fe5 100644 --- a/docs/reference/gtk/tmpl/gtkbuilder.sgml +++ b/docs/reference/gtk/tmpl/gtkbuilder.sgml @@ -56,22 +56,23 @@ which are more limited in scope. - - - - - + + + + + ]]> @@ -145,7 +146,8 @@ but this can be changed by passing a custom #GtkBuilderConnectFunc to gtk_builder_connect_signals_full(). The remaining attributes, "after", "swapped" and "object", have the same meaning as the corresponding parameters of the g_signal_connect_object() or -g_signal_connect_data() functions. +g_signal_connect_data() functions. A "last_modification_time" attribute +is also allowed, but it does not have a meaning to the builder. Sometimes it is necessary to refer to widgets which have implicitly diff --git a/gtk/gtkbuilderparser.c b/gtk/gtkbuilderparser.c index d7605fea1e..b4700b1f0e 100644 --- a/gtk/gtkbuilderparser.c +++ b/gtk/gtkbuilderparser.c @@ -484,6 +484,9 @@ parse_signal (ParserData *data, } else if (strcmp (names[i], "object") == 0) object = g_strdup (values[i]); + else if (strcmp (names[i], "last_modification_time") == 0) + /* parse but ignore */ + ; else { error_invalid_attribute (data, element_name, names[i], error);