# HG changeset patch # User Stu Tomlinson # Date 1159584509 0 # Node ID b7b5ff9c04a1378dc77b26eba11db7c23ebf5f8d # Parent 38d1052611bc77e49e53587fb4a047a7f5d6c4a2 [gaim-migrate @ 17404] Make things "go" with gtk 2.0. hopefully all those still using 2.0 dont't really care all that much for graphics and stuff as they're probably quite old now. committer: Tailor Script diff -r 38d1052611bc -r b7b5ff9c04a1 gtk/gtkutils.c --- a/gtk/gtkutils.c Sat Sep 30 02:44:03 2006 +0000 +++ b/gtk/gtkutils.c Sat Sep 30 02:48:29 2006 +0000 @@ -2458,13 +2458,13 @@ char * gaim_gtk_convert_buddy_icon(GaimPlugin *plugin, const char *path) { + GaimPluginProtocolInfo *prpl_info; + char **prpl_formats; #if GTK_CHECK_VERSION(2,2,0) int width, height; char **pixbuf_formats = NULL; GdkPixbufFormat *format; GdkPixbuf *pixbuf; - GaimPluginProtocolInfo *prpl_info; - char **prpl_formats; #if !GTK_CHECK_VERSION(2,4,0) GdkPixbufLoader *loader; FILE *file; @@ -2694,7 +2694,12 @@ height = info->height; } +#if GTK_CHECK_VERSION(2,2,0) /* 2.0 users are going to have very strangely sized things */ gdk_pixbuf_loader_set_size (loader, width, height); +#else +#warning nosnilmot could not be bothered to fix this properly for you +#warning ... good luck ... your images may end up strange sizes +#endif } GdkPixbuf *