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>

11862
5d4bc6d54688 [gaim-migrate @ 14153]
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 11120
diff changeset
1 #include <gmodule.h>
12418
77abb6df8ee6 [gaim-migrate @ 14725]
Richard Laager <rlaager@pidgin.im>
parents: 11862
diff changeset
2 void __attribute__ ((constructor)) my_init(void);
77abb6df8ee6 [gaim-migrate @ 14725]
Richard Laager <rlaager@pidgin.im>
parents: 11862
diff changeset
3
77abb6df8ee6 [gaim-migrate @ 14725]
Richard Laager <rlaager@pidgin.im>
parents: 11862
diff changeset
4 void __attribute__ ((constructor)) my_init() {
77abb6df8ee6 [gaim-migrate @ 14725]
Richard Laager <rlaager@pidgin.im>
parents: 11862
diff changeset
5 /* Very evil hack...puts perl.so's symbols in the global table
77abb6df8ee6 [gaim-migrate @ 14725]
Richard Laager <rlaager@pidgin.im>
parents: 11862
diff changeset
6 * but does not create a circular dependancy because g_module_open
77abb6df8ee6 [gaim-migrate @ 14725]
Richard Laager <rlaager@pidgin.im>
parents: 11862
diff changeset
7 * will only open the library once. */
11120
beeb901ca8a9 [gaim-migrate @ 13176]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
8 g_module_open("perl.so", 0);
beeb901ca8a9 [gaim-migrate @ 13176]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
9 }

mercurial