| 4345 static void |
4345 static void |
| 4346 create_connection_error_buttons(gpointer key, gpointer value, |
4346 create_connection_error_buttons(gpointer key, gpointer value, |
| 4347 gpointer user_data) |
4347 gpointer user_data) |
| 4348 { |
4348 { |
| 4349 PurpleAccount *account; |
4349 PurpleAccount *account; |
| 4350 PurpleStatusType *status_type; |
|
| 4351 gchar *escaped, *text; |
4350 gchar *escaped, *text; |
| 4352 GtkWidget *button, *label, *image, *hbox; |
4351 GtkWidget *button, *label, *image, *hbox; |
| 4353 GdkPixbuf *pixbuf; |
4352 GdkPixbuf *pixbuf; |
| 4354 |
4353 |
| 4355 account = key; |
4354 account = key; |
| 4360 g_free(escaped); |
4359 g_free(escaped); |
| 4361 |
4360 |
| 4362 hbox = gtk_hbox_new(FALSE, 6); |
4361 hbox = gtk_hbox_new(FALSE, 6); |
| 4363 |
4362 |
| 4364 /* Create the icon */ |
4363 /* Create the icon */ |
| 4365 if ((status_type = purple_account_get_status_type_with_primitive(account, |
4364 if (purple_account_get_status_type_with_primitive(account, |
| 4366 PURPLE_STATUS_OFFLINE))) { |
4365 PURPLE_STATUS_OFFLINE) != NULL) { |
| 4367 pixbuf = pidgin_create_prpl_icon(account, PIDGIN_PRPL_ICON_SMALL); |
4366 pixbuf = pidgin_create_prpl_icon(account, PIDGIN_PRPL_ICON_SMALL); |
| 4368 if (pixbuf != NULL) { |
4367 if (pixbuf != NULL) { |
| 4369 image = gtk_image_new_from_pixbuf(pixbuf); |
4368 image = gtk_image_new_from_pixbuf(pixbuf); |
| 4370 g_object_unref(pixbuf); |
4369 g_object_unref(pixbuf); |
| 4371 |
4370 |
| 5365 IDLE_COLUMN, idle, |
5364 IDLE_COLUMN, idle, |
| 5366 IDLE_VISIBLE_COLUMN, !biglist && idle, |
5365 IDLE_VISIBLE_COLUMN, !biglist && idle, |
| 5367 BUDDY_ICON_COLUMN, avatar, |
5366 BUDDY_ICON_COLUMN, avatar, |
| 5368 BUDDY_ICON_VISIBLE_COLUMN, biglist, |
5367 BUDDY_ICON_VISIBLE_COLUMN, biglist, |
| 5369 EMBLEM_COLUMN, emblem, |
5368 EMBLEM_COLUMN, emblem, |
| 5370 EMBLEM_VISIBLE_COLUMN, emblem, |
5369 EMBLEM_VISIBLE_COLUMN, (emblem != NULL), |
| 5371 PROTOCOL_ICON_COLUMN, pidgin_create_prpl_icon(buddy->account, PIDGIN_PRPL_ICON_SMALL), |
5370 PROTOCOL_ICON_COLUMN, pidgin_create_prpl_icon(buddy->account, PIDGIN_PRPL_ICON_SMALL), |
| 5372 PROTOCOL_ICON_VISIBLE_COLUMN, purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/blist/show_protocol_icons"), |
5371 PROTOCOL_ICON_VISIBLE_COLUMN, purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/blist/show_protocol_icons"), |
| 5373 BGCOLOR_COLUMN, NULL, |
5372 BGCOLOR_COLUMN, NULL, |
| 5374 CONTACT_EXPANDER_COLUMN, NULL, |
5373 CONTACT_EXPANDER_COLUMN, NULL, |
| 5375 CONTACT_EXPANDER_VISIBLE_COLUMN, expanded, |
5374 CONTACT_EXPANDER_VISIBLE_COLUMN, expanded, |
| 5376 GROUP_EXPANDER_VISIBLE_COLUMN, FALSE, |
5375 GROUP_EXPANDER_VISIBLE_COLUMN, FALSE, |
| 5377 -1); |
5376 -1); |
| 5378 |
5377 |
| 5379 g_free(mark); |
5378 g_free(mark); |
| 5380 g_free(idle); |
5379 g_free(idle); |
| |
5380 if(emblem) |
| |
5381 g_object_unref(emblem); |
| 5381 if(status) |
5382 if(status) |
| 5382 g_object_unref(status); |
5383 g_object_unref(status); |
| 5383 if(avatar) |
5384 if(avatar) |
| 5384 g_object_unref(avatar); |
5385 g_object_unref(avatar); |
| 5385 } |
5386 } |