[libgweather/drop-old-api: 6/7] Remove dependency on GdkPixbuf




commit ca382477663827ef664319ce68ca67dd866365b6
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Fri Oct 15 16:59:51 2021 +0100

    Remove dependency on GdkPixbuf
    
    With gweather_info_get_radar() gone, we don't need gdk-pixbuf any more.

 doc/libgweather.toml.in        | 7 +------
 doc/urlmap.js                  | 1 -
 libgweather/gweather-weather.h | 1 -
 libgweather/meson.build        | 6 ++----
 4 files changed, 3 insertions(+), 12 deletions(-)
---
diff --git a/doc/libgweather.toml.in b/doc/libgweather.toml.in
index 19a36134..12822dc2 100644
--- a/doc/libgweather.toml.in
+++ b/doc/libgweather.toml.in
@@ -6,7 +6,7 @@ repository_url = "https://gitlab.gnome.org/GNOME/libgweather.git";
 authors = "The GWeather authors"
 license = "GPL-2.0-or-later"
 description = "Weather data collection"
-dependencies = [ "GObject-2.0", "Gio-2.0", "GdkPixbuf-2.0" ]
+dependencies = [ "GObject-2.0", "Gio-2.0" ]
 devhelp = true
 search_index = true
 
@@ -20,11 +20,6 @@ search_index = true
   description = "GObject interfaces and objects"
   docs_url = "https://docs.gtk.org/gio/";
 
-  [dependencies."GdkPixbuf-2.0"]
-  name = "GdkPixbuf"
-  description = "Image loading library"
-  docs_url = "https://docs.gtk.org/gdk-pixbuf/";
-
 [theme]
 name = "basic"
 show_index_summary = true
diff --git a/doc/urlmap.js b/doc/urlmap.js
index d9e4599e..200f23f2 100644
--- a/doc/urlmap.js
+++ b/doc/urlmap.js
@@ -6,5 +6,4 @@ baseURLs = [
     [ 'GLib', 'https://docs.gtk.org/glib/' ],
     [ 'GObject', 'https://docs.gtk.org/gobject/' ],
     [ 'Gio', 'https://docs.gtk.org/gio/' ],
-    [ 'GdkPixbuf', 'https://docs.gtk.org/gdk-pixbuf/' ],
 ]
diff --git a/libgweather/gweather-weather.h b/libgweather/gweather-weather.h
index f239f81a..7d0bf760 100644
--- a/libgweather/gweather-weather.h
+++ b/libgweather/gweather-weather.h
@@ -10,7 +10,6 @@
 #error "gweather-weather.h must not be included individually, include gweather.h instead"
 #endif
 
-#include <gdk-pixbuf/gdk-pixbuf.h>
 #include <libgweather/gweather-enums.h>
 #include <libgweather/gweather-location.h>
 #include <libgweather/gweather-version.h>
diff --git a/libgweather/meson.build b/libgweather/meson.build
index a2cd84a7..d0a0aff7 100644
--- a/libgweather/meson.build
+++ b/libgweather/meson.build
@@ -96,7 +96,6 @@ configure_file(
 
 deps_libgweather = [
   dependency('gio-2.0', version: glib_req_version),
-  dependency('gdk-pixbuf-2.0'),
   dependency('libsoup-2.4', version: libsoup_req_version),
   dependency('libxml-2.0', version: libxml_req_version),
   dependency('geocode-glib-1.0'),
@@ -192,7 +191,7 @@ if build_gir
     dependencies: deps_libgweather,
     nsversion: libgweather_api_version,
     namespace: 'GWeather',
-    includes: ['Gio-2.0', 'GdkPixbuf-2.0'],
+    includes: ['Gio-2.0'],
     symbol_prefix: 'gweather',
     identifier_prefix: 'GWeather',
     export_packages: 'gweather'.format(libgweather_api),
@@ -221,7 +220,7 @@ libgweather_dep = declare_dependency(
 if build_vapi and build_gir
   gnome.generate_vapi('gweather@0@'.format(libgweather_api),
     sources: gweather_gir[0],
-    packages: ['gio-2.0', 'gdk-pixbuf-2.0'],
+    packages: ['gio-2.0'],
     metadata_dirs: '.',
     install: true,
   )
@@ -236,7 +235,6 @@ pkgconfig.generate(
   subdirs: libgweather_full_version,
   requires_private: [
     'gio-2.0',
-    'gdk-pixbuf-2.0',
     'libsoup-2.4',
     'libxml-2.0',
     'geocode-glib-1.0',


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]