Fri, 27 Apr 2007 05:18:14 +0000
This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
actually making the module usable. It also cleans up some random bits in a
handful of files, things like trailing slashes, empty extra lines, etc.
| 11118 | 1 | #include "module.h" |
| 2 | ||
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
3 | MODULE = Purple::Notify PACKAGE = Purple::Notify PREFIX = purple_notify_ |
| 11118 | 4 | PROTOTYPES: ENABLE |
| 5 | ||
| 12773 | 6 | void |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
7 | purple_notify_close(type, ui_handle) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
8 | Purple::NotifyType type |
| 12773 | 9 | void * ui_handle |
| 11118 | 10 | |
| 12773 | 11 | void |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
12 | purple_notify_close_with_handle(handle) |
| 12773 | 13 | void * handle |
| 11118 | 14 | |
| 15 | void * | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
16 | purple_notify_email(handle, subject, from, to, url, cb, user_data) |
| 12773 | 17 | void * handle |
| 11118 | 18 | const char *subject |
| 19 | const char *from | |
| 20 | const char *to | |
| 21 | const char *url | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
22 | Purple::NotifyCloseCallback cb |
|
12242
e7fc1748eb56
[gaim-migrate @ 14544]
Richard Laager <rlaager@pidgin.im>
parents:
12235
diff
changeset
|
23 | gpointer user_data |
| 11118 | 24 | |
| 25 | void * | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
26 | purple_notify_emails(handle, count, detailed, subjects, froms, tos, urls, cb, user_data) |
| 12773 | 27 | void * handle |
| 11118 | 28 | size_t count |
| 29 | gboolean detailed | |
| 30 | const char **subjects | |
| 31 | const char **froms | |
| 32 | const char **tos | |
| 33 | const char **urls | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
34 | Purple::NotifyCloseCallback cb |
|
12242
e7fc1748eb56
[gaim-migrate @ 14544]
Richard Laager <rlaager@pidgin.im>
parents:
12235
diff
changeset
|
35 | gpointer user_data |
| 11118 | 36 | |
| 37 | void * | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
38 | purple_notify_formatted(handle, title, primary, secondary, text, cb, user_data) |
| 12773 | 39 | void * handle |
| 11118 | 40 | const char *title |
| 41 | const char *primary | |
| 42 | const char *secondary | |
| 43 | const char *text | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
44 | Purple::NotifyCloseCallback cb |
|
12242
e7fc1748eb56
[gaim-migrate @ 14544]
Richard Laager <rlaager@pidgin.im>
parents:
12235
diff
changeset
|
45 | gpointer user_data |
| 11118 | 46 | |
|
15266
a168574c18d2
[gaim-migrate @ 17994]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
47 | void * |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
48 | purple_notify_userinfo(gc, who, user_info, cb, user_data) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
49 | Purple::Connection gc |
|
15266
a168574c18d2
[gaim-migrate @ 17994]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
50 | const char *who |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
51 | Purple::NotifyUserInfo user_info |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
52 | Purple::NotifyCloseCallback cb |
|
15266
a168574c18d2
[gaim-migrate @ 17994]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
53 | gpointer user_data |
|
a168574c18d2
[gaim-migrate @ 17994]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
54 | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
55 | Purple::NotifyUserInfo |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
56 | purple_notify_user_info_new() |
|
15266
a168574c18d2
[gaim-migrate @ 17994]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
57 | |
|
a168574c18d2
[gaim-migrate @ 17994]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
58 | void |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
59 | purple_notify_user_info_destroy(user_info) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
60 | Purple::NotifyUserInfo user_info |
|
15266
a168574c18d2
[gaim-migrate @ 17994]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
61 | |
|
a168574c18d2
[gaim-migrate @ 17994]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
62 | void |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
63 | purple_notify_user_info_get_entries(user_info) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
64 | Purple::NotifyUserInfo user_info |
|
15266
a168574c18d2
[gaim-migrate @ 17994]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
65 | PREINIT: |
|
a168574c18d2
[gaim-migrate @ 17994]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
66 | const GList *l; |
|
a168574c18d2
[gaim-migrate @ 17994]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
67 | PPCODE: |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
68 | l = purple_notify_user_info_get_entries(user_info); |
|
15266
a168574c18d2
[gaim-migrate @ 17994]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
69 | for (; l != NULL; l = l->next) { |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
70 | XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::NotifyUserInfoEntry"))); |
|
15266
a168574c18d2
[gaim-migrate @ 17994]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
71 | } |
|
a168574c18d2
[gaim-migrate @ 17994]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
72 | |
|
a168574c18d2
[gaim-migrate @ 17994]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
73 | gchar_own * |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
74 | purple_notify_user_info_get_text_with_newline(user_info, newline) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
75 | Purple::NotifyUserInfo user_info |
|
15266
a168574c18d2
[gaim-migrate @ 17994]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
76 | const char *newline |
|
a168574c18d2
[gaim-migrate @ 17994]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
77 | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
78 | void purple_notify_user_info_add_pair(user_info, label, value) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
79 | Purple::NotifyUserInfo user_info |
|
15266
a168574c18d2
[gaim-migrate @ 17994]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
80 | const char *label |
|
a168574c18d2
[gaim-migrate @ 17994]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
81 | const char *value |
|
a168574c18d2
[gaim-migrate @ 17994]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
82 | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
83 | void purple_notify_user_info_prepend_pair(user_info, label, value) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
84 | Purple::NotifyUserInfo user_info |
|
15266
a168574c18d2
[gaim-migrate @ 17994]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
85 | const char *label |
|
a168574c18d2
[gaim-migrate @ 17994]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
86 | const char *value |
|
a168574c18d2
[gaim-migrate @ 17994]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
87 | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
88 | void purple_notify_user_info_add_section_break(user_info) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
89 | Purple::NotifyUserInfo user_info |
|
15266
a168574c18d2
[gaim-migrate @ 17994]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
90 | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
91 | void purple_notify_user_info_add_section_header(user_info, label) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
92 | Purple::NotifyUserInfo user_info |
|
15266
a168574c18d2
[gaim-migrate @ 17994]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
93 | const char *label |
|
a168574c18d2
[gaim-migrate @ 17994]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
94 | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
95 | void purple_notify_user_info_remove_last_item(user_info) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
96 | Purple::NotifyUserInfo user_info |
|
15266
a168574c18d2
[gaim-migrate @ 17994]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
97 | |
|
a168574c18d2
[gaim-migrate @ 17994]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
98 | gchar * |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
99 | purple_notify_user_info_entry_get_label(user_info_entry) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
100 | Purple::NotifyUserInfoEntry user_info_entry |
|
15266
a168574c18d2
[gaim-migrate @ 17994]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
101 | |
|
a168574c18d2
[gaim-migrate @ 17994]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
102 | gchar * |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
103 | purple_notify_user_info_entry_get_value(user_info_entry) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
104 | Purple::NotifyUserInfoEntry user_info_entry |
|
15266
a168574c18d2
[gaim-migrate @ 17994]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
105 | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
106 | Purple::NotifyUiOps |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
107 | purple_notify_get_ui_ops() |
| 12773 | 108 | |
| 11118 | 109 | |
| 110 | void * | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
111 | purple_notify_message(handle, type, title, primary, secondary, cb, user_data) |
| 12773 | 112 | void * handle |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
113 | Purple::NotifyMsgType type |
| 11118 | 114 | const char *title |
| 115 | const char *primary | |
| 116 | const char *secondary | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
117 | Purple::NotifyCloseCallback cb |
|
12242
e7fc1748eb56
[gaim-migrate @ 14544]
Richard Laager <rlaager@pidgin.im>
parents:
12235
diff
changeset
|
118 | gpointer user_data |
| 11118 | 119 | |
| 120 | void * | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
121 | purple_notify_searchresults(gc, title, primary, secondary, results, cb, user_data) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
122 | Purple::Connection gc |
| 11118 | 123 | const char *title |
| 124 | const char *primary | |
| 125 | const char *secondary | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
126 | Purple::NotifySearchResults results |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
127 | Purple::NotifyCloseCallback cb |
|
12242
e7fc1748eb56
[gaim-migrate @ 14544]
Richard Laager <rlaager@pidgin.im>
parents:
12235
diff
changeset
|
128 | gpointer user_data |
| 11118 | 129 | |
| 12773 | 130 | void |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
131 | purple_notify_set_ui_ops(ops) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
132 | Purple::NotifyUiOps ops |
| 11118 | 133 | |
| 134 | void * | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
135 | purple_notify_uri(handle, uri) |
| 12773 | 136 | void * handle |
| 11118 | 137 | const char *uri |
| 138 |