Mercurial > pidgin.yaz
diff pidgin/gtkblist.c @ 32321:67f8717477ea
Remove some deprecated stuff
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 21 Aug 2011 02:11:02 +0000 |
parents | 4bdf4e5e6d67 |
children | 9aee8493db7f 3322201b446f |
line wrap: on
line diff
--- a/pidgin/gtkblist.c Sun Aug 21 01:59:13 2011 +0000 +++ b/pidgin/gtkblist.c Sun Aug 21 02:11:02 2011 +0000 @@ -5343,6 +5343,28 @@ } +/** + * Was used by the connection API to tell the blist if an account has a + * connection error or no longer has a connection error, but the blist now does + * this itself with the @ref account-error-changed signal. + * + * @param account The account that either has a connection error + * or no longer has a connection error. + * @param message The connection error message, or NULL if this + * account is no longer in an error state. + */ +static void +pidgin_blist_update_account_error_state(PurpleAccount *account, const char *text) +{ + /* connection_errors isn't actually used anywhere; it's just kept in + * sync with reality in case a plugin uses it. + */ + if (text == NULL) + g_hash_table_remove(gtkblist->connection_errors, account); + else + g_hash_table_insert(gtkblist->connection_errors, account, g_strdup(text)); +} + /* Call appropriate error notification code based on error types */ static void update_account_error_state(PurpleAccount *account, @@ -5427,18 +5449,6 @@ } } -void -pidgin_blist_update_account_error_state(PurpleAccount *account, const char *text) -{ - /* connection_errors isn't actually used anywhere; it's just kept in - * sync with reality in case a plugin uses it. - */ - if (text == NULL) - g_hash_table_remove(gtkblist->connection_errors, account); - else - g_hash_table_insert(gtkblist->connection_errors, account, g_strdup(text)); -} - static gboolean paint_headline_hbox (GtkWidget *widget, GdkEventExpose *event,