diff --git a/ChangeLog b/ChangeLog index 235d6b2e6..b795dcbc9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2002-11-21 Mike Kestner + + * api/*.xml : a few new attrs + * generator/Parameters.cs : remove redundant ref keywords + * gtk/ListStore.custom: overload SetColumnTypes + * gtk/TreeStore.custom: overload SetColumnTypes + * parser/GAPI/Metadata.pm : allow callback nodes at class level + * sources/Gtk.metadata : hide ClipboardClearFunc and GetFunc, + tag types param of SetColumnTypes as array, uncomment needs_ref + tags on Widget methods to match the current api.xml file + 2002-11-19 Mike Kestner * gtk/Dialog.custom : bind another ctor @@ -14,7 +25,6 @@ * pango/Scale.cs: added file containing constants for text widgets needing Pango Scale Attribute -2002-11-13 Vladimir Vukicevic 2002-11-13 Vladimir Vukicevic * gtk/CanvasItem.custom: use base() to set Raw in constructor, so diff --git a/api/gdk-api.xml b/api/gdk-api.xml index 7b6a05e50..a656cd25c 100644 --- a/api/gdk-api.xml +++ b/api/gdk-api.xml @@ -1852,7 +1852,7 @@ - + @@ -2411,6 +2411,15 @@ + @@ -2451,6 +2460,18 @@ + @@ -2700,6 +2721,14 @@ + diff --git a/api/gtk-api.xml b/api/gtk-api.xml index b8b7204b8..fd3f303ad 100644 --- a/api/gtk-api.xml +++ b/api/gtk-api.xml @@ -1,4 +1,4 @@ - + @@ -506,6 +506,22 @@ + + @@ -609,10 +625,6 @@ - - - - @@ -4269,7 +4281,7 @@ - + @@ -7940,7 +7952,7 @@ - + @@ -10471,6 +10483,26 @@ + + + + + + + + + + + + + + + + + + + + @@ -10773,9 +10805,28 @@ + + + @@ -11757,6 +11808,10 @@ + + + + @@ -11793,6 +11848,17 @@ + + + + + + + + + + + diff --git a/generator/Parameters.cs b/generator/Parameters.cs index 49b0ffa19..cad43585e 100644 --- a/generator/Parameters.cs +++ b/generator/Parameters.cs @@ -295,6 +295,8 @@ namespace GtkSharp.Generation { // FIXME: lame call_string = call_string.Replace ("out ref", "out"); import_sig = import_sig.Replace ("out ref", "out"); + call_string = call_string.Replace ("ref ref", "out"); + import_sig = import_sig.Replace ("ref ref", "out"); // FIXME: this is also lame, I need to fix the need_sep algo if (signature.EndsWith (", ")) diff --git a/gtk/ListStore.custom b/gtk/ListStore.custom index b3e2d32cb..537f1d373 100644 --- a/gtk/ListStore.custom +++ b/gtk/ListStore.custom @@ -29,3 +29,8 @@ bool ret = raw_ret; return ret; } + + public void SetColumnTypes (params int[] types) + { + SetColumnTypes (types.Length, types); + } diff --git a/gtk/TreeStore.custom b/gtk/TreeStore.custom index 350c1f924..88b8b7213 100644 --- a/gtk/TreeStore.custom +++ b/gtk/TreeStore.custom @@ -109,3 +109,8 @@ bool ret = raw_ret; return ret; } + + public void SetColumnTypes (params int[] types) + { + SetColumnTypes (types.Length, types); + } diff --git a/parser/GAPI/Metadata.pm b/parser/GAPI/Metadata.pm index b5db63481..8e6c8ca80 100644 --- a/parser/GAPI/Metadata.pm +++ b/parser/GAPI/Metadata.pm @@ -179,7 +179,7 @@ sub fixupNamespace { foreach $rule (@{$self->{rules}}) { my ($classes_ref, $data_list_ref) = @$rule; for ($node = $ns_node->firstChild; $node; $node = $node->nextSibling ()) { - next if not ($node->nodeName eq "object" or $node->nodeName eq "interface" or $node->nodeName eq "struct" or $node->nodeName eq "boxed"); + next if not ($node->nodeName eq "object" or $node->nodeName eq "interface" or $node->nodeName eq "struct" or $node->nodeName eq "boxed" or $node->nodeName eq "callback"); my $class, $methods_ref, $attr; foreach $attr ($node->attributes) { if ($attr->name eq "cname") { diff --git a/sources/Gtk.metadata b/sources/Gtk.metadata index e32aac04c..1d5886cf1 100644 --- a/sources/Gtk.metadata +++ b/sources/Gtk.metadata @@ -59,6 +59,30 @@ + + + SetColumnTypes + + + + types + array + true + + + + + + SetColumnTypes + + + + types + array + true + + + ConvertChildIterToIter @@ -1250,6 +1274,24 @@ + + + + + hidden + 1 + + + + + + + + hidden + 1 + + + Destroyed @@ -1867,7 +1909,7 @@ - -