Mercurial > pidgin.yaz
view finch/Makefile.am @ 32138:e2c6e4fc3c84
Start looking at the GError parameter every time we call these functions:
- gdk_pixbuf_loader_write
- gdk_pixbuf_loader_close
- gdk_pixbuf_new_from_file
- gdk_pixbuf_new_from_file_at_size
- gdk_pixbuf_new_from_file_at_scale
There are times when gdkpixbuf returns a semi-invalid GdkPixbuf object and
also sets the GError. If this happens we want to discard and ignore the
GdkPixbuf object because it can cause problems. For example, calling
gdk_pixbuf_scale_simple() causes gdkpixbuf to rapidly consume memory in
an infinite loop. And that's bad.
This commit adds some helper functions to gtkutils.[c|h] that make it a
little easier to check the GError value. We should use them everywhere
we call any of the above functions.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 22 Jun 2011 07:07:28 +0000 |
parents | 77423ba51dd4 |
children |
line wrap: on
line source
EXTRA_DIST = \ getopt.c \ getopt.h \ getopt1.c \ finch.pc.in pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = finch.pc SUBDIRS = libgnt plugins if ENABLE_GNT bin_PROGRAMS = finch endif finch_SOURCES = \ gntaccount.c \ gntblist.c \ gntcertmgr.c \ gntconn.c \ gntconv.c \ gntdebug.c \ gntft.c \ finch.c \ gntidle.c \ gntlog.c \ gntmedia.c \ gntnotify.c \ gntplugin.c \ gntpounce.c \ gntprefs.c \ gntrequest.c \ gntroomlist.c \ gntsound.c \ gntstatus.c \ gntui.c finch_headers = \ gntaccount.h \ gntblist.h \ gntcertmgr.h \ gntconn.h \ gntconv.h \ gntdebug.h \ gntft.h \ finch.h \ gntidle.h \ gntlog.h \ gntmedia.h \ gntnotify.h \ gntplugin.h \ gntpounce.h \ gntprefs.h \ gntrequest.h \ gntroomlist.h \ gntsound.h \ gntstatus.h \ gntui.h finchincludedir=$(includedir)/finch finchinclude_HEADERS = \ $(finch_headers) finch_DEPENDENCIES = @LIBOBJS@ finch_LDFLAGS = -export-dynamic finch_LDADD = \ @LIBOBJS@ \ $(DBUS_LIBS) \ $(INTLLIBS) \ $(GLIB_LIBS) \ $(LIBXML_LIBS) \ $(GNT_LIBS) \ $(GSTREAMER_LIBS) \ ./libgnt/libgnt.la \ $(top_builddir)/libpurple/libpurple.la AM_CPPFLAGS = \ -DSTANDALONE \ -DDATADIR=\"$(datadir)\" \ -DLIBDIR=\"$(libdir)/finch/\" \ -DLOCALEDIR=\"$(datadir)/locale\" \ -DSYSCONFDIR=\"$(sysconfdir)\" \ -I$(top_srcdir)/libpurple/ \ -I$(top_srcdir) \ -I$(srcdir)/libgnt/ \ $(DEBUG_CFLAGS) \ $(GLIB_CFLAGS) \ $(DBUS_CFLAGS) \ $(LIBXML_CFLAGS) \ $(GSTREAMER_CFLAGS) \ $(GNT_CFLAGS)