Mon, 04 Sep 2006 23:00:13 +0000
[gaim-migrate @ 17161]
Make the Perl GTK+ stuff work in wingaim.
| 14478 | 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 | ||
|
14509
e46c4ed7e331
[gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
14478
diff
changeset
|
54 | #if 0 |
| 14478 | 55 | void |
| 56 | gaim_gtk_blist_update_toolbar() | |
| 57 | ||
|
14509
e46c4ed7e331
[gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
14478
diff
changeset
|
58 | #endif |
|
e46c4ed7e331
[gaim-migrate @ 17161]
Daniel Atallah <datallah@pidgin.im>
parents:
14478
diff
changeset
|
59 | |
| 14478 | 60 | void |
| 61 | gaim_gtk_blist_update_columns() | |
| 62 | ||
| 63 | void | |
| 64 | gaim_gtk_blist_update_refresh_timeout() | |
| 65 | ||
| 66 | gboolean | |
| 67 | gaim_gtk_blist_node_is_contact_expanded(node) | |
| 68 | Gaim::BuddyList::Node node | |
| 69 | ||
| 70 | void | |
| 71 | gaim_gtk_blist_toggle_visibility() | |
| 72 | ||
| 73 | void | |
| 74 | gaim_gtk_blist_visibility_manager_add() | |
| 75 | ||
| 76 | void | |
| 77 | gaim_gtk_blist_visibility_manager_remove() | |
| 78 | ||
| 79 | void | |
| 80 | gaim_gtk_blist_get_sort_methods() | |
| 81 | PREINIT: | |
| 82 | GList *l; | |
| 83 | PPCODE: | |
| 84 | for (l = gaim_gtk_blist_get_sort_methods(); l != NULL; l = l->next) { | |
| 85 | XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::Gtk::BuddyList::SortMethod"))); | |
| 86 | } | |
| 87 | ||
| 88 | void | |
| 89 | gaim_gtk_blist_sort_method_reg(id, name, func) | |
| 90 | const char * id | |
| 91 | const char * name | |
| 92 | Gaim::Gtk::BuddyList::SortFunction func | |
| 93 | ||
| 94 | void | |
| 95 | gaim_gtk_blist_sort_method_unreg(id) | |
| 96 | const char * id | |
| 97 | ||
| 98 | void | |
| 99 | gaim_gtk_blist_sort_method_set(id) | |
| 100 | const char * id | |
| 101 | ||
| 102 | void | |
| 103 | gaim_gtk_blist_setup_sort_methods() | |
| 104 | ||
| 105 | void | |
| 106 | gaim_gtk_blist_update_accounts_menu() | |
| 107 | ||
| 108 | void | |
| 109 | gaim_gtk_blist_update_plugin_actions() | |
| 110 | ||
| 111 | void | |
| 112 | gaim_gtk_blist_update_sort_methods() | |
| 113 | ||
| 114 | gboolean | |
| 115 | gaim_gtk_blist_joinchat_is_showable() | |
| 116 | ||
| 117 | void | |
| 118 | gaim_gtk_blist_joinchat_show() | |
| 119 | ||
| 120 | void | |
| 121 | gaim_gtk_blist_update_account_error_state(account, message) | |
| 122 | Gaim::Account account | |
| 123 | const char * message |