plugins/perl/common/Conversation_IM.xs

Sat, 27 Sep 2003 05:11:11 +0000

author
KAMO Tomoyuki
date
Sat, 27 Sep 2003 05:11:11 +0000
changeset 6979
a2ac62c147fa
parent 6591
cc1ab32edcdc
child 6982
12f08de92674
permissions
-rw-r--r--

[gaim-migrate @ 7535]
Two string corrections from KAMO Tomoyuki. Thanks dude

I fiddled with the prefs away message stuff...
Changed a function to static and renamed it to have a _cb at the end.
Added an away_message_click_cb() callback--double clicking on an
away message in the list brings up the edit away message window.

I want to add an "Activate" button, but I don't have time now, and
away.c needs to be core/ui split, I think, with the ability to
activate a chosen message.

The Second Annual Chips & Dip night was good. We watched The Unborn
2, which is supposed to be one of the worst movies ever. It rocked.

committer: Mark Doliner <markdoliner@pidgin.im>

#include "module.h"

MODULE = Gaim::Conversation::IM  PACKAGE = Gaim::Conversation::IM  PREFIX = gaim_im_
PROTOTYPES: ENABLE

Gaim::Conversation::IM
new(account, name)
	Gaim::Account account
	const char *name
CODE:
	RETVAL = GAIM_IM(gaim_conversation_new(GAIM_CONV_IM, account, name));
OUTPUT:
	RETVAL

void
DESTROY(im)
	Gaim::Conversation::IM im
CODE:
	gaim_conversation_destroy(gaim_im_get_conversation(im));


Gaim::Conversation
gaim_im_get_conversation(im)
	Gaim::Conversation::IM im

void
gaim_im_write(im, who, message, flags)
	Gaim::Conversation::IM im
	const char *who
	const char *message
	int flags
CODE:
	gaim_im_write(im, who, message, -1, flags, time(NULL));

void
gaim_im_send(im, message)
	Gaim::Conversation::IM im
	const char *message


MODULE = Gaim::Conversation::IM  PACKAGE = Gaim  PREFIX = gaim_
PROTOTYPES: ENABLE

void
ims()
PREINIT:
	GList *l;
PPCODE:
	for (l = gaim_get_ims(); l != NULL; l = l->next)
	{
		XPUSHs(sv_2mortal(gaim_perl_bless_object(GAIM_IM(l->data),
			"Gaim::Conversation")));
	}

mercurial