comparison gtk/plugins/perl/common/GtkStatusBox.xs @ 14416:eeca8be382a5

[gaim-migrate @ 17124] This is a Gaim::Gtk perl module for use by gaim plugins to get access to the gtkgaim interface functions. It isn't complete because anything dealing with Gtk widgets themselves doesn't work yet (I need to figure out the best way to do that). To use this a perl plugin just needs to include 'use Gaim::Gtk;' either on top of 'use Gaim;' or instead of it. I'm not done with this yet. At the moment you have to 'use Gaim;' or 'use Gaim::Gtk;' which loads all the parts, I'm planning to let you actually say 'use Gaim::Gtk::Debug;' to just get the gtkdebug.h functions. Though 'use Gaim' would work the same way as always. committer: Tailor Script <tailor@pidgin.im>
author Etan Reisner <pidgin@unreliablesource.net>
date Sat, 02 Sep 2006 05:31:10 +0000
parents
children d6eae5115b31
comparison
equal deleted inserted replaced
14415:76d345643ba4 14416:eeca8be382a5
1 #include "gtkmodule.h"
2
3 /* This can't work at the moment since I don't have a typemap for Gtk::Widget.
4 * I thought about using the one from libgtk2-perl but wasn't sure how to go
5 * about doing that.
6 Gtk::Widget
7 gtk_gaim_status_box_new()
8
9 Gtk::Widget
10 gtk_gaim_status_box_new_with_account(account)
11 Gaim::Account account
12
13 void
14 gtk_gaim_status_box_add(status_box, type, pixbuf, text, sec_text, data)
15 Gaim::Gtk::StatusBox status_box
16 Gaim::Gtk::StatusBox::ItemType type
17 GdkPixbuf pixbuf
18 const char * text
19 const char * sec_text
20 gpointer data
21 */
22
23 MODULE = Gaim::Gtk::StatusBox PACKAGE = Gaim::Gtk::StatusBox PREFIX = gtk_gaim_status_box
24 PROTOTYPES: ENABLE
25
26 void
27 gtk_gaim_status_box_add_separator(status_box)
28 Gaim::Gtk::StatusBox status_box
29
30 void
31 gtk_gaim_status_box_set_connecting(status_box, connecting)
32 Gaim::Gtk::StatusBox status_box
33 gboolean connecting
34
35 void
36 gtk_gaim_status_box_pulse_connecting(status_box)
37 Gaim::Gtk::StatusBox status_box
38
39 void
40 gtk_gaim_status_box_set_buddy_icon(status_box, filename)
41 Gaim::Gtk::StatusBox status_box
42 const char * filename
43
44 const char *
45 gtk_gaim_status_box_get_buddy_icon(status_box)
46 Gaim::Gtk::StatusBox status_box
47
48 char *
49 gtk_gaim_status_box_get_message(status_box)
50 Gaim::Gtk::StatusBox status_box