Mercurial > pidgin
diff src/gtkaccount.h @ 6119:0d2bd49c611e
[gaim-migrate @ 6588]
Changed the API a bit for the Accounts window, and exposed the API to
display an account editor dialog from outside gtkaccount.c.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Mon, 14 Jul 2003 10:04:27 +0000 |
parents | 9eb5b13fd412 |
children | 0a6f70c020ed |
line wrap: on
line diff
--- a/src/gtkaccount.h Mon Jul 14 06:11:31 2003 +0000 +++ b/src/gtkaccount.h Mon Jul 14 10:04:27 2003 +0000 @@ -23,15 +23,32 @@ #ifndef _GAIM_GTK_ACCOUNT_H_ #define _GAIM_GTK_ACCOUNT_H_ -/** - * Shows the account editor dialog. - */ -void gaim_gtk_account_dialog_show(void); +typedef enum +{ + GAIM_GTK_ADD_ACCOUNT_DIALOG, + GAIM_GTK_MODIFY_ACCOUNT_DIALOG + +} GaimGtkAccountDialogType; + /** - * Hides the account editor dialog. + * Shows the accounts window. + */ +void gaim_gtk_accounts_window_show(void); + +/** + * Hides the accounts window. */ -void gaim_gtk_account_dialog_hide(void); +void gaim_gtk_accounts_window_hide(void); + +/** + * Shows an add/modify account dialog. + * + * @param type The type of dialog. + * @param account The associated account, or @c NULL for an Add dialog. + */ +void gaim_gtk_account_dialog_show(GaimGtkAccountDialogType type, + GaimAccount *account); #endif /* _GAIM_GTK_ACCOUNT_H_ */