aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney2009-01-02 12:10:06 +0000
committerJason Rumney2009-01-02 12:10:06 +0000
commitdf23bf081e91b7fdc188124b286b9698e5816b61 (patch)
treed53ee8640c4ccefb6570246a497e91131ea08466 /src
parent5bbdf7aab531a1027644aaed452a0cb6a068917a (diff)
downloademacs-df23bf081e91b7fdc188124b286b9698e5816b61.tar.gz
emacs-df23bf081e91b7fdc188124b286b9698e5816b61.zip
(Qgobject): New symbol.
(syms_of_image): Initialize it. (init_svg_functions): Load some functions from gobject library.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/image.c13
2 files changed, 15 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 9008d580c33..aecb28d3dd2 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12009-01-02 Jason Rumney <jasonr@gnu.org>
2
3 * image.c: (Qgobject): New symbol.
4 (syms_of_image): Initialize it.
5 (init_svg_functions): Load some functions from gobject library.
6
12009-01-01 Dan Nicolaescu <dann@ics.uci.edu> 72009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
2 8
3 * frame.c (make_terminal_frame): Remove redundant code and useless 9 * frame.c (make_terminal_frame): Remove redundant code and useless
diff --git a/src/image.c b/src/image.c
index 6701637f951..827e35d7b7a 100644
--- a/src/image.c
+++ b/src/image.c
@@ -7898,14 +7898,15 @@ DEF_IMGLIB_FN (g_type_init);
7898DEF_IMGLIB_FN (g_object_unref); 7898DEF_IMGLIB_FN (g_object_unref);
7899DEF_IMGLIB_FN (g_error_free); 7899DEF_IMGLIB_FN (g_error_free);
7900 7900
7901Lisp_Object Qgdk_pixbuf, Qglib; 7901Lisp_Object Qgdk_pixbuf, Qglib, Qgobject;
7902 7902
7903static int 7903static int
7904init_svg_functions (Lisp_Object libraries) 7904init_svg_functions (Lisp_Object libraries)
7905{ 7905{
7906 HMODULE library, gdklib, glib; 7906 HMODULE library, gdklib, glib, gobject;
7907 7907
7908 if (!(glib = w32_delayed_load (libraries, Qglib)) 7908 if (!(glib = w32_delayed_load (libraries, Qglib))
7909 || !(gobject = w32_delayed_load (libraries, Qgobject))
7909 || !(gdklib = w32_delayed_load (libraries, Qgdk_pixbuf)) 7910 || !(gdklib = w32_delayed_load (libraries, Qgdk_pixbuf))
7910 || !(library = w32_delayed_load (libraries, Qsvg))) 7911 || !(library = w32_delayed_load (libraries, Qsvg)))
7911 return 0; 7912 return 0;
@@ -7926,9 +7927,10 @@ init_svg_functions (Lisp_Object libraries)
7926 LOAD_IMGLIB_FN (gdklib, gdk_pixbuf_get_has_alpha); 7927 LOAD_IMGLIB_FN (gdklib, gdk_pixbuf_get_has_alpha);
7927 LOAD_IMGLIB_FN (gdklib, gdk_pixbuf_get_bits_per_sample); 7928 LOAD_IMGLIB_FN (gdklib, gdk_pixbuf_get_bits_per_sample);
7928 7929
7929 LOAD_IMGLIB_FN (glib, g_type_init); 7930 LOAD_IMGLIB_FN (gobject, g_type_init);
7930 LOAD_IMGLIB_FN (glib, g_object_unref); 7931 LOAD_IMGLIB_FN (gobject, g_object_unref);
7931 LOAD_IMGLIB_FN (glib, g_error_free); 7932 LOAD_IMGLIB_FN (glib, g_error_free);
7933
7932 return 1; 7934 return 1;
7933} 7935}
7934 7936
@@ -8742,10 +8744,13 @@ non-numeric, there is no explicit limit on the size of images. */);
8742 staticpro (&Qsvg); 8744 staticpro (&Qsvg);
8743 ADD_IMAGE_TYPE (Qsvg); 8745 ADD_IMAGE_TYPE (Qsvg);
8744#ifdef HAVE_NTGUI 8746#ifdef HAVE_NTGUI
8747 /* Other libraries used directly by svg code. */
8745 Qgdk_pixbuf = intern ("gdk-pixbuf"); 8748 Qgdk_pixbuf = intern ("gdk-pixbuf");
8746 staticpro (&Qgdk_pixbuf); 8749 staticpro (&Qgdk_pixbuf);
8747 Qglib = intern ("glib"); 8750 Qglib = intern ("glib");
8748 staticpro (&Qglib); 8751 staticpro (&Qglib);
8752 Qgobject = intern ("gobject");
8753 staticpro (&Qgobject);
8749#endif /* HAVE_NTGUI */ 8754#endif /* HAVE_NTGUI */
8750#endif /* HAVE_RSVG */ 8755#endif /* HAVE_RSVG */
8751 8756