Mercurial > pidgin.yaz
diff gtk/gtkutils.h @ 14228:c18bdf510325
[gaim-migrate @ 16910]
Fix autogen.sh to run glib-gettextize
Fix CFLAGS when gstreamer is not installed
Make things work with gtk < 2.6, in part by borrowing some code from gdk
Don't link gntgaim with gstreamer, xss or sm
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sun, 20 Aug 2006 17:49:58 +0000 |
parents | 009db0b357b5 |
children | cf25420b074d |
line wrap: on
line diff
--- a/gtk/gtkutils.h Sun Aug 20 17:34:21 2006 +0000 +++ b/gtk/gtkutils.h Sun Aug 20 17:49:58 2006 +0000 @@ -479,4 +479,15 @@ */ char* gaim_gtk_convert_buddy_icon(GaimPlugin *plugin, const char *path); +#if !GTK_CHECK_VERSION(2,6,0) +/** + * Creates a new pixbuf by loading an image from a file. The image will + * be scaled to fit in the requested size, optionally preserving the image's + * aspect ratio. + */ +GdkPixbuf *gdk_pixbuf_new_from_file_at_scale(const char *filename, int width, int height, + gboolean preserve_aspect_ratio, + GError **error); +#endif + #endif /* _GAIM_GTKUTILS_H_ */