comparison src/gtkutils.h @ 6646:b89d98f0bf79

[gaim-migrate @ 7171] The Privacy dialog now displays only accounts that are online, as does the pounce dialog. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Fri, 29 Aug 2003 22:41:23 +0000
parents 9dd4bb3cf1df
children 41120df7ed94
comparison
equal deleted inserted replaced
6645:2fa677eb9e57 6646:b89d98f0bf79
3 * @ingroup gtkui 3 * @ingroup gtkui
4 * 4 *
5 * gaim 5 * gaim
6 * 6 *
7 * Copyright (C) 2003 Christian Hammond <chipx86@gnupdate.org> 7 * Copyright (C) 2003 Christian Hammond <chipx86@gnupdate.org>
8 * 8 *
9 * This program is free software; you can redistribute it and/or modify 9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by 10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or 11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version. 12 * (at your option) any later version.
13 * 13 *
40 GAIM_BUTTON_TEXT, 40 GAIM_BUTTON_TEXT,
41 GAIM_BUTTON_IMAGE, 41 GAIM_BUTTON_IMAGE,
42 GAIM_BUTTON_TEXT_IMAGE 42 GAIM_BUTTON_TEXT_IMAGE
43 43
44 } GaimButtonStyle; 44 } GaimButtonStyle;
45
46 typedef gboolean (*GaimCheckAccountFunc)(GaimAccount *account);
45 47
46 /** 48 /**
47 * Sets up a gtkimhtml widget, loads it with smileys, and sets the 49 * Sets up a gtkimhtml widget, loads it with smileys, and sets the
48 * default signal handlers. 50 * default signal handlers.
49 * 51 *
228 gpointer user_data); 230 gpointer user_data);
229 231
230 /** 232 /**
231 * Creates a drop-down option menu filled with accounts. 233 * Creates a drop-down option menu filled with accounts.
232 * 234 *
233 * @param default_account The account to select by default. 235 * @param default_account The account to select by default.
234 * @param show_all Whether or not to show all accounts, or just active 236 * @param show_all Whether or not to show all accounts, or just
235 * accounts. 237 * active accounts.
236 * @param cb The callback to call when an account is selected. 238 * @param cb The callback to call when an account is selected.
237 * @param user_data Data to pass to the callback function. 239 * @param check_account_func A function for checking if an account should
240 * be shown. This can be NULL.
241 * @param user_data Data to pass to the callback function.
238 * 242 *
239 * @return The drop-down option menu. 243 * @return The drop-down option menu.
240 */ 244 */
241 GtkWidget *gaim_gtk_account_option_menu_new(GaimAccount *default_account, 245 GtkWidget *gaim_gtk_account_option_menu_new(GaimAccount *default_account,
242 gboolean show_all, GCallback cb, 246 gboolean show_all, GCallback cb,
243 gpointer user_data); 247 GaimCheckAccountFunc check_account_func, gpointer user_data);
244 248
245 /** 249 /**
246 * Check if the given path is a directory or not. If it is, then modify 250 * Check if the given path is a directory or not. If it is, then modify
247 * the given GtkFileSelection dialog so that it displays the given path. 251 * the given GtkFileSelection dialog so that it displays the given path.
248 * If the given path is not a directory, then do nothing. 252 * If the given path is not a directory, then do nothing.
249 * 253 *
250 * @param path The path entered in the file selection window by the user. 254 * @param path The path entered in the file selection window by the user.
251 * @param filesel The file selection window. 255 * @param filesel The file selection window.
271 /** 275 /**
272 * Shows the usage options for the gaim binary. 276 * Shows the usage options for the gaim binary.
273 * 277 *
274 * @param mode @c 0 for full options, or @c 1 for a short summary. 278 * @param mode @c 0 for full options, or @c 1 for a short summary.
275 * @param name The name of the binary. 279 * @param name The name of the binary.
276 * 280 *
277 * @todo Move this to the binary, when a library is formed. 281 * @todo Move this to the binary, when a library is formed.
278 */ 282 */
279 void show_usage(int mode, const char *name); 283 void show_usage(int mode, const char *name);
280 284
281 #endif /* _GAIM_GTK_UTILS_H_ */ 285 #endif /* _GAIM_GTK_UTILS_H_ */