Parse last_modification_time attribute in <signal> tag

2007-07-08  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkbuilderparser.c (parse_signal): Parse last_modification_time
    attribute in <signal> tag


svn path=/trunk/; revision=18402
This commit is contained in:
Johan Dahlin 2007-07-08 13:39:42 +00:00 committed by Johan Dahlin
parent 5f3729b87c
commit db376bf7de
4 changed files with 31 additions and 17 deletions

View File

@ -1,3 +1,8 @@
2007-07-08 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtkbuilderparser.c (parse_signal): Parse last_modification_time
attribute in <signal> tag
2007-07-07 Matthias Clasen <mclasen@redhat.com> 2007-07-07 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkbuilderprivate.h: * gtk/gtkbuilderprivate.h:

View File

@ -1,3 +1,7 @@
2007-07-08 Johan Dahlin <jdahlin@async.com.br>
* gtk/tmpl/gtkbuilder.sgml: Mention last_modification_time
2007-07-07 Matthias Clasen <mclasen@redhat.com> 2007-07-07 Matthias Clasen <mclasen@redhat.com>
* gtk/tmpl/gtkbuilder.sgml: Document context and * gtk/tmpl/gtkbuilder.sgml: Document context and

View File

@ -56,22 +56,23 @@ which are more limited in scope.
<!ELEMENT signal EMPTY > <!ELEMENT signal EMPTY >
<!ELEMENT child (object|ANY*) > <!ELEMENT child (object|ANY*) >
<!ATTLIST interface domain #IMPLIED > <!ATTLIST interface domain #IMPLIED >
<!ATTLIST object id #REQUIRED <!ATTLIST object id #REQUIRED
class #IMPLIED class #IMPLIED
type-func #IMPLIED type-func #IMPLIED
constructor #IMPLIED > constructor #IMPLIED >
<!ATTLIST property name #REQUIRED <!ATTLIST property name #REQUIRED
translatable #IMPLIED translatable #IMPLIED
comments #IMPLIED comments #IMPLIED
context #IMPLIED > context #IMPLIED >
<!ATTLIST signal name #REQUIRED <!ATTLIST signal name #REQUIRED
handler #REQUIRED handler #REQUIRED
after #IMPLIED after #IMPLIED
swapped #IMPLIED swapped #IMPLIED
object #IMPLIED > object #IMPLIED
<!ATTLIST child type #IMPLIED last_modification_time #IMPLIED >
internal-child #IMPLIED > <!ATTLIST child type #IMPLIED
internal-child #IMPLIED >
]]></programlisting> ]]></programlisting>
</para> </para>
<para> <para>
@ -145,7 +146,8 @@ but this can be changed by passing a custom #GtkBuilderConnectFunc
to gtk_builder_connect_signals_full(). The remaining attributes, to gtk_builder_connect_signals_full(). The remaining attributes,
"after", "swapped" and "object", have the same meaning as the "after", "swapped" and "object", have the same meaning as the
corresponding parameters of the g_signal_connect_object() or 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.
</para> </para>
<para> <para>
Sometimes it is necessary to refer to widgets which have implicitly Sometimes it is necessary to refer to widgets which have implicitly

View File

@ -484,6 +484,9 @@ parse_signal (ParserData *data,
} }
else if (strcmp (names[i], "object") == 0) else if (strcmp (names[i], "object") == 0)
object = g_strdup (values[i]); object = g_strdup (values[i]);
else if (strcmp (names[i], "last_modification_time") == 0)
/* parse but ignore */
;
else else
{ {
error_invalid_attribute (data, element_name, names[i], error); error_invalid_attribute (data, element_name, names[i], error);