From: <nos...@us...> - 2006-09-30 02:48:35
|
Revision: 17404 http://svn.sourceforge.net/gaim/?rev=17404&view=rev Author: nosnilmot Date: 2006-09-29 19:48:29 -0700 (Fri, 29 Sep 2006) Log Message: ----------- 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. Modified Paths: -------------- trunk/gtk/gtkutils.c Modified: trunk/gtk/gtkutils.c =================================================================== --- trunk/gtk/gtkutils.c 2006-09-30 02:44:03 UTC (rev 17403) +++ trunk/gtk/gtkutils.c 2006-09-30 02:48:29 UTC (rev 17404) @@ -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 * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |