plugins/perl/common/typemap

Sun, 17 Oct 2004 23:55:49 +0000

author
Sean Egan <seanegan@pidgin.im>
date
Sun, 17 Oct 2004 23:55:49 +0000
changeset 10108
0897c42d6cb9
parent 10054
213a1112e633
child 11118
36db35a9da56
permissions
-rw-r--r--

[gaim-migrate @ 11141]
Two things:
a. Added Enter as a gtk_binding to GtkIMHtml. This fixes everything.
Input methods now work. The "Enter sends" and "Ctrl-Enter sends" preferences
were removed and defaulted to yes and no respectively, BUT, in a very super-cool
turn of events, you can now add your own bindings to .gtkrc to make WHATEVER
YOU WANT send. Awesome. Someone should use g_signal_accumulator_true_handled
or something to make profiles and away messages able to insert newlines.

b. Removed "Use multi-colored screennames in chats," defaulted to yes, and
wrote a nifty algorithm to automatically adjust the colors to accomodate the
background (see http://gaim.sf.net/sean/porn-chat.png). People should play
around and tweak it a bit. The algorithm takes into consideration the
luminosity of the current background and the base hue to use for the screenname
in generating the new colors. Note that it does this while maintaining the hues.
Someone should optimize this so it skips over the floating point arithmatic when
the background color is white.

TYPEMAP
time_t                   T_IV
gboolean                 T_BOOL
const char *             T_PV
Gaim::Account            T_GaimObj
Gaim::BuddyList::Group   T_GaimObj
Gaim::BuddyList::Buddy   T_GaimObj
Gaim::BuddyList::Chat    T_GaimObj
Gaim::Chat               T_GaimObj
Gaim::Connection         T_GaimObj
Gaim::Conversation       T_GaimObj
Gaim::Conversation::Chat T_GaimObj
Gaim::Conversation::IM   T_GaimObj
Gaim::ConvWindow         T_GaimObj
Gaim::DebugLevel         T_IV
Gaim::IM                 T_GaimObj
Gaim::Plugin             T_GaimObj

INPUT

T_GaimObj
	$var = gaim_perl_ref_object($arg)


OUTPUT

T_GaimObj
	$arg = gaim_perl_bless_object($var, \"$type\");

mercurial