]> Pileus Git - ~andy/gtk/commitdiff
Parse last_modification_time attribute in <signal> tag
authorJohan Dahlin <jdahlin@async.com.br>
Sun, 8 Jul 2007 13:39:42 +0000 (13:39 +0000)
committerJohan Dahlin <johan@src.gnome.org>
Sun, 8 Jul 2007 13:39:42 +0000 (13:39 +0000)
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

ChangeLog
docs/reference/ChangeLog
docs/reference/gtk/tmpl/gtkbuilder.sgml
gtk/gtkbuilderparser.c

index 2d22507448af0ccc5c5c8b404ca83ab12628b10d..0b9de35ad5ca5732794a1cf1c692b9665e12b463 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * gtk/gtkbuilderprivate.h:
index 7325eda066df5273068de1b18f5c40e1460ae196..3d4396783a2464a78aa468a22a04f158b941cfb2 100644 (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>
 
        * gtk/tmpl/gtkbuilder.sgml: Document context and
index 1a83eb3cb067839a9dcc6fece5aacb2fa3b0bd2b..2945ce3fe53ea928c4bddcaa3e817fffdb04679f 100644 (file)
@@ -56,22 +56,23 @@ which are more limited in scope.
 <!ELEMENT signal    EMPTY >
 <!ELEMENT child     (object|ANY*) >
 
-<!ATTLIST interface  domain         #IMPLIED >
-<!ATTLIST object     id             #REQUIRED
-                     class          #IMPLIED
-                     type-func      #IMPLIED
-                     constructor    #IMPLIED >
-<!ATTLIST property   name           #REQUIRED
-                     translatable   #IMPLIED 
-                     comments       #IMPLIED
-                     context        #IMPLIED >
-<!ATTLIST signal     name           #REQUIRED
-                     handler        #REQUIRED
-                     after          #IMPLIED
-                     swapped        #IMPLIED
-                     object         #IMPLIED >
-<!ATTLIST child      type           #IMPLIED
-                     internal-child #IMPLIED >
+<!ATTLIST interface  domain                #IMPLIED >
+<!ATTLIST object     id                    #REQUIRED
+                     class                 #IMPLIED
+                     type-func             #IMPLIED
+                     constructor           #IMPLIED >
+<!ATTLIST property   name                  #REQUIRED
+                     translatable          #IMPLIED 
+                     comments               #IMPLIED
+                     context                #IMPLIED >
+<!ATTLIST signal     name                  #REQUIRED
+                     handler               #REQUIRED
+                     after                 #IMPLIED
+                     swapped               #IMPLIED
+                     object                #IMPLIED
+                     last_modification_time #IMPLIED >
+<!ATTLIST child      type                  #IMPLIED
+                     internal-child        #IMPLIED >
 ]]></programlisting>
 </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,
 "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.
 </para>
 <para>
 Sometimes it is necessary to refer to widgets which have implicitly
index d7605fea1eba9141f2cf8583a5299d64a15dc220..b4700b1f0eb203d7a6445ad50e3ca4adb513cbdc 100644 (file)
@@ -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);