comparison src/gtkblist.c @ 13030:d09b19783b8d

[gaim-migrate @ 15383] Get rid of two compile warnings. Is this ugly? committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 24 Jan 2006 04:48:49 +0000
parents e8adf8183cf4
children 615c84e94745
comparison
equal deleted inserted replaced
13029:a793170f588c 13030:d09b19783b8d
3516 scale = gdk_pixbuf_scale_simple(pixbuf, 10, 10, 3516 scale = gdk_pixbuf_scale_simple(pixbuf, 10, 10,
3517 GDK_INTERP_BILINEAR); 3517 GDK_INTERP_BILINEAR);
3518 g_object_unref(pixbuf); 3518 g_object_unref(pixbuf);
3519 emblem = scale; 3519 emblem = scale;
3520 scale = NULL; 3520 scale = NULL;
3521 } 3521
3522 3522 pixbuf = gaim_gtk_create_prpl_icon(account);
3523 pixbuf = gaim_gtk_create_prpl_icon(account); 3523 if (pixbuf != NULL) {
3524 if (pixbuf != NULL) { 3524 scale = gdk_pixbuf_scale_simple(pixbuf, 16, 16,
3525 scale = gdk_pixbuf_scale_simple(pixbuf, 16, 16,
3526 GDK_INTERP_BILINEAR); 3525 GDK_INTERP_BILINEAR);
3527 gdk_pixbuf_saturate_and_pixelate(scale, scale, 0.0, FALSE); 3526 gdk_pixbuf_saturate_and_pixelate(scale, scale, 0.0, FALSE);
3528 g_object_unref(G_OBJECT(pixbuf)); 3527 g_object_unref(G_OBJECT(pixbuf));
3529 } 3528
3530 3529 gdk_pixbuf_composite(emblem, scale, 6, 6, 10, 10, 6, 6, 1, 1,
3531 gdk_pixbuf_composite(emblem, scale, 6, 6, 10, 10, 6, 6, 1, 1, 3530 GDK_INTERP_BILINEAR, 255);
3532 GDK_INTERP_BILINEAR, 255); 3531 g_object_unref(emblem);
3533 g_object_unref(emblem); 3532
3534 image = gtk_image_new_from_pixbuf(scale); 3533 emblem = scale;
3535 g_object_unref(scale); 3534 }
3536 gtk_widget_show(image); 3535
3537 gtk_box_pack_start(GTK_BOX(hbox), image, FALSE, FALSE, 3536 image = gtk_image_new_from_pixbuf(emblem);
3538 GAIM_HIG_BOX_SPACE); 3537 g_object_unref(emblem);
3538
3539 gtk_widget_show(image);
3540 gtk_box_pack_start(GTK_BOX(hbox), image, FALSE, FALSE,
3541 GAIM_HIG_BOX_SPACE);
3542 }
3539 3543
3540 label = gtk_label_new(""); 3544 label = gtk_label_new("");
3541 gtk_label_set_markup(GTK_LABEL(label), text); 3545 gtk_label_set_markup(GTK_LABEL(label), text);
3542 g_free(text); 3546 g_free(text);
3543 #if GTK_CHECK_VERSION(2,6,0) 3547 #if GTK_CHECK_VERSION(2,6,0)