# HG changeset patch # User Jason Rumney <jasonr@gnu.org> # Date 1230898206 0 # Node ID dd451a5b1d7798525e96a3531bbbbd11236757ca # Parent aa7072ec5fe24d1566a54cedee598e89aecb8797 (Qgobject): New symbol. (syms_of_image): Initialize it. (init_svg_functions): Load some functions from gobject library. diff -r aa7072ec5fe2 -r dd451a5b1d77 src/ChangeLog --- a/src/ChangeLog Thu Jan 01 19:58:00 2009 +0000 +++ b/src/ChangeLog Fri Jan 02 12:10:06 2009 +0000 @@ -1,3 +1,9 @@ +2009-01-02 Jason Rumney <jasonr@gnu.org> + + * image.c: (Qgobject): New symbol. + (syms_of_image): Initialize it. + (init_svg_functions): Load some functions from gobject library. + 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu> * frame.c (make_terminal_frame): Remove redundant code and useless diff -r aa7072ec5fe2 -r dd451a5b1d77 src/image.c --- a/src/image.c Thu Jan 01 19:58:00 2009 +0000 +++ b/src/image.c Fri Jan 02 12:10:06 2009 +0000 @@ -7898,14 +7898,15 @@ DEF_IMGLIB_FN (g_object_unref); DEF_IMGLIB_FN (g_error_free); -Lisp_Object Qgdk_pixbuf, Qglib; +Lisp_Object Qgdk_pixbuf, Qglib, Qgobject; static int init_svg_functions (Lisp_Object libraries) { - HMODULE library, gdklib, glib; + HMODULE library, gdklib, glib, gobject; if (!(glib = w32_delayed_load (libraries, Qglib)) + || !(gobject = w32_delayed_load (libraries, Qgobject)) || !(gdklib = w32_delayed_load (libraries, Qgdk_pixbuf)) || !(library = w32_delayed_load (libraries, Qsvg))) return 0; @@ -7926,9 +7927,10 @@ LOAD_IMGLIB_FN (gdklib, gdk_pixbuf_get_has_alpha); LOAD_IMGLIB_FN (gdklib, gdk_pixbuf_get_bits_per_sample); - LOAD_IMGLIB_FN (glib, g_type_init); - LOAD_IMGLIB_FN (glib, g_object_unref); + LOAD_IMGLIB_FN (gobject, g_type_init); + LOAD_IMGLIB_FN (gobject, g_object_unref); LOAD_IMGLIB_FN (glib, g_error_free); + return 1; } @@ -8742,10 +8744,13 @@ staticpro (&Qsvg); ADD_IMAGE_TYPE (Qsvg); #ifdef HAVE_NTGUI + /* Other libraries used directly by svg code. */ Qgdk_pixbuf = intern ("gdk-pixbuf"); staticpro (&Qgdk_pixbuf); Qglib = intern ("glib"); staticpro (&Qglib); + Qgobject = intern ("gobject"); + staticpro (&Qgobject); #endif /* HAVE_NTGUI */ #endif /* HAVE_RSVG */