src/gtkaccount.c

changeset 9699
d1ca5dd91cc2
parent 9662
c8c09944d2e6
child 9702
0f48043c9e04
equal deleted inserted replaced
9698:d83c7c4b0ccc 9699:d1ca5dd91cc2
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));

mercurial