comparison src/gtkaccount.c @ 9699:267eab8f3fa4

[gaim-migrate @ 10558] Add a password hint to the "Enter password" dialog. Also added a gaim_account_get_protocol_name() to account.c/.h This change sponsored in part by Daniel Atallah, Jon Oberheide, Mark Doliner, the National Science Foundation, and by viewers like you. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 07 Aug 2004 15:04:15 +0000
parents cedb8474b255
children 5c6f4f0acb8b
comparison
equal deleted inserted replaced
9698:bd5abccacff2 9699:267eab8f3fa4
158 static void add_account(AccountsWindow *dialog, GaimAccount *account); 158 static void add_account(AccountsWindow *dialog, GaimAccount *account);
159 static void set_account(GtkListStore *store, GtkTreeIter *iter, 159 static void set_account(GtkListStore *store, GtkTreeIter *iter,
160 GaimAccount *account); 160 GaimAccount *account);
161 static char* 161 static char*
162 convert_buddy_icon(GaimAccount *account, const char *path); 162 convert_buddy_icon(GaimAccount *account, const char *path);
163
164 static char *
165 proto_name(const char *id)
166 {
167 GaimPlugin *p = gaim_find_prpl(id);
168
169 return ((p && p->info->name) ? _(p->info->name) : _("Unknown"));
170 }
171 163
172 /************************************************************************** 164 /**************************************************************************
173 * Add/Modify Account dialog 165 * Add/Modify Account dialog
174 **************************************************************************/ 166 **************************************************************************/
175 static void add_login_options(AccountPrefsDialog *dialog, GtkWidget *parent); 167 static void add_login_options(AccountPrefsDialog *dialog, GtkWidget *parent);
2191 gtk_list_store_set(store, iter, 2183 gtk_list_store_set(store, iter,
2192 COLUMN_ICON, scale, 2184 COLUMN_ICON, scale,
2193 COLUMN_SCREENNAME, gaim_account_get_username(account), 2185 COLUMN_SCREENNAME, gaim_account_get_username(account),
2194 COLUMN_ONLINE, gaim_account_is_connected(account), 2186 COLUMN_ONLINE, gaim_account_is_connected(account),
2195 COLUMN_AUTOLOGIN, gaim_account_get_auto_login(account, GAIM_GTK_UI), 2187 COLUMN_AUTOLOGIN, gaim_account_get_auto_login(account, GAIM_GTK_UI),
2196 COLUMN_PROTOCOL, proto_name(gaim_account_get_protocol_id(account)), 2188 COLUMN_PROTOCOL, gaim_account_get_protocol_name(account),
2197 COLUMN_DATA, account, 2189 COLUMN_DATA, account,
2198 -1); 2190 -1);
2199 2191
2200 if (pixbuf != NULL) g_object_unref(G_OBJECT(pixbuf)); 2192 if (pixbuf != NULL) g_object_unref(G_OBJECT(pixbuf));
2201 if (scale != NULL) g_object_unref(G_OBJECT(scale)); 2193 if (scale != NULL) g_object_unref(G_OBJECT(scale));