| 27 * @short_description: <filename>gtkblist.h</filename> |
27 * @short_description: <filename>gtkblist.h</filename> |
| 28 * @title: Buddy List API |
28 * @title: Buddy List API |
| 29 * @see_also: <link linkend="chapter-signals-gtkblist">Buddy List signals</link> |
29 * @see_also: <link linkend="chapter-signals-gtkblist">Buddy List signals</link> |
| 30 */ |
30 */ |
| 31 |
31 |
| |
32 #include <gtk/gtk.h> |
| |
33 |
| |
34 #include <purple.h> |
| |
35 |
| 32 #define PIDGIN_TYPE_BUDDY_LIST (pidgin_buddy_list_get_type()) |
36 #define PIDGIN_TYPE_BUDDY_LIST (pidgin_buddy_list_get_type()) |
| 33 |
37 |
| 34 typedef struct _PidginBuddyList PidginBuddyList; |
38 typedef struct _PidginBuddyList PidginBuddyList; |
| 35 |
39 |
| 36 typedef enum { |
40 typedef enum { |
| 37 PIDGIN_STATUS_ICON_LARGE, |
41 PIDGIN_STATUS_ICON_LARGE, |
| 38 PIDGIN_STATUS_ICON_SMALL |
42 PIDGIN_STATUS_ICON_SMALL |
| 39 |
43 |
| 40 } PidginStatusIconSize; |
44 } PidginStatusIconSize; |
| 41 |
|
| 42 #include <purple.h> |
|
| 43 |
|
| 44 #include "gtkblist-theme.h" |
|
| 45 |
45 |
| 46 /************************************************************************** |
46 /************************************************************************** |
| 47 * Structures |
47 * Structures |
| 48 **************************************************************************/ |
48 **************************************************************************/ |
| 49 /** |
49 /** |
| 270 * |
270 * |
| 271 * Adds a mini-alert to the blist scrollbook |
271 * Adds a mini-alert to the blist scrollbook |
| 272 */ |
272 */ |
| 273 void pidgin_blist_add_alert(GtkWidget *widget); |
273 void pidgin_blist_add_alert(GtkWidget *widget); |
| 274 |
274 |
| 275 /** |
|
| 276 * pidgin_blist_set_theme: |
|
| 277 * @theme: the new theme to use |
|
| 278 * |
|
| 279 * Sets the current theme for Pidgin to use |
|
| 280 */ |
|
| 281 void pidgin_blist_set_theme(PidginBlistTheme *theme); |
|
| 282 |
|
| 283 /** |
|
| 284 * pidgin_blist_get_theme: |
|
| 285 * |
|
| 286 * Gets Pidgin's current buddy list theme |
|
| 287 * |
|
| 288 * Returns: (transfer none): the current theme |
|
| 289 */ |
|
| 290 PidginBlistTheme *pidgin_blist_get_theme(void); |
|
| 291 |
|
| 292 /************************************************************************** |
275 /************************************************************************** |
| 293 * GTK+ Buddy List sorting functions |
276 * GTK+ Buddy List sorting functions |
| 294 **************************************************************************/ |
277 **************************************************************************/ |
| 295 |
278 |
| 296 typedef void (*pidgin_blist_sort_function)(PurpleBlistNode *new, PurpleBuddyList *blist, GtkTreeIter group, GtkTreeIter *cur, GtkTreeIter *iter); |
279 typedef void (*pidgin_blist_sort_function)(PurpleBlistNode *new, PurpleBuddyList *blist, GtkTreeIter group, GtkTreeIter *cur, GtkTreeIter *iter); |