pidgin/plugins/perl/common/GtkStatusBox.xs

Mon, 08 Jun 2009 02:24:49 +0000

author
Elliott Sales de Andrade <qulogic@pidgin.im>
date
Mon, 08 Jun 2009 02:24:49 +0000
changeset 27314
402d25ce01da
parent 16551
75ed9ff2a922
child 18068
b6554e3c8224
child 35808
09fa340acc2f
permissions
-rw-r--r--

Use the JID for adding a chat/buddy because the name is for descriptive
purpose only, and using it will not fill in the Add Chat dialog correctly.
Because the JID is not visible, the user will not know what to actually put
there instead.

#include "gtkmodule.h"

/* This can't work at the moment since I don't have a typemap for Gtk::Widget.
 * I thought about using the one from libgtk2-perl but wasn't sure how to go
 * about doing that.
Gtk::Widget
pidgin_status_box_new()

Gtk::Widget
pidgin_status_box_new_with_account(account)
	Purple::Account account

void
pidgin_status_box_add(status_box, type, pixbuf, text, sec_text, data)
	Pidgin::StatusBox status_box
	Pidgin::StatusBox::ItemType type
	GdkPixbuf pixbuf
	const char * text
	const char * sec_text
	gpointer data
*/

MODULE = Pidgin::StatusBox  PACKAGE = Pidgin::StatusBox  PREFIX = pidgin_status_box_
PROTOTYPES: ENABLE

void
pidgin_status_box_add_separator(status_box)
	Pidgin::StatusBox status_box

void
pidgin_status_box_set_connecting(status_box, connecting)
	Pidgin::StatusBox status_box
	gboolean connecting

void
pidgin_status_box_pulse_connecting(status_box)
	Pidgin::StatusBox status_box

void
pidgin_status_box_set_buddy_icon(status_box, img)
	Pidgin::StatusBox status_box
	Purple::StoredImage img

gchar_own *
pidgin_status_box_get_message(status_box)
	Pidgin::StatusBox status_box

mercurial