changeset 5015:a17a84895585

[gaim-migrate @ 5351] someone let me know if this makes things ok for gtk 2.0.x committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sat, 05 Apr 2003 02:15:13 +0000
parents 74dd2e4ed0c1
children ae7760945ef2
files src/gtkimhtml.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkimhtml.c	Sat Apr 05 02:02:37 2003 +0000
+++ b/src/gtkimhtml.c	Sat Apr 05 02:15:13 2003 +0000
@@ -1533,6 +1533,7 @@
 	const gchar *filename = gtk_file_selection_get_filename(sel);
 	gaim_im_image *image = g_object_get_data(G_OBJECT(sel), "gaim_im_image");
 	gchar *type = NULL;
+#if GTK_CHECK_VERSION(2,2,0)
 	GSList *formats = gdk_pixbuf_get_formats();
 	GError *error = NULL;
 
@@ -1568,6 +1569,9 @@
 						_("Gaim was unable to guess the image type base on the file extension supplied.  Defaulting to PNG."));
 		type = g_strdup("png");
 	}
+#else
+	type = g_strdup("png");
+#endif
 
 	gdk_pixbuf_save(gtk_image_get_pixbuf(image->image), filename, type, &error, NULL);