plugins/perl/libgaimperl.c

Sun, 11 Jun 2006 19:05:45 +0000

author
Brian Chu <roast@users.sourceforge.net>
date
Sun, 11 Jun 2006 19:05:45 +0000
changeset 13824
3e29de65083a
parent 12418
77abb6df8ee6
permissions
-rw-r--r--

[gaim-migrate @ 16257]
SF Patch #1504436 from roast, with changes by me

"gaim_gtkdialogs_log() doesn't set initial account
value, but shows an initial account. This is confusing
because if the user does not use the hint list to
select an account (e.g. he types a name in),
gaim_gtkdialogs_log_cb() services an empty call.

This patch fixes this."

committer: Richard Laager <rlaager@pidgin.im>

#include <gmodule.h>
void __attribute__ ((constructor)) my_init(void);

void __attribute__ ((constructor)) my_init() {
	/* Very evil hack...puts perl.so's symbols in the global table
	 * but does not create a circular dependancy because g_module_open
	 * will only open the library once. */
	g_module_open("perl.so", 0);
}

mercurial