mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
Fixed functions with no arguments
This commit is contained in:
parent
ed1e531c36
commit
7bb4d7d961
@ -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]), ";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user