[Gtk-sharp-list] Patch for missing new flags

Martin Willemoes Hansen mwh@sysrq.dk
Wed, 27 Aug 2003 12:50:20 +0200


--=-vXIBSWeAM5QaMBraoUvu
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Wed, 2003-08-27 at 12:17, Martin Willemoes Hansen wrote:
> Hi!
> 
> I noticed while trying to compile the gtk assembly, that a bunch of new
> flags was missing in some method signatures.
> 
> This patch fixes the problem.

Vups did not quite fix the problem, but this new patch should do most of
it, still a problem with GtkMenu though.

It get the right new_flag in the gtk-api.xml with this patch, but the
generator do not make a new flag, maybe because it converts the Get
method to a property.

Anyways okay to commit?

-- 
Martin Willemoes Hansen

--------------------------------------------------------
E-Mail	mwh@sysrq.dk	Website	mwh.sysrq.dk
IRC     MWH, freenode.net
--------------------------------------------------------               


--=-vXIBSWeAM5QaMBraoUvu
Content-Disposition: attachment; filename=Gtk.metadata.diff
Content-Type: text/x-patch; name=Gtk.metadata.diff; charset=iso-8859-1
Content-Transfer-Encoding: 7bit

Index: Gtk.metadata
===================================================================
RCS file: /cvs/public/gtk-sharp/sources/Gtk.metadata,v
retrieving revision 1.59
diff -u -r1.59 Gtk.metadata
--- Gtk.metadata	15 Aug 2003 23:19:55 -0000	1.59
+++ Gtk.metadata	27 Aug 2003 11:02:18 -0000
@@ -1657,22 +1657,28 @@
 <!-- new_flags -->
 <rule>
   <class name="GtkInvisible">
-    <method>GetScreen</method>
-    <method>SetScreen</method>
-   </class>
-  <class name="GtkMenu">
-    <method>SetScreen</method>
-   </class>
+    <property>Screen</property>
+  </class>
   <class name="GtkWindow">
-    <method>GetScreen</method>
+    <property>Screen</property>
+  </class>
+  <data>
+    <attribute target="property">
+      <name>new_flag</name>
+      <value>1</value>
+    </attribute>
+  </data>
+</rule>
+<rule>
+  <class name="GtkMenu">
     <method>SetScreen</method>
-   </class>
-   <data>
+  </class>
+  <data>
     <attribute target="method">
       <name>new_flag</name>
       <value>1</value>
     </attribute>
-   </data>
+  </data>
 </rule>
 
 <!-- hides -->

--=-vXIBSWeAM5QaMBraoUvu--