Mercurial > pidgin
annotate plugins/perl/common/Notify.xs @ 12468:6faefbebcd24
[gaim-migrate @ 14778]
SF Patch #1372898 from charkins
"This patch updates the unseen conversation api in
gtkconv to ensure consistancy and avoid code
duplication. The ...first_unseen() function is renamed
and expanded to return a list of conversations that
match the specified criteria. A max_count parameter is
used to allow this to short circuit early (using 1
gives old behavior). An additional flag was added to
allow this function to only consider hidden
conversations (used by the buddy list). The blist is
currently inconsistant in which conversations it loops
over for showing the menu tray icon, creating the
tooltip and the unseen menu. This patch fixes that.
The ...find_unseen_list() now handles contact-aware
conversations correctly as well (based on sadrul's
patches in #1362579 which are obsoleted by this patch).
I also included the fix from #1362579 which increments
unseen_count only when state>=UNSEEN_TEXT."
committer: Tailor Script <tailor@pidgin.im>
| author | Richard Laager <rlaager@wiktel.com> |
|---|---|
| date | Mon, 12 Dec 2005 18:59:29 +0000 |
| parents | 976677e67239 |
| children | 96f9b4798012 |
| rev | line source |
|---|---|
| 11118 | 1 #include "module.h" |
| 2 | |
| 3 MODULE = Gaim::Notify PACKAGE = Gaim::Notify PREFIX = gaim_notify_ | |
| 4 PROTOTYPES: ENABLE | |
| 5 | |
| 6 void | |
| 7 gaim_notify_close(type, ui_handle) | |
| 8 Gaim::NotifyType type | |
| 9 void * ui_handle | |
| 10 | |
| 11 void | |
| 12 gaim_notify_close_with_handle(handle) | |
| 13 void * handle | |
| 14 | |
| 15 void * | |
| 16 gaim_notify_email(handle, subject, from, to, url, cb, user_data) | |
| 17 void * handle | |
| 18 const char *subject | |
| 19 const char *from | |
| 20 const char *to | |
| 21 const char *url | |
|
12242
976677e67239
[gaim-migrate @ 14544]
Richard Laager <rlaager@wiktel.com>
parents:
12235
diff
changeset
|
22 Gaim::NotifyCloseCallback cb |
|
976677e67239
[gaim-migrate @ 14544]
Richard Laager <rlaager@wiktel.com>
parents:
12235
diff
changeset
|
23 gpointer user_data |
| 11118 | 24 |
| 25 | |
| 26 void * | |
| 27 gaim_notify_emails(handle, count, detailed, subjects, froms, tos, urls, cb, user_data) | |
| 28 void * handle | |
| 29 size_t count | |
| 30 gboolean detailed | |
| 31 const char **subjects | |
| 32 const char **froms | |
| 33 const char **tos | |
| 34 const char **urls | |
|
12242
976677e67239
[gaim-migrate @ 14544]
Richard Laager <rlaager@wiktel.com>
parents:
12235
diff
changeset
|
35 Gaim::NotifyCloseCallback cb |
|
976677e67239
[gaim-migrate @ 14544]
Richard Laager <rlaager@wiktel.com>
parents:
12235
diff
changeset
|
36 gpointer user_data |
| 11118 | 37 |
| 38 | |
| 39 void * | |
| 40 gaim_notify_formatted(handle, title, primary, secondary, text, cb, user_data) | |
| 41 void * handle | |
| 42 const char *title | |
| 43 const char *primary | |
| 44 const char *secondary | |
| 45 const char *text | |
|
12242
976677e67239
[gaim-migrate @ 14544]
Richard Laager <rlaager@wiktel.com>
parents:
12235
diff
changeset
|
46 Gaim::NotifyCloseCallback cb |
|
976677e67239
[gaim-migrate @ 14544]
Richard Laager <rlaager@wiktel.com>
parents:
12235
diff
changeset
|
47 gpointer user_data |
| 11118 | 48 |
| 49 | |
| 50 Gaim::NotifyUiOps | |
| 51 gaim_notify_get_ui_ops() | |
| 52 | |
| 53 | |
| 54 void * | |
| 55 gaim_notify_message(handle, type, title, primary, secondary, cb, user_data) | |
| 56 void * handle | |
| 57 Gaim::NotifyMsgType type | |
| 58 const char *title | |
| 59 const char *primary | |
| 60 const char *secondary | |
|
12242
976677e67239
[gaim-migrate @ 14544]
Richard Laager <rlaager@wiktel.com>
parents:
12235
diff
changeset
|
61 Gaim::NotifyCloseCallback cb |
|
976677e67239
[gaim-migrate @ 14544]
Richard Laager <rlaager@wiktel.com>
parents:
12235
diff
changeset
|
62 gpointer user_data |
| 11118 | 63 |
| 64 | |
| 65 void * | |
| 66 gaim_notify_searchresults(gc, title, primary, secondary, results, cb, user_data) | |
| 67 Gaim::Connection gc | |
| 68 const char *title | |
| 69 const char *primary | |
| 70 const char *secondary | |
|
11533
c9b815aeddc1
[gaim-migrate @ 13782]
Richard Laager <rlaager@wiktel.com>
parents:
11290
diff
changeset
|
71 Gaim::NotifySearchResults results |
|
12242
976677e67239
[gaim-migrate @ 14544]
Richard Laager <rlaager@wiktel.com>
parents:
12235
diff
changeset
|
72 Gaim::NotifyCloseCallback cb |
|
976677e67239
[gaim-migrate @ 14544]
Richard Laager <rlaager@wiktel.com>
parents:
12235
diff
changeset
|
73 gpointer user_data |
| 11118 | 74 |
| 75 void | |
| 76 gaim_notify_set_ui_ops(ops) | |
| 77 Gaim::NotifyUiOps ops | |
| 78 | |
| 79 void * | |
| 80 gaim_notify_uri(handle, uri) | |
| 81 void * handle | |
| 82 const char *uri | |
| 83 | |
| 84 void * | |
|
11533
c9b815aeddc1
[gaim-migrate @ 13782]
Richard Laager <rlaager@wiktel.com>
parents:
11290
diff
changeset
|
85 gaim_notify_userinfo(gc, who, text, cb, user_data) |
| 11118 | 86 Gaim::Connection gc |
| 87 const char *who | |
| 88 const char *text | |
|
12242
976677e67239
[gaim-migrate @ 14544]
Richard Laager <rlaager@wiktel.com>
parents:
12235
diff
changeset
|
89 Gaim::NotifyCloseCallback cb |
|
976677e67239
[gaim-migrate @ 14544]
Richard Laager <rlaager@wiktel.com>
parents:
12235
diff
changeset
|
90 gpointer user_data |
| 11118 | 91 |
| 92 |
