# HG changeset patch # User Nathan Walp # Date 1049508913 0 # Node ID a17a8489558544d8b1738a545a0a0154d41ed204 # Parent 74dd2e4ed0c1bece852ce9009f6dd647b3aade4d [gaim-migrate @ 5351] someone let me know if this makes things ok for gtk 2.0.x committer: Tailor Script diff -r 74dd2e4ed0c1 -r a17a84895585 src/gtkimhtml.c --- 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);