Mercurial > pidgin.yaz
changeset 14658:b7b5ff9c04a1
[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 <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sat, 30 Sep 2006 02:48:29 +0000 |
parents | 38d1052611bc |
children | 897d2d09787e |
files | gtk/gtkutils.c |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 *