plugins/perl/common/ConvWindow.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 6614
12817c60464d
child 7120
83dba78f8518
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::ConvWindow  PACKAGE = Gaim::ConvWindow  PREFIX = gaim_window_
PROTOTYPES: ENABLE

Gaim::ConvWindow
gaim_window_new()

void
DESTROY(win)
	Gaim::ConvWindow win
CODE:
	gaim_window_destroy(win);


void
gaim_window_show(win)
	Gaim::ConvWindow win

void
gaim_window_hide(win)
	Gaim::ConvWindow win

void
gaim_window_raise(win)
	Gaim::ConvWindow win

void
gaim_window_flash(win)
	Gaim::ConvWindow win

int
gaim_window_add_conversation(win, conv)
	Gaim::ConvWindow win
	Gaim::Conversation conv

Gaim::Conversation
gaim_window_remove_conversation(win, index)
	Gaim::ConvWindow win
	unsigned int index

void
gaim_window_move_conversation(win, index, new_index)
	Gaim::ConvWindow win
	unsigned int index
	unsigned int new_index

Gaim::Conversation
gaim_window_get_conversation_at(win, index)
	Gaim::ConvWindow win
	unsigned int index

size_t
gaim_window_get_conversation_count(win)
	Gaim::ConvWindow win

void
gaim_window_switch_conversation(win, index)
	Gaim::ConvWindow win
	unsigned int index

Gaim::Conversation
gaim_window_get_active_conversation(win)
	Gaim::ConvWindow win

void
conversations(win)
	Gaim::ConvWindow win
PREINIT:
	GList *l;
CODE:
	for (l = gaim_window_get_conversations(win); l != NULL; l = l->next)
	{
		XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data,
			"Gaim::Conversation")));
	}


MODULE = Gaim::ConvWindow  PACKAGE = Gaim  PREFIX = gaim_
PROTOTYPES: ENABLE

void
conv_windows()
PREINIT:
	GList *l;
CODE:
	for (l = gaim_get_windows(); l != NULL; l = l->next)
		XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ConvWindow")));

mercurial