Thu, 25 Jan 2007 07:47:05 +0000
sf patch #1640011, from Celso Pinto
Patch for gaim.spec that fixes dependencies on SUSE
| 5228 | 1 | /** |
|
5248
f4f944f4dbe0
[gaim-migrate @ 5620]
Mark Doliner <markdoliner@pidgin.im>
parents:
5234
diff
changeset
|
2 | * @file gtkblist.h GTK+ Buddy List API |
| 5228 | 3 | * @ingroup gtkui |
| 4 | * | |
| 5 | * gaim | |
| 6 | * | |
| 8046 | 7 | * Gaim is the legal property of its developers, whose names are too numerous |
| 8 | * to list here. Please refer to the COPYRIGHT file distributed with this | |
| 9 | * source distribution. | |
| 5906 | 10 | * |
| 5228 | 11 | * This program is free software; you can redistribute it and/or modify |
| 12 | * it under the terms of the GNU General Public License as published by | |
| 13 | * the Free Software Foundation; either version 2 of the License, or | |
| 14 | * (at your option) any later version. | |
| 15 | * | |
| 16 | * This program is distributed in the hope that it will be useful, | |
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 19 | * GNU General Public License for more details. | |
| 20 | * | |
| 21 | * You should have received a copy of the GNU General Public License | |
| 22 | * along with this program; if not, write to the Free Software | |
| 23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 24 | */ | |
|
9713
bb37562302a1
[gaim-migrate @ 10574]
Mark Doliner <markdoliner@pidgin.im>
parents:
9051
diff
changeset
|
25 | #ifndef _GAIM_GTKBLIST_H_ |
|
bb37562302a1
[gaim-migrate @ 10574]
Mark Doliner <markdoliner@pidgin.im>
parents:
9051
diff
changeset
|
26 | #define _GAIM_GTKBLIST_H_ |
| 5228 | 27 | |
|
10008
1de3454a0dca
[gaim-migrate @ 10925]
Mark Doliner <markdoliner@pidgin.im>
parents:
9791
diff
changeset
|
28 | typedef struct _GaimGtkBuddyList GaimGtkBuddyList; |
|
5872
754c63f29b77
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5631
diff
changeset
|
29 | |
| 5228 | 30 | enum { |
| 31 | STATUS_ICON_COLUMN, | |
| 32 | STATUS_ICON_VISIBLE_COLUMN, | |
| 33 | NAME_COLUMN, | |
| 34 | IDLE_COLUMN, | |
| 14471 | 35 | IDLE_VISIBLE_COLUMN, |
| 5228 | 36 | BUDDY_ICON_COLUMN, |
| 14471 | 37 | BUDDY_ICON_VISIBLE_COLUMN, |
| 5228 | 38 | NODE_COLUMN, |
| 14471 | 39 | BGCOLOR_COLUMN, |
| 40 | GROUP_EXPANDER_COLUMN, | |
| 41 | CONTACT_EXPANDER_COLUMN, | |
| 42 | CONTACT_EXPANDER_VISIBLE_COLUMN, | |
| 5228 | 43 | BLIST_COLUMNS |
|
10008
1de3454a0dca
[gaim-migrate @ 10925]
Mark Doliner <markdoliner@pidgin.im>
parents:
9791
diff
changeset
|
44 | |
|
1de3454a0dca
[gaim-migrate @ 10925]
Mark Doliner <markdoliner@pidgin.im>
parents:
9791
diff
changeset
|
45 | }; |
| 5228 | 46 | |
| 47 | typedef enum { | |
| 48 | GAIM_STATUS_ICON_LARGE, | |
| 49 | GAIM_STATUS_ICON_SMALL | |
|
7098
22eabd4f5ed4
[gaim-migrate @ 7663]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
50 | |
| 5228 | 51 | } GaimStatusIconSize; |
|
7098
22eabd4f5ed4
[gaim-migrate @ 7663]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
52 | |
|
10008
1de3454a0dca
[gaim-migrate @ 10925]
Mark Doliner <markdoliner@pidgin.im>
parents:
9791
diff
changeset
|
53 | #include "gtkgaim.h" |
|
1de3454a0dca
[gaim-migrate @ 10925]
Mark Doliner <markdoliner@pidgin.im>
parents:
9791
diff
changeset
|
54 | #include "blist.h" |
|
1de3454a0dca
[gaim-migrate @ 10925]
Mark Doliner <markdoliner@pidgin.im>
parents:
9791
diff
changeset
|
55 | |
| 5228 | 56 | /************************************************************************** |
| 57 | * @name Structures | |
| 58 | **************************************************************************/ | |
| 59 | /** | |
| 60 | * Like, everything you need to know about the gtk buddy list | |
| 61 | */ | |
|
10008
1de3454a0dca
[gaim-migrate @ 10925]
Mark Doliner <markdoliner@pidgin.im>
parents:
9791
diff
changeset
|
62 | struct _GaimGtkBuddyList { |
| 5228 | 63 | GtkWidget *window; |
| 15086 | 64 | GtkWidget *notebook; /**< The notebook that switches between the real buddy list and the helpful |
| 65 | instructions page */ | |
| 66 | GtkWidget *main_vbox; /**< This vbox contains the menu and notebook */ | |
| 67 | GtkWidget *vbox; /**< This is the vbox that everything important gets packed into. | |
| 68 | Your plugin might want to pack something in it itself. Go, plugins! */ | |
| 5228 | 69 | |
| 70 | GtkWidget *treeview; /**< It's a treeview... d'uh. */ | |
| 71 | GtkTreeStore *treemodel; /**< This is the treemodel. */ | |
| 14518 | 72 | GtkTreeViewColumn *text_column; /**< Column */ |
| 11016 | 73 | |
| 74 | GtkCellRenderer *text_rend; | |
| 5228 | 75 | |
|
5427
a45fa07ef20d
[gaim-migrate @ 5806]
Mark Doliner <markdoliner@pidgin.im>
parents:
5422
diff
changeset
|
76 | GtkItemFactory *ift; |
|
12116
17bf39d2678f
[gaim-migrate @ 14416]
Casey Harkins <charkins@pidgin.im>
parents:
12080
diff
changeset
|
77 | GtkWidget *menutray; /**< The menu tray widget. */ |
|
17bf39d2678f
[gaim-migrate @ 14416]
Casey Harkins <charkins@pidgin.im>
parents:
12080
diff
changeset
|
78 | GtkWidget *menutrayicon; /**< The menu tray icon. */ |
| 5228 | 79 | |
|
13015
79ca1e6153bd
[gaim-migrate @ 15368]
Mark Doliner <markdoliner@pidgin.im>
parents:
12583
diff
changeset
|
80 | GHashTable *connection_errors; /**< Caches connection error messages and accounts. */ |
|
79ca1e6153bd
[gaim-migrate @ 15368]
Mark Doliner <markdoliner@pidgin.im>
parents:
12583
diff
changeset
|
81 | |
| 5228 | 82 | guint refresh_timer; /**< The timer for refreshing every 30 seconds */ |
| 83 | ||
| 84 | guint timeout; /**< The timeout for the tooltip. */ | |
| 10354 | 85 | guint drag_timeout; /**< The timeout for expanding contacts on drags */ |
| 7636 | 86 | GdkRectangle tip_rect; /**< This is the bounding rectangle of the |
| 87 | cell we're currently hovering over. This is | |
| 88 | used for tooltips. */ | |
| 89 | GdkRectangle contact_rect; /**< This is the bounding rectangle of the contact node | |
| 90 | and its children. This is used for auto-expand on | |
| 91 | mouseover. */ | |
| 92 | GaimBlistNode *mouseover_contact; /**< This is the contact currently mouse-over expanded */ | |
| 93 | ||
| 5228 | 94 | GtkWidget *tipwindow; /**< The window used by the tooltip */ |
| 11890 | 95 | GList *tooltipdata; /**< The data for each "chunk" of the tooltip */ |
| 5228 | 96 | |
|
13015
79ca1e6153bd
[gaim-migrate @ 15368]
Mark Doliner <markdoliner@pidgin.im>
parents:
12583
diff
changeset
|
97 | GaimBlistNode *selected_node; /**< The currently selected node */ |
| 15243 | 98 | |
| 99 | GdkCursor *hand_cursor; /**< Hand cursor */ | |
| 100 | GdkCursor *arrow_cursor; /**< Arrow cursor */ | |
| 15094 | 101 | |
| 102 | GtkWidget *scrollbook; /**< Scrollbook for alerts */ | |
| 15243 | 103 | GtkWidget *headline_hbox; /**< Hbox for headline notification */ |
| 104 | GtkWidget *headline_label; /**< Label for headline notifications */ | |
| 105 | GtkWidget *headline_image; /**< Image for headline notifications */ | |
|
15300
454ddc38e700
[gaim-migrate @ 18028]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15246
diff
changeset
|
106 | GdkPixbuf *headline_close; /**< Close image for closing the headline without triggering the callback */ |
| 15243 | 107 | GCallback headline_callback; /**< Callback for headline notifications */ |
| 108 | gpointer headline_data; /**< User data for headline notifications */ | |
|
15386
2cfff7893ed0
[gaim-migrate @ 18115]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15380
diff
changeset
|
109 | GDestroyNotify headline_destroy; /**< Callback to use for destroying the headline-data */ |
| 15246 | 110 | gboolean changing_style; /**< True when changing GTK+ theme style */ |
| 15243 | 111 | |
|
13015
79ca1e6153bd
[gaim-migrate @ 15368]
Mark Doliner <markdoliner@pidgin.im>
parents:
12583
diff
changeset
|
112 | GtkWidget *error_buttons; /**< Box containing the connection error buttons */ |
|
79ca1e6153bd
[gaim-migrate @ 15368]
Mark Doliner <markdoliner@pidgin.im>
parents:
12583
diff
changeset
|
113 | GtkWidget *statusbox; /**< The status selector dropdown */ |
|
10008
1de3454a0dca
[gaim-migrate @ 10925]
Mark Doliner <markdoliner@pidgin.im>
parents:
9791
diff
changeset
|
114 | }; |
|
7098
22eabd4f5ed4
[gaim-migrate @ 7663]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
115 | |
|
22eabd4f5ed4
[gaim-migrate @ 7663]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
116 | #define GAIM_GTK_BLIST(list) ((GaimGtkBuddyList *)(list)->ui_data) |
| 5228 | 117 | #define GAIM_IS_GTK_BLIST(list) \ |
|
7035
76bca80cd91d
[gaim-migrate @ 7598]
Christian Hammond <chipx86@chipx86.com>
parents:
6695
diff
changeset
|
118 | ((list)->ui_ops == gaim_gtk_blist_get_ui_ops()) |
| 5228 | 119 | |
| 120 | /************************************************************************** | |
| 5422 | 121 | * @name GTK+ Buddy List API |
| 5228 | 122 | **************************************************************************/ |
| 5906 | 123 | |
| 124 | /** | |
| 8815 | 125 | * Get the handle for the GTK+ blist system. |
| 126 | * | |
| 127 | * @return the handle to the blist system | |
| 128 | */ | |
|
12323
f52908fb23b0
[gaim-migrate @ 14627]
Richard Laager <rlaager@pidgin.im>
parents:
12296
diff
changeset
|
129 | void *gaim_gtk_blist_get_handle(void); |
| 8815 | 130 | |
| 131 | /** | |
| 5906 | 132 | * Initializes the GTK+ blist system. |
| 133 | */ | |
| 134 | void gaim_gtk_blist_init(void); | |
| 135 | ||
| 5228 | 136 | /** |
| 8815 | 137 | * Uninitializes the GTK+ blist system. |
| 138 | */ | |
| 139 | void gaim_gtk_blist_uninit(void); | |
| 140 | ||
| 141 | /** | |
| 5228 | 142 | * Returns the UI operations structure for the buddy list. |
| 143 | * | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10643
diff
changeset
|
144 | * @return The GTK+ list operations structure. |
| 5228 | 145 | */ |
|
7098
22eabd4f5ed4
[gaim-migrate @ 7663]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
146 | GaimBlistUiOps *gaim_gtk_blist_get_ui_ops(void); |
| 5228 | 147 | |
| 148 | /** | |
| 10643 | 149 | * Returns the default gtk buddy list |
| 11732 | 150 | * |
| 10643 | 151 | * There's normally only one buddy list window, but that isn't a necessity. This function |
| 152 | * returns the GaimGtkBuddyList we're most likely wanting to work with. This is slightly | |
| 153 | * cleaner than an externed global. | |
| 11732 | 154 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10643
diff
changeset
|
155 | * @return The default GTK+ buddy list |
| 10643 | 156 | */ |
|
12323
f52908fb23b0
[gaim-migrate @ 14627]
Richard Laager <rlaager@pidgin.im>
parents:
12296
diff
changeset
|
157 | GaimGtkBuddyList *gaim_gtk_blist_get_default_gtk_blist(void); |
| 10643 | 158 | |
| 159 | /** | |
| 9774 | 160 | * Populates a menu with the items shown on the buddy list for a buddy. |
| 161 | * | |
| 162 | * @param menu The menu to populate | |
|
14200
799dfae258cf
[gaim-migrate @ 16780]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
13015
diff
changeset
|
163 | * @param buddy The buddy whose menu to get |
| 10484 | 164 | * @param sub TRUE if this is a sub-menu, FALSE otherwise |
| 9774 | 165 | */ |
| 10484 | 166 | void gaim_gtk_blist_make_buddy_menu(GtkWidget *menu, GaimBuddy *buddy, gboolean sub); |
| 9774 | 167 | |
| 168 | /** | |
| 5228 | 169 | * Refreshes all the nodes of the buddy list. |
| 170 | * This should only be called when something changes to affect most of the nodes (such as a ui preference changing) | |
| 171 | * | |
| 172 | * @param list This is the core list that gets updated from | |
| 173 | */ | |
|
7098
22eabd4f5ed4
[gaim-migrate @ 7663]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
174 | void gaim_gtk_blist_refresh(GaimBuddyList *list); |
| 5228 | 175 | |
|
12323
f52908fb23b0
[gaim-migrate @ 14627]
Richard Laager <rlaager@pidgin.im>
parents:
12296
diff
changeset
|
176 | void gaim_gtk_blist_update_columns(void); |
|
f52908fb23b0
[gaim-migrate @ 14627]
Richard Laager <rlaager@pidgin.im>
parents:
12296
diff
changeset
|
177 | void gaim_gtk_blist_update_refresh_timeout(void); |
| 5228 | 178 | |
| 179 | /** | |
| 180 | * Useful for the buddy ticker | |
| 181 | */ | |
| 5234 | 182 | GdkPixbuf *gaim_gtk_blist_get_status_icon(GaimBlistNode *node, |
| 5228 | 183 | GaimStatusIconSize size); |
| 184 | ||
|
11018
a3843543f132
[gaim-migrate @ 12888]
Richard Laager <rlaager@pidgin.im>
parents:
11016
diff
changeset
|
185 | /** |
|
a3843543f132
[gaim-migrate @ 12888]
Richard Laager <rlaager@pidgin.im>
parents:
11016
diff
changeset
|
186 | * Returns a boolean indicating if @a node is part of an expanded contact. |
|
a3843543f132
[gaim-migrate @ 12888]
Richard Laager <rlaager@pidgin.im>
parents:
11016
diff
changeset
|
187 | * |
|
a3843543f132
[gaim-migrate @ 12888]
Richard Laager <rlaager@pidgin.im>
parents:
11016
diff
changeset
|
188 | * This only makes sense for contact and buddy nodes. @c FALSE is returned |
|
a3843543f132
[gaim-migrate @ 12888]
Richard Laager <rlaager@pidgin.im>
parents:
11016
diff
changeset
|
189 | * for other types of nodes. |
|
a3843543f132
[gaim-migrate @ 12888]
Richard Laager <rlaager@pidgin.im>
parents:
11016
diff
changeset
|
190 | * |
|
a3843543f132
[gaim-migrate @ 12888]
Richard Laager <rlaager@pidgin.im>
parents:
11016
diff
changeset
|
191 | * @param node The node in question. |
|
a3843543f132
[gaim-migrate @ 12888]
Richard Laager <rlaager@pidgin.im>
parents:
11016
diff
changeset
|
192 | * @return A boolean indicating if @a node is part of an expanded contact. |
|
a3843543f132
[gaim-migrate @ 12888]
Richard Laager <rlaager@pidgin.im>
parents:
11016
diff
changeset
|
193 | */ |
|
a3843543f132
[gaim-migrate @ 12888]
Richard Laager <rlaager@pidgin.im>
parents:
11016
diff
changeset
|
194 | gboolean gaim_gtk_blist_node_is_contact_expanded(GaimBlistNode *node); |
|
a3843543f132
[gaim-migrate @ 12888]
Richard Laager <rlaager@pidgin.im>
parents:
11016
diff
changeset
|
195 | |
|
12017
576096d84889
[gaim-migrate @ 14310]
Daniel Atallah <datallah@pidgin.im>
parents:
11890
diff
changeset
|
196 | /** |
|
576096d84889
[gaim-migrate @ 14310]
Daniel Atallah <datallah@pidgin.im>
parents:
11890
diff
changeset
|
197 | * Intelligently toggles the visibility of the buddy list. If the buddy |
|
576096d84889
[gaim-migrate @ 14310]
Daniel Atallah <datallah@pidgin.im>
parents:
11890
diff
changeset
|
198 | * list is obscured, it is brought to the front. If it is not obscured, |
|
576096d84889
[gaim-migrate @ 14310]
Daniel Atallah <datallah@pidgin.im>
parents:
11890
diff
changeset
|
199 | * it is hidden. If it is hidden it is shown. |
|
576096d84889
[gaim-migrate @ 14310]
Daniel Atallah <datallah@pidgin.im>
parents:
11890
diff
changeset
|
200 | */ |
|
12323
f52908fb23b0
[gaim-migrate @ 14627]
Richard Laager <rlaager@pidgin.im>
parents:
12296
diff
changeset
|
201 | void gaim_gtk_blist_toggle_visibility(void); |
|
12017
576096d84889
[gaim-migrate @ 14310]
Daniel Atallah <datallah@pidgin.im>
parents:
11890
diff
changeset
|
202 | |
|
576096d84889
[gaim-migrate @ 14310]
Daniel Atallah <datallah@pidgin.im>
parents:
11890
diff
changeset
|
203 | /** |
|
576096d84889
[gaim-migrate @ 14310]
Daniel Atallah <datallah@pidgin.im>
parents:
11890
diff
changeset
|
204 | * Increases the reference count of visibility managers. Callers should |
|
576096d84889
[gaim-migrate @ 14310]
Daniel Atallah <datallah@pidgin.im>
parents:
11890
diff
changeset
|
205 | * call the complementary remove function when no longer managing |
|
576096d84889
[gaim-migrate @ 14310]
Daniel Atallah <datallah@pidgin.im>
parents:
11890
diff
changeset
|
206 | * visibility. |
|
576096d84889
[gaim-migrate @ 14310]
Daniel Atallah <datallah@pidgin.im>
parents:
11890
diff
changeset
|
207 | * |
|
576096d84889
[gaim-migrate @ 14310]
Daniel Atallah <datallah@pidgin.im>
parents:
11890
diff
changeset
|
208 | * A visibility manager is something that provides some method for |
|
576096d84889
[gaim-migrate @ 14310]
Daniel Atallah <datallah@pidgin.im>
parents:
11890
diff
changeset
|
209 | * showing the buddy list after it is hidden (e.g. docklet plugin). |
|
576096d84889
[gaim-migrate @ 14310]
Daniel Atallah <datallah@pidgin.im>
parents:
11890
diff
changeset
|
210 | */ |
|
12323
f52908fb23b0
[gaim-migrate @ 14627]
Richard Laager <rlaager@pidgin.im>
parents:
12296
diff
changeset
|
211 | void gaim_gtk_blist_visibility_manager_add(void); |
|
12017
576096d84889
[gaim-migrate @ 14310]
Daniel Atallah <datallah@pidgin.im>
parents:
11890
diff
changeset
|
212 | |
|
576096d84889
[gaim-migrate @ 14310]
Daniel Atallah <datallah@pidgin.im>
parents:
11890
diff
changeset
|
213 | /** |
|
576096d84889
[gaim-migrate @ 14310]
Daniel Atallah <datallah@pidgin.im>
parents:
11890
diff
changeset
|
214 | * Decreases the reference count of visibility managers. If the count |
|
576096d84889
[gaim-migrate @ 14310]
Daniel Atallah <datallah@pidgin.im>
parents:
11890
diff
changeset
|
215 | * drops below zero, the buddy list is shown. |
|
576096d84889
[gaim-migrate @ 14310]
Daniel Atallah <datallah@pidgin.im>
parents:
11890
diff
changeset
|
216 | */ |
|
12323
f52908fb23b0
[gaim-migrate @ 14627]
Richard Laager <rlaager@pidgin.im>
parents:
12296
diff
changeset
|
217 | void gaim_gtk_blist_visibility_manager_remove(void); |
|
12017
576096d84889
[gaim-migrate @ 14310]
Daniel Atallah <datallah@pidgin.im>
parents:
11890
diff
changeset
|
218 | |
| 15094 | 219 | /** |
| 220 | * Adds a mini-alert to the blist scrollbook | |
| 221 | * | |
| 222 | * @param widget The widget to add | |
| 223 | */ | |
| 224 | void gaim_gtk_blist_add_alert(GtkWidget *widget); | |
| 225 | ||
|
12017
576096d84889
[gaim-migrate @ 14310]
Daniel Atallah <datallah@pidgin.im>
parents:
11890
diff
changeset
|
226 | |
| 5422 | 227 | /************************************************************************** |
| 228 | * @name GTK+ Buddy List sorting functions | |
| 229 | **************************************************************************/ | |
| 230 | ||
|
12413
ce06aa90beee
[gaim-migrate @ 14720]
Richard Laager <rlaager@pidgin.im>
parents:
12323
diff
changeset
|
231 | typedef void (*gaim_gtk_blist_sort_function)(GaimBlistNode *new, GaimBuddyList *blist, GtkTreeIter group, GtkTreeIter *cur, GtkTreeIter *iter); |
| 5422 | 232 | |
| 11796 | 233 | /** |
| 234 | * Gets the current list of sort methods. | |
| 235 | * | |
| 236 | * @return A GSlist of sort methods | |
| 237 | */ | |
|
12323
f52908fb23b0
[gaim-migrate @ 14627]
Richard Laager <rlaager@pidgin.im>
parents:
12296
diff
changeset
|
238 | GList *gaim_gtk_blist_get_sort_methods(void); |
| 5422 | 239 | |
| 240 | struct gaim_gtk_blist_sort_method { | |
| 5631 | 241 | char *id; |
| 5422 | 242 | char *name; |
| 243 | gaim_gtk_blist_sort_function func; | |
| 244 | }; | |
| 245 | ||
| 11796 | 246 | typedef struct gaim_gtk_blist_sort_method GaimGtkBlistSortMethod; |
| 247 | ||
| 5422 | 248 | /** |
| 249 | * Registers a buddy list sorting method. | |
| 250 | * | |
| 5631 | 251 | * @param id The unique ID of the sorting method |
| 5422 | 252 | * @param name The method's name. |
| 253 | * @param func A pointer to the function. | |
| 254 | * | |
| 255 | */ | |
| 5631 | 256 | void gaim_gtk_blist_sort_method_reg(const char *id, const char *name, gaim_gtk_blist_sort_function func); |
| 5422 | 257 | |
| 258 | /** | |
| 259 | * Unregisters a buddy list sorting method. | |
| 260 | * | |
| 5631 | 261 | * @param id The method's id |
| 5422 | 262 | */ |
| 5631 | 263 | void gaim_gtk_blist_sort_method_unreg(const char *id); |
| 5422 | 264 | |
| 265 | /** | |
| 266 | * Sets a buddy list sorting method. | |
| 267 | * | |
| 5631 | 268 | * @param id The method's id. |
| 5422 | 269 | */ |
| 5631 | 270 | void gaim_gtk_blist_sort_method_set(const char *id); |
| 5422 | 271 | |
| 272 | /** | |
| 273 | * Sets up the programs default sort methods | |
| 274 | */ | |
|
12323
f52908fb23b0
[gaim-migrate @ 14627]
Richard Laager <rlaager@pidgin.im>
parents:
12296
diff
changeset
|
275 | void gaim_gtk_blist_setup_sort_methods(void); |
| 5422 | 276 | |
|
5936
4bac764cc792
[gaim-migrate @ 6376]
Christian Hammond <chipx86@chipx86.com>
parents:
5906
diff
changeset
|
277 | /** |
| 12296 | 278 | * Updates the accounts menu on the GTK+ buddy list window. |
|
5936
4bac764cc792
[gaim-migrate @ 6376]
Christian Hammond <chipx86@chipx86.com>
parents:
5906
diff
changeset
|
279 | */ |
|
12323
f52908fb23b0
[gaim-migrate @ 14627]
Richard Laager <rlaager@pidgin.im>
parents:
12296
diff
changeset
|
280 | void gaim_gtk_blist_update_accounts_menu(void); |
| 5422 | 281 | |
|
8305
5a6d1168a8b3
[gaim-migrate @ 9029]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
282 | /** |
|
8986
30ba617356bb
[gaim-migrate @ 9761]
Christopher O'Brien <siege@pidgin.im>
parents:
8940
diff
changeset
|
283 | * Updates the plugin actions menu on the GTK+ buddy list window. |
|
30ba617356bb
[gaim-migrate @ 9761]
Christopher O'Brien <siege@pidgin.im>
parents:
8940
diff
changeset
|
284 | */ |
|
12323
f52908fb23b0
[gaim-migrate @ 14627]
Richard Laager <rlaager@pidgin.im>
parents:
12296
diff
changeset
|
285 | void gaim_gtk_blist_update_plugin_actions(void); |
|
8986
30ba617356bb
[gaim-migrate @ 9761]
Christopher O'Brien <siege@pidgin.im>
parents:
8940
diff
changeset
|
286 | |
|
30ba617356bb
[gaim-migrate @ 9761]
Christopher O'Brien <siege@pidgin.im>
parents:
8940
diff
changeset
|
287 | /** |
| 11796 | 288 | * Updates the Sorting menu on the GTK+ buddy list window. |
| 289 | */ | |
|
12323
f52908fb23b0
[gaim-migrate @ 14627]
Richard Laager <rlaager@pidgin.im>
parents:
12296
diff
changeset
|
290 | void gaim_gtk_blist_update_sort_methods(void); |
| 11796 | 291 | |
| 292 | /** | |
|
8940
3e22cf150db0
[gaim-migrate @ 9710]
Mark Doliner <markdoliner@pidgin.im>
parents:
8815
diff
changeset
|
293 | * Determines if showing the join chat dialog is a valid action. |
|
3e22cf150db0
[gaim-migrate @ 9710]
Mark Doliner <markdoliner@pidgin.im>
parents:
8815
diff
changeset
|
294 | * |
|
3e22cf150db0
[gaim-migrate @ 9710]
Mark Doliner <markdoliner@pidgin.im>
parents:
8815
diff
changeset
|
295 | * @return Returns TRUE if there are accounts online capable of |
|
3e22cf150db0
[gaim-migrate @ 9710]
Mark Doliner <markdoliner@pidgin.im>
parents:
8815
diff
changeset
|
296 | * joining chat rooms. Otherwise returns FALSE. |
|
8305
5a6d1168a8b3
[gaim-migrate @ 9029]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
297 | */ |
|
8940
3e22cf150db0
[gaim-migrate @ 9710]
Mark Doliner <markdoliner@pidgin.im>
parents:
8815
diff
changeset
|
298 | gboolean gaim_gtk_blist_joinchat_is_showable(void); |
|
3e22cf150db0
[gaim-migrate @ 9710]
Mark Doliner <markdoliner@pidgin.im>
parents:
8815
diff
changeset
|
299 | |
|
3e22cf150db0
[gaim-migrate @ 9710]
Mark Doliner <markdoliner@pidgin.im>
parents:
8815
diff
changeset
|
300 | /** |
|
3e22cf150db0
[gaim-migrate @ 9710]
Mark Doliner <markdoliner@pidgin.im>
parents:
8815
diff
changeset
|
301 | * Shows the join chat dialog. |
|
3e22cf150db0
[gaim-migrate @ 9710]
Mark Doliner <markdoliner@pidgin.im>
parents:
8815
diff
changeset
|
302 | */ |
|
3e22cf150db0
[gaim-migrate @ 9710]
Mark Doliner <markdoliner@pidgin.im>
parents:
8815
diff
changeset
|
303 | void gaim_gtk_blist_joinchat_show(void); |
| 5422 | 304 | |
| 9051 | 305 | /** |
|
15380
1171796358b3
[gaim-migrate @ 18109]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15300
diff
changeset
|
306 | * Appends the privacy menu items for a GaimBlistNode |
|
1171796358b3
[gaim-migrate @ 18109]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15300
diff
changeset
|
307 | * TODO: Rename these. |
|
1171796358b3
[gaim-migrate @ 18109]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15300
diff
changeset
|
308 | */ |
|
1171796358b3
[gaim-migrate @ 18109]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15300
diff
changeset
|
309 | void gaim_gtk_append_blist_node_privacy_menu(GtkWidget *menu, GaimBlistNode *node); |
|
1171796358b3
[gaim-migrate @ 18109]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15300
diff
changeset
|
310 | |
|
1171796358b3
[gaim-migrate @ 18109]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15300
diff
changeset
|
311 | /** |
| 9051 | 312 | * Appends the protocol specific menu items for a GaimBlistNode |
|
13015
79ca1e6153bd
[gaim-migrate @ 15368]
Mark Doliner <markdoliner@pidgin.im>
parents:
12583
diff
changeset
|
313 | * TODO: Rename these. |
| 9051 | 314 | */ |
| 315 | void gaim_gtk_append_blist_node_proto_menu (GtkWidget *menu, GaimConnection *gc, GaimBlistNode *node); | |
| 316 | ||
| 317 | /** | |
| 318 | * Appends the extended menu items for a GaimBlistNode | |
|
13015
79ca1e6153bd
[gaim-migrate @ 15368]
Mark Doliner <markdoliner@pidgin.im>
parents:
12583
diff
changeset
|
319 | * TODO: Rename these. |
| 9051 | 320 | */ |
| 321 | void gaim_gtk_append_blist_node_extended_menu(GtkWidget *menu, GaimBlistNode *node); | |
| 322 | ||
|
13015
79ca1e6153bd
[gaim-migrate @ 15368]
Mark Doliner <markdoliner@pidgin.im>
parents:
12583
diff
changeset
|
323 | /** |
|
79ca1e6153bd
[gaim-migrate @ 15368]
Mark Doliner <markdoliner@pidgin.im>
parents:
12583
diff
changeset
|
324 | * Used by the connection API to tell the blist if an account |
|
79ca1e6153bd
[gaim-migrate @ 15368]
Mark Doliner <markdoliner@pidgin.im>
parents:
12583
diff
changeset
|
325 | * has a connection error or no longer has a connection error. |
|
79ca1e6153bd
[gaim-migrate @ 15368]
Mark Doliner <markdoliner@pidgin.im>
parents:
12583
diff
changeset
|
326 | * |
|
79ca1e6153bd
[gaim-migrate @ 15368]
Mark Doliner <markdoliner@pidgin.im>
parents:
12583
diff
changeset
|
327 | * @param account The account that either has a connection error |
|
79ca1e6153bd
[gaim-migrate @ 15368]
Mark Doliner <markdoliner@pidgin.im>
parents:
12583
diff
changeset
|
328 | * or no longer has a connection error. |
|
79ca1e6153bd
[gaim-migrate @ 15368]
Mark Doliner <markdoliner@pidgin.im>
parents:
12583
diff
changeset
|
329 | * @param message The connection error message, or NULL if this |
|
79ca1e6153bd
[gaim-migrate @ 15368]
Mark Doliner <markdoliner@pidgin.im>
parents:
12583
diff
changeset
|
330 | * account is no longer in an error state. |
|
79ca1e6153bd
[gaim-migrate @ 15368]
Mark Doliner <markdoliner@pidgin.im>
parents:
12583
diff
changeset
|
331 | */ |
|
79ca1e6153bd
[gaim-migrate @ 15368]
Mark Doliner <markdoliner@pidgin.im>
parents:
12583
diff
changeset
|
332 | void gaim_gtk_blist_update_account_error_state(GaimAccount *account, const char *message); |
|
79ca1e6153bd
[gaim-migrate @ 15368]
Mark Doliner <markdoliner@pidgin.im>
parents:
12583
diff
changeset
|
333 | |
| 15243 | 334 | /** |
| 335 | * Sets a headline notification | |
| 336 | * | |
| 337 | * This is currently used for mail notification, but could theoretically be used for anything. | |
| 338 | * Only the most recent headline will be shown. | |
| 339 | * | |
| 340 | * @param text Pango Markup for the label text | |
| 341 | * @param pixbuf The GdkPixbuf for the icon | |
| 342 | * @param callback The callback to call when headline is clicked | |
| 343 | * @param user_data The userdata to include in the callback | |
|
15386
2cfff7893ed0
[gaim-migrate @ 18115]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15380
diff
changeset
|
344 | * @param destroy The callback to call when headline is closed or replaced by another headline. |
| 15243 | 345 | */ |
|
15386
2cfff7893ed0
[gaim-migrate @ 18115]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15380
diff
changeset
|
346 | void gaim_gtk_blist_set_headline(const char *text, GdkPixbuf *pixbuf, GCallback callback, gpointer user_data, |
|
2cfff7893ed0
[gaim-migrate @ 18115]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15380
diff
changeset
|
347 | GDestroyNotify destroy); |
| 15243 | 348 | |
|
9713
bb37562302a1
[gaim-migrate @ 10574]
Mark Doliner <markdoliner@pidgin.im>
parents:
9051
diff
changeset
|
349 | #endif /* _GAIM_GTKBLIST_H_ */ |