Mercurial > pidgin.yaz
comparison src/gtkutils.h @ 8289:e39ea2b4f6cd
[gaim-migrate @ 9013]
- Moved GaimCheckAccountFunc into account.h, and renamed it to
GaimFilterAccountFunc.
- Added filter functions to the account field in the gaim_request_fields
API.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Thu, 19 Feb 2004 07:25:31 +0000 |
parents | 9af78e73f0b2 |
children | 92cbf9713795 |
comparison
equal
deleted
inserted
replaced
8288:dde73afb3283 | 8289:e39ea2b4f6cd |
---|---|
53 GAIM_BROWSER_NEW_WINDOW, | 53 GAIM_BROWSER_NEW_WINDOW, |
54 GAIM_BROWSER_NEW_TAB | 54 GAIM_BROWSER_NEW_TAB |
55 } GaimBrowserPlace; | 55 } GaimBrowserPlace; |
56 #endif /* _WIN32 */ | 56 #endif /* _WIN32 */ |
57 | 57 |
58 typedef gboolean (*GaimCheckAccountFunc)(GaimAccount *account); | |
59 | |
60 extern guint accels_save_timer; | 58 extern guint accels_save_timer; |
61 | 59 |
62 /** | 60 /** |
63 * Sets up a gtkimhtml widget, loads it with smileys, and sets the | 61 * Sets up a gtkimhtml widget, loads it with smileys, and sets the |
64 * default signal handlers. | 62 * default signal handlers. |
254 gpointer user_data); | 252 gpointer user_data); |
255 | 253 |
256 /** | 254 /** |
257 * Creates a drop-down option menu filled with accounts. | 255 * Creates a drop-down option menu filled with accounts. |
258 * | 256 * |
259 * @param default_account The account to select by default. | 257 * @param default_account The account to select by default. |
260 * @param show_all Whether or not to show all accounts, or just | 258 * @param show_all Whether or not to show all accounts, or just |
261 * active accounts. | 259 * active accounts. |
262 * @param cb The callback to call when an account is selected. | 260 * @param cb The callback to call when an account is selected. |
263 * @param check_account_func A function for checking if an account should | 261 * @param filter_func A function for checking if an account should |
264 * be shown. This can be NULL. | 262 * be shown. This can be NULL. |
265 * @param user_data Data to pass to the callback function. | 263 * @param user_data Data to pass to the callback function. |
266 * | 264 * |
267 * @return The drop-down option menu. | 265 * @return The drop-down option menu. |
268 */ | 266 */ |
269 GtkWidget *gaim_gtk_account_option_menu_new(GaimAccount *default_account, | 267 GtkWidget *gaim_gtk_account_option_menu_new(GaimAccount *default_account, |
270 gboolean show_all, GCallback cb, | 268 gboolean show_all, GCallback cb, |
271 GaimCheckAccountFunc check_account_func, gpointer user_data); | 269 GaimFilterAccountFunc filter_func, gpointer user_data); |
272 | 270 |
273 /** | 271 /** |
274 * Check if the given path is a directory or not. If it is, then modify | 272 * Check if the given path is a directory or not. If it is, then modify |
275 * the given GtkFileSelection dialog so that it displays the given path. | 273 * the given GtkFileSelection dialog so that it displays the given path. |
276 * If the given path is not a directory, then do nothing. | 274 * If the given path is not a directory, then do nothing. |