Mercurial > pidgin.yaz
changeset 1922:07ceb54dc96a
[gaim-migrate @ 1932]
this should fix resize woes
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 30 May 2001 23:25:32 +0000 |
parents | a84a41ecf380 |
children | e1e0dcfb2fdd |
files | src/oscar.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/oscar.c Wed May 30 22:19:39 2001 +0000 +++ b/src/oscar.c Wed May 30 23:25:32 2001 +0000 @@ -1806,6 +1806,9 @@ ir->pix = gtk_pixmap_new(pm, bm); gtk_box_pack_start(GTK_BOX(c->bbox), ir->pix, FALSE, FALSE, 5); + if (ir->anim && (gdk_pixbuf_animation_get_num_frames(ir->anim) > 1)) + gtk_widget_set_usize(ir->pix, gdk_pixbuf_animation_get_width(ir->anim), + gdk_pixbuf_animation_get_height(ir->anim)); gtk_widget_show(ir->pix); gdk_pixbuf_loader_close(load); @@ -3197,6 +3200,9 @@ ir->pix = gtk_pixmap_new(pm, bm); gtk_box_pack_start(GTK_BOX(c->bbox), ir->pix, FALSE, FALSE, 5); + if (ir->anim && (gdk_pixbuf_animation_get_num_frames(ir->anim) > 1)) + gtk_widget_set_usize(ir->pix, gdk_pixbuf_animation_get_width(ir->anim), + gdk_pixbuf_animation_get_height(ir->anim)); gtk_widget_show(ir->pix); gdk_pixbuf_loader_close(load);