comparison pidgin/gtkblist.c @ 21077:488796f5ba33

propagate from branch 'im.pidgin.pidgin' (head 4d50bf3b08569aa2108a9f5da47fb1548d0c7dd9) to branch 'org.maemo.garage.pidgin.pidgin.dialog-transience' (head 2de97b7c8c13f4714a53d342a4dc68ecd8fc2248)
author Gabriel Schulhof <nix@go-nix.ca>
date Tue, 09 Oct 2007 18:01:51 +0000
parents b84655373d7b 58b9a33968e1
children 96612191ded8 8c9aad9479c0
comparison
equal deleted inserted replaced
21076:b84655373d7b 21077:488796f5ba33
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 }
5547 NAME_COLUMN, mark, 5548 NAME_COLUMN, mark,
5548 GROUP_EXPANDER_VISIBLE_COLUMN, FALSE, 5549 GROUP_EXPANDER_VISIBLE_COLUMN, FALSE,
5549 -1); 5550 -1);
5550 5551
5551 g_free(mark); 5552 g_free(mark);
5553 if(emblem)
5554 g_object_unref(emblem);
5552 if(status) 5555 if(status)
5553 g_object_unref(status); 5556 g_object_unref(status);
5554 if(avatar) 5557 if(avatar)
5555 g_object_unref(avatar); 5558 g_object_unref(avatar);
5556 } else { 5559 } else {