changeset 2767:e5e78d42e49e

[gaim-migrate @ 2780] hi. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 19 Nov 2001 15:25:36 +0000
parents 0e082a9e4c32
children 8a918df1a5ed
files src/conversation.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/conversation.c	Mon Nov 19 13:50:34 2001 +0000
+++ b/src/conversation.c	Mon Nov 19 15:25:36 2001 +0000
@@ -2775,7 +2775,7 @@
 		gtk_signal_connect(GTK_OBJECT(button), "activate", GTK_SIGNAL_FUNC(stop_anim), c);
 		gtk_menu_append(GTK_MENU(menu), button);
 		gtk_widget_show(button);
-	} else if (c->anim) {
+	} else if (c->anim && (gdk_pixbuf_animation_get_num_frames(c->anim) > 1)) {
 		button = gtk_menu_item_new_with_label(_("Enable Animation"));
 		gtk_signal_connect(GTK_OBJECT(button), "activate", GTK_SIGNAL_FUNC(start_anim), c);
 		gtk_menu_append(GTK_MENU(menu), button);