diff options
author | Elliot Lee <sopwith@src.gnome.org> | 1998-06-17 05:12:27 +0000 |
---|---|---|
committer | Elliot Lee <sopwith@src.gnome.org> | 1998-06-17 05:12:27 +0000 |
commit | 7bb4d7d961d2856f235db861c93a4838ae7b4f50 (patch) | |
tree | e81e7a6d9b5798cd5042409e5b2feca1d2ed80da /gtk | |
parent | ed1e531c3643784c16b338e64310c086323d6e45 (diff) | |
download | gtk+-7bb4d7d961d2856f235db861c93a4838ae7b4f50.tar.gz |
Fixed functions with no arguments
Diffstat (limited to 'gtk')
-rwxr-xr-x | gtk/genmarshal.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/genmarshal.pl b/gtk/genmarshal.pl index 7738ca0531..033f9b251f 100755 --- a/gtk/genmarshal.pl +++ b/gtk/genmarshal.pl @@ -54,7 +54,7 @@ while(chomp($aline = <IL>)) { .$retval."__".join("_",@params).")(GtkObject *object, "; $argn = 1; - foreach $it(@params) { print OS $trans{$it}." arg".$argn++.",\n"; } + foreach $it(@params) { if($it ne "NONE") {print OS $trans{$it}." arg".$argn++.",\n"; } } print OS "gpointer user_data);\n"; print OS "void gtk_marshal_".$retval."__".join("_",@params)."(GtkObject *object, GtkSignalFunc func, gpointer func_data, GtkArg *args)\n"; @@ -71,6 +71,7 @@ while(chomp($aline = <IL>)) { print OS "(* rfunc)(object, "; for($i = 0; $i < (scalar @params); $i++) { + ($params[$i] eq "NONE") && next; print OS "GTK_VALUE_".$params[$i]."(args[$i]), "; } |