Hacked: Help with some .xs file modifications

Gabriel Schulhof nix at go-nix.ca
Sun Aug 19 09:15:26 EDT 2007


On Sat, 2007-08-18 at 23:28 +0300, Gabriel Schulhof wrote:
> void
> pidgin_dialogs_about()
> 
> I need to change this to either require a parameter of type GtkWindow *,
> or, if the syntax allows it, to be defined thusly and provide a default
> value of NULL to the C function.

void
pidgin_dialogs_about()
CODE:
	pidgin_dialogs_about(NULL);

I repeated this solution for all pidgin functions whose parameter list I
have changed to include a GtkWindow *parent.

It'd be nicer to have something like

void
pidgin_dialogs_about(parent)
	Gtk::Window parent

but my .xs-fu is not powerful enough to write that correctly.



Gabriel




More information about the Devel mailing list