Mercurial > pidgin.yaz
comparison gtk/plugins/perl/common/GtkBlist.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 | e88aae4f4c40 |
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 | |
7 void | |
8 gaim_gtk_blist_make_buddy_menu(menu, buddy, sub) | |
9 Gtk::Widget menu | |
10 Gaim::Buddy buddy | |
11 gboolean sub | |
12 */ | |
13 | |
14 /* This can't work at the moment since I don't have a typemap for Gdk::Pixbuf. | |
15 * I thought about using the one from libgtk2-perl but wasn't sure how to go | |
16 * about doing that. | |
17 | |
18 GdkPixbuf | |
19 gaim_gtk_blist_get_status_icon(node, size) | |
20 Gaim::BuddyList::Node node | |
21 Gaim::Status::IconSize size | |
22 */ | |
23 | |
24 /* This can't work at the moment since I don't have a typemap for Gtk::Widget. | |
25 * I thought about using the one from libgtk2-perl but wasn't sure how to go | |
26 * about doing that. | |
27 | |
28 void | |
29 gaim_gtk_append_blist_node_proto_menu(menu, gc, node) | |
30 Gtk::Widget menu | |
31 Gaim::Connection gc | |
32 Gaim::BuddyList::Node node | |
33 | |
34 void | |
35 gaim_gtk_append_blist_node_extended_menu(menu, node) | |
36 Gtk::Widget menu | |
37 Gaim::Connection gc | |
38 Gaim::BuddyList::Node node | |
39 */ | |
40 | |
41 MODULE = Gaim::Gtk::BuddyList PACKAGE = Gaim::Gtk::BuddyList PREFIX = gaim_gtk_blist_ | |
42 PROTOTYPES: ENABLE | |
43 | |
44 void * | |
45 gaim_gtk_blist_get_handle() | |
46 | |
47 Gaim::Gtk::BuddyList | |
48 gaim_gtk_blist_get_default_gtk_blist() | |
49 | |
50 void | |
51 gaim_gtk_blist_refresh(list) | |
52 Gaim::BuddyList list | |
53 | |
54 void | |
55 gaim_gtk_blist_update_toolbar() | |
56 | |
57 void | |
58 gaim_gtk_blist_update_columns() | |
59 | |
60 void | |
61 gaim_gtk_blist_update_refresh_timeout() | |
62 | |
63 gboolean | |
64 gaim_gtk_blist_node_is_contact_expanded(node) | |
65 Gaim::BuddyList::Node node | |
66 | |
67 void | |
68 gaim_gtk_blist_toggle_visibility() | |
69 | |
70 void | |
71 gaim_gtk_blist_visibility_manager_add() | |
72 | |
73 void | |
74 gaim_gtk_blist_visibility_manager_remove() | |
75 | |
76 void | |
77 gaim_gtk_blist_get_sort_methods() | |
78 PREINIT: | |
79 GList *l; | |
80 PPCODE: | |
81 for (l = gaim_gtk_blist_get_sort_methods(); l != NULL; l = l->next) { | |
82 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::Gtk::BuddyList::SortMethod"))); | |
83 } | |
84 | |
85 void | |
86 gaim_gtk_blist_sort_method_reg(id, name, func) | |
87 const char * id | |
88 const char * name | |
89 Gaim::Gtk::BuddyList::SortFunction func | |
90 | |
91 void | |
92 gaim_gtk_blist_sort_method_unreg(id) | |
93 const char * id | |
94 | |
95 void | |
96 gaim_gtk_blist_sort_method_set(id) | |
97 const char * id | |
98 | |
99 void | |
100 gaim_gtk_blist_setup_sort_methods() | |
101 | |
102 void | |
103 gaim_gtk_blist_update_accounts_menu() | |
104 | |
105 void | |
106 gaim_gtk_blist_update_plugin_actions() | |
107 | |
108 void | |
109 gaim_gtk_blist_update_sort_methods() | |
110 | |
111 gboolean | |
112 gaim_gtk_blist_joinchat_is_showable() | |
113 | |
114 void | |
115 gaim_gtk_blist_joinchat_show() | |
116 | |
117 void | |
118 gaim_gtk_blist_update_account_error_state(account, message) | |
119 Gaim::Account account | |
120 const char * message |