pidgin/gtkstatusbox.c

changeset 38277
061e91dd78d4
parent 38004
2a9e87b2a89c
child 38285
72824d3b7190
equal deleted inserted replaced
38070:4663f9da17aa 38277:061e91dd78d4
410 { 410 {
411 const char *filename = purple_prefs_get_path(PIDGIN_PREFS_ROOT "/accounts/buddyicon"); 411 const char *filename = purple_prefs_get_path(PIDGIN_PREFS_ROOT "/accounts/buddyicon");
412 PurpleImage *img = NULL; 412 PurpleImage *img = NULL;
413 413
414 if (filename && *filename) 414 if (filename && *filename)
415 img = purple_image_new_from_file(filename, TRUE); 415 img = purple_image_new_from_file(filename);
416 416
417 pidgin_status_box_set_buddy_icon(status_box, img); 417 pidgin_status_box_set_buddy_icon(status_box, img);
418 if (img) 418 if (img)
419 g_object_unref(img); 419 g_object_unref(img);
420 } 420 }
1448 } 1448 }
1449 } 1449 }
1450 1450
1451 /* Even if no accounts were processed, load the icon that was set. */ 1451 /* Even if no accounts were processed, load the icon that was set. */
1452 if (filename != NULL) 1452 if (filename != NULL)
1453 img = purple_image_new_from_file(filename, TRUE); 1453 img = purple_image_new_from_file(filename);
1454 } 1454 }
1455 1455
1456 pidgin_status_box_set_buddy_icon(box, img); 1456 pidgin_status_box_set_buddy_icon(box, img);
1457 if (img) 1457 if (img)
1458 g_object_unref(img); 1458 g_object_unref(img);

mercurial