mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-23 05:45:29 +00:00
2002-07-09 Mike Kestner <mkestner@speakeasy.net>
* generator/ClassBase.cs : handle overloaded method hash collision * generator/SignalHandler.cs : generate *Handler delegates. stub *Args * parser/Gtk.metadata : add *Defaults method renaming svn path=/trunk/gtk-sharp/; revision=5678
This commit is contained in:
parent
a31a206d61
commit
79e7514057
|
@ -1,3 +1,9 @@
|
||||||
|
2002-07-09 Mike Kestner <mkestner@speakeasy.net>
|
||||||
|
|
||||||
|
* generator/ClassBase.cs : handle overloaded method hash collision
|
||||||
|
* generator/SignalHandler.cs : generate *Handler delegates. stub *Args
|
||||||
|
* parser/Gtk.metadata : add *Defaults method renaming
|
||||||
|
|
||||||
2002-07-08 Mike Kestner <mkestner@speakeasy.net>
|
2002-07-08 Mike Kestner <mkestner@speakeasy.net>
|
||||||
|
|
||||||
* glue/Makefile.in : s/BASE_SOURCES/BASESOURCES
|
* glue/Makefile.in : s/BASE_SOURCES/BASESOURCES
|
||||||
|
|
|
@ -44,7 +44,10 @@ namespace GtkSharp.Generation {
|
||||||
|
|
||||||
switch (node.Name) {
|
switch (node.Name) {
|
||||||
case "method":
|
case "method":
|
||||||
methods.Add (member.GetAttribute ("name"), new Method (LibraryName, member, this));
|
string name = member.GetAttribute("name");
|
||||||
|
while (methods.ContainsKey(name))
|
||||||
|
name += "mangled";
|
||||||
|
methods.Add (name, new Method (LibraryName, member, this));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "property":
|
case "property":
|
||||||
|
|
|
@ -99,6 +99,8 @@ namespace GtkSharp.Generation {
|
||||||
String sname = name + "Signal";
|
String sname = name + "Signal";
|
||||||
String dname = name + "Delegate";
|
String dname = name + "Delegate";
|
||||||
String cbname = name + "Callback";
|
String cbname = name + "Callback";
|
||||||
|
String hndlrname = name + "Handler";
|
||||||
|
String argsname = name + "Args";
|
||||||
|
|
||||||
handlers[name] = sname;
|
handlers[name] = sname;
|
||||||
|
|
||||||
|
@ -122,6 +124,11 @@ namespace GtkSharp.Generation {
|
||||||
sw.Write("\tpublic delegate " + p_ret + " ");
|
sw.Write("\tpublic delegate " + p_ret + " ");
|
||||||
sw.WriteLine(dname + "(" + pinv + ", int key);");
|
sw.WriteLine(dname + "(" + pinv + ", int key);");
|
||||||
sw.WriteLine();
|
sw.WriteLine();
|
||||||
|
sw.WriteLine("\tpublic delegate void " + hndlrname + "(object o, " + argsname + " args);");
|
||||||
|
sw.WriteLine();
|
||||||
|
sw.WriteLine("\tpublic class " + argsname + " : EventArgs {");
|
||||||
|
sw.WriteLine("\t}");
|
||||||
|
sw.WriteLine();
|
||||||
sw.WriteLine("\tpublic class " + sname + " : SignalCallback {");
|
sw.WriteLine("\tpublic class " + sname + " : SignalCallback {");
|
||||||
sw.WriteLine();
|
sw.WriteLine();
|
||||||
sw.WriteLine("\t\tprivate static " + dname + " _Delegate;");
|
sw.WriteLine("\t\tprivate static " + dname + " _Delegate;");
|
||||||
|
|
|
@ -9381,7 +9381,7 @@
|
||||||
<parameter type="GtkPackType*" name="pack_type"/>
|
<parameter type="GtkPackType*" name="pack_type"/>
|
||||||
</parameters>
|
</parameters>
|
||||||
</method>
|
</method>
|
||||||
<method name="PackEndDefaults" cname="gtk_box_pack_end_defaults">
|
<method name="PackEnd" cname="gtk_box_pack_end_defaults">
|
||||||
<return-type type="void"/>
|
<return-type type="void"/>
|
||||||
<parameters>
|
<parameters>
|
||||||
<parameter type="GtkWidget*" name="widget"/>
|
<parameter type="GtkWidget*" name="widget"/>
|
||||||
|
@ -9403,7 +9403,7 @@
|
||||||
<parameter type="GtkPackType" name="pack_type"/>
|
<parameter type="GtkPackType" name="pack_type"/>
|
||||||
</parameters>
|
</parameters>
|
||||||
</method>
|
</method>
|
||||||
<method name="PackStartDefaults" cname="gtk_box_pack_start_defaults">
|
<method name="PackStart" cname="gtk_box_pack_start_defaults">
|
||||||
<return-type type="void"/>
|
<return-type type="void"/>
|
||||||
<parameters>
|
<parameters>
|
||||||
<parameter type="GtkWidget*" name="widget"/>
|
<parameter type="GtkWidget*" name="widget"/>
|
||||||
|
@ -13617,7 +13617,7 @@
|
||||||
<parameter type="gboolean" name="homogeneous"/>
|
<parameter type="gboolean" name="homogeneous"/>
|
||||||
</parameters>
|
</parameters>
|
||||||
</constructor>
|
</constructor>
|
||||||
<method name="AttachDefaults" cname="gtk_table_attach_defaults">
|
<method name="Attach" cname="gtk_table_attach_defaults">
|
||||||
<return-type type="void"/>
|
<return-type type="void"/>
|
||||||
<parameters>
|
<parameters>
|
||||||
<parameter type="GtkWidget*" name="widget"/>
|
<parameter type="GtkWidget*" name="widget"/>
|
||||||
|
|
|
@ -1079,4 +1079,37 @@
|
||||||
</attribute>
|
</attribute>
|
||||||
</data>
|
</data>
|
||||||
</rule>
|
</rule>
|
||||||
|
<rule>
|
||||||
|
<class name="GtkBox">
|
||||||
|
<method>PackStartDefaults</method>
|
||||||
|
</class>
|
||||||
|
<data>
|
||||||
|
<attribute target="method">
|
||||||
|
<name>name</name>
|
||||||
|
<value>PackStart</value>
|
||||||
|
</attribute>
|
||||||
|
</data>
|
||||||
|
</rule>
|
||||||
|
<rule>
|
||||||
|
<class name="GtkBox">
|
||||||
|
<method>PackEndDefaults</method>
|
||||||
|
</class>
|
||||||
|
<data>
|
||||||
|
<attribute target="method">
|
||||||
|
<name>name</name>
|
||||||
|
<value>PackEnd</value>
|
||||||
|
</attribute>
|
||||||
|
</data>
|
||||||
|
</rule>
|
||||||
|
<rule>
|
||||||
|
<class name="GtkTable">
|
||||||
|
<method>AttachDefaults</method>
|
||||||
|
</class>
|
||||||
|
<data>
|
||||||
|
<attribute target="method">
|
||||||
|
<name>name</name>
|
||||||
|
<value>Attach</value>
|
||||||
|
</attribute>
|
||||||
|
</data>
|
||||||
|
</rule>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
|
|
@ -1079,4 +1079,37 @@
|
||||||
</attribute>
|
</attribute>
|
||||||
</data>
|
</data>
|
||||||
</rule>
|
</rule>
|
||||||
|
<rule>
|
||||||
|
<class name="GtkBox">
|
||||||
|
<method>PackStartDefaults</method>
|
||||||
|
</class>
|
||||||
|
<data>
|
||||||
|
<attribute target="method">
|
||||||
|
<name>name</name>
|
||||||
|
<value>PackStart</value>
|
||||||
|
</attribute>
|
||||||
|
</data>
|
||||||
|
</rule>
|
||||||
|
<rule>
|
||||||
|
<class name="GtkBox">
|
||||||
|
<method>PackEndDefaults</method>
|
||||||
|
</class>
|
||||||
|
<data>
|
||||||
|
<attribute target="method">
|
||||||
|
<name>name</name>
|
||||||
|
<value>PackEnd</value>
|
||||||
|
</attribute>
|
||||||
|
</data>
|
||||||
|
</rule>
|
||||||
|
<rule>
|
||||||
|
<class name="GtkTable">
|
||||||
|
<method>AttachDefaults</method>
|
||||||
|
</class>
|
||||||
|
<data>
|
||||||
|
<attribute target="method">
|
||||||
|
<name>name</name>
|
||||||
|
<value>Attach</value>
|
||||||
|
</attribute>
|
||||||
|
</data>
|
||||||
|
</rule>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
|
Loading…
Reference in a new issue