[nautilus/wip/antoniof/extension-properties: 20/26] image-properties: Don't depend on GTK




commit b3fa7cc6f5d1a02bacd1ef9138ac682a5e301836
Author: António Fernandes <antoniof gnome org>
Date:   Sat Aug 6 19:13:41 2022 +0100

    image-properties: Don't depend on GTK
    
    GdkPixbuf is enough here.

 extensions/image-properties/meson.build                                | 1 +
 extensions/image-properties/nautilus-image-properties-model-provider.c | 1 +
 extensions/image-properties/nautilus-image-properties-model.c          | 1 +
 extensions/image-properties/nautilus-image-properties-model.h          | 2 --
 meson.build                                                            | 1 +
 5 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/extensions/image-properties/meson.build b/extensions/image-properties/meson.build
index bb8fcda8a..f5ea1ad6b 100644
--- a/extensions/image-properties/meson.build
+++ b/extensions/image-properties/meson.build
@@ -8,6 +8,7 @@ shared_module (
   ],
   dependencies: [
     gexiv,
+    gdkpixbuf,
     nautilus_extension
   ],
   install: true,
diff --git a/extensions/image-properties/nautilus-image-properties-model-provider.c 
b/extensions/image-properties/nautilus-image-properties-model-provider.c
index 8ffc1eb73..c64178f7b 100644
--- a/extensions/image-properties/nautilus-image-properties-model-provider.c
+++ b/extensions/image-properties/nautilus-image-properties-model-provider.c
@@ -25,6 +25,7 @@
 #include "nautilus-image-properties-model.h"
 
 #include <nautilus-extension.h>
+#include <gdk-pixbuf/gdk-pixbuf.h>
 
 struct _NautilusImagesPropertiesModelProvider
 {
diff --git a/extensions/image-properties/nautilus-image-properties-model.c 
b/extensions/image-properties/nautilus-image-properties-model.c
index 05fe00b92..24e579bda 100644
--- a/extensions/image-properties/nautilus-image-properties-model.c
+++ b/extensions/image-properties/nautilus-image-properties-model.c
@@ -23,6 +23,7 @@
 
 #include <gexiv2/gexiv2.h>
 #include <glib/gi18n.h>
+#include <gdk-pixbuf/gdk-pixbuf.h>
 
 #include <math.h>
 
diff --git a/extensions/image-properties/nautilus-image-properties-model.h 
b/extensions/image-properties/nautilus-image-properties-model.h
index 37ce1bd88..673c8e6b7 100644
--- a/extensions/image-properties/nautilus-image-properties-model.h
+++ b/extensions/image-properties/nautilus-image-properties-model.h
@@ -18,8 +18,6 @@
 
 #pragma once
 
-#include <gtk/gtk.h>
-
 #include <nautilus-extension.h>
 
 NautilusPropertiesModel * nautilus_image_properties_model_new (NautilusFileInfo *file_info);
diff --git a/meson.build b/meson.build
index 74e68dab9..e77db2b34 100644
--- a/meson.build
+++ b/meson.build
@@ -98,6 +98,7 @@ libm = cc.find_library('m')
 
 if get_option('extensions')
   gexiv = dependency('gexiv2', version: '>= 0.14.0')
+  gdkpixbuf = dependency('gdk-pixbuf-2.0', version: '>= 2.30.0')
   gst_tag_dep = dependency('gstreamer-tag-1.0')
   gst_pbutils_dep = dependency('gstreamer-pbutils-1.0')
 endif


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