mirror of
https://gitlab.gnome.org/GNOME/evince
synced 2024-06-30 22:54:23 +00:00
libdocument: Load application-specific gdk-pixbuf loaders
Use a new gdk-pixbuf feature to integrate application-provided gdk-pixbuf loaders. This makes it easy to include non-standard loaders without touching the system installation. See https://gitlab.gnome.org/GNOME/gdk-pixbuf/merge_requests/34
This commit is contained in:
parent
b27189bb3c
commit
af53ba23d3
|
@ -114,6 +114,7 @@ ev_init (void)
|
|||
bindtextdomain (GETTEXT_PACKAGE, ev_get_locale_dir ());
|
||||
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
||||
|
||||
gdk_pixbuf_init_modules (EXTRA_GDK_PIXBUF_LOADERS_DIR, NULL);
|
||||
_ev_debug_init ();
|
||||
_ev_file_helpers_init ();
|
||||
have_backends = _ev_document_factory_init ();
|
||||
|
|
|
@ -147,7 +147,10 @@ top_inc = include_directories('.')
|
|||
glib_req_version = '>= 2.38.0'
|
||||
gtk_req_version = '>= 3.22.0'
|
||||
|
||||
gdk_pixbuf_dep = dependency('gdk-pixbuf-2.0', version: '>= 2.36.5')
|
||||
gdk_pixbuf_dep = dependency('gdk-pixbuf-2.0', version: '>= 2.40.0')
|
||||
config_h.set_quoted('EXTRA_GDK_PIXBUF_LOADERS_DIR',
|
||||
join_paths (ev_libdir, ev_name, 'gdk-pixbuf', gdk_pixbuf_dep.get_pkgconfig_variable('gdk_pixbuf_binary_version')))
|
||||
|
||||
gio_dep = dependency('gio-2.0', version: glib_req_version)
|
||||
glib_dep = dependency('glib-2.0', version: glib_req_version)
|
||||
gmodule_dep = dependency('gmodule-2.0')
|
||||
|
|
Loading…
Reference in New Issue
Block a user