Mercurial > pidgin.yaz
comparison src/gtkblist.h @ 7098:770233dad86c
[gaim-migrate @ 7663]
Renamed a few of the buddy list structs to be compliant with the rest of
gaim.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Wed, 01 Oct 2003 04:05:46 +0000 |
parents | feb3d21a7794 |
children | 52cf473a0103 |
comparison
equal
deleted
inserted
replaced
7097:2c331b10161e | 7098:770233dad86c |
---|---|
38 }; | 38 }; |
39 | 39 |
40 typedef enum { | 40 typedef enum { |
41 GAIM_STATUS_ICON_LARGE, | 41 GAIM_STATUS_ICON_LARGE, |
42 GAIM_STATUS_ICON_SMALL | 42 GAIM_STATUS_ICON_SMALL |
43 | |
43 } GaimStatusIconSize; | 44 } GaimStatusIconSize; |
45 | |
44 /************************************************************************** | 46 /************************************************************************** |
45 * @name Structures | 47 * @name Structures |
46 **************************************************************************/ | 48 **************************************************************************/ |
47 /** | 49 /** |
48 * Like, everything you need to know about the gtk buddy list | 50 * Like, everything you need to know about the gtk buddy list |
49 */ | 51 */ |
50 struct gaim_gtk_buddy_list { | 52 typedef struct { |
51 GtkWidget *window; | 53 GtkWidget *window; |
52 GtkWidget *vbox; /**< This is the vbox that everything gets packed into. Your plugin might | 54 GtkWidget *vbox; /**< This is the vbox that everything gets packed into. Your plugin might |
53 want to pack something in it itself. Go, plugins! */ | 55 want to pack something in it itself. Go, plugins! */ |
54 | 56 |
55 GtkWidget *treeview; /**< It's a treeview... d'uh. */ | 57 GtkWidget *treeview; /**< It's a treeview... d'uh. */ |
71 cell we're currently hovering over. This is | 73 cell we're currently hovering over. This is |
72 used for tooltips. */ | 74 used for tooltips. */ |
73 GtkWidget *tipwindow; /**< The window used by the tooltip */ | 75 GtkWidget *tipwindow; /**< The window used by the tooltip */ |
74 | 76 |
75 GaimBlistNode *selected_node; /**< The currently selected node */ | 77 GaimBlistNode *selected_node; /**< The currently selected node */ |
76 }; | |
77 | 78 |
78 #define GAIM_GTK_BLIST(list) ((struct gaim_gtk_buddy_list *)(list)->ui_data) | 79 } GaimGtkBuddyList; |
80 | |
81 #define GAIM_GTK_BLIST(list) ((GaimGtkBuddyList *)(list)->ui_data) | |
79 #define GAIM_IS_GTK_BLIST(list) \ | 82 #define GAIM_IS_GTK_BLIST(list) \ |
80 ((list)->ui_ops == gaim_gtk_blist_get_ui_ops()) | 83 ((list)->ui_ops == gaim_gtk_blist_get_ui_ops()) |
81 | 84 |
82 /************************************************************************** | 85 /************************************************************************** |
83 * @name GTK+ Buddy List API | 86 * @name GTK+ Buddy List API |
91 /** | 94 /** |
92 * Returns the UI operations structure for the buddy list. | 95 * Returns the UI operations structure for the buddy list. |
93 * | 96 * |
94 * @return The GTK list operations structure. | 97 * @return The GTK list operations structure. |
95 */ | 98 */ |
96 struct gaim_blist_ui_ops *gaim_gtk_blist_get_ui_ops(void); | 99 GaimBlistUiOps *gaim_gtk_blist_get_ui_ops(void); |
97 | 100 |
98 /** | 101 /** |
99 * Returns the base image to represent the account, based on the currently selected theme | 102 * Returns the base image to represent the account, based on the currently selected theme |
100 * | 103 * |
101 * @param account The account. | 104 * @param account The account. |
108 * Refreshes all the nodes of the buddy list. | 111 * Refreshes all the nodes of the buddy list. |
109 * This should only be called when something changes to affect most of the nodes (such as a ui preference changing) | 112 * This should only be called when something changes to affect most of the nodes (such as a ui preference changing) |
110 * | 113 * |
111 * @param list This is the core list that gets updated from | 114 * @param list This is the core list that gets updated from |
112 */ | 115 */ |
113 void gaim_gtk_blist_refresh(struct gaim_buddy_list *list); | 116 void gaim_gtk_blist_refresh(GaimBuddyList *list); |
114 | 117 |
115 /** | 118 /** |
116 * Tells the buddy list to update its toolbar based on the preferences | 119 * Tells the buddy list to update its toolbar based on the preferences |
117 * | 120 * |
118 */ | 121 */ |
137 | 140 |
138 /************************************************************************** | 141 /************************************************************************** |
139 * @name GTK+ Buddy List sorting functions | 142 * @name GTK+ Buddy List sorting functions |
140 **************************************************************************/ | 143 **************************************************************************/ |
141 | 144 |
142 typedef GtkTreeIter (*gaim_gtk_blist_sort_function)(GaimBlistNode *new, struct gaim_buddy_list *blist, GtkTreeIter group, GtkTreeIter *cur); | 145 typedef GtkTreeIter (*gaim_gtk_blist_sort_function)(GaimBlistNode *new, GaimBuddyList *blist, GtkTreeIter group, GtkTreeIter *cur); |
143 | 146 |
144 extern GSList *gaim_gtk_blist_sort_methods; | 147 extern GSList *gaim_gtk_blist_sort_methods; |
145 | 148 |
146 struct gaim_gtk_blist_sort_method { | 149 struct gaim_gtk_blist_sort_method { |
147 char *id; | 150 char *id; |