[eog/friemann/krifa75-declare-iface: 1/3] EogWindowActivatable: Use G_DECLARE_INTERFACE




commit 6d9be627dcb57a8d3362f83a8bfa55548a28475b
Author: Krifa <yahiaoui fakhri gmail com>
Date:   Thu Mar 17 00:36:23 2022 +0100

    EogWindowActivatable: Use G_DECLARE_INTERFACE

 src/eog-window-activatable.h | 19 +------------------
 1 file changed, 1 insertion(+), 18 deletions(-)
---
diff --git a/src/eog-window-activatable.h b/src/eog-window-activatable.h
index 6209633a..6bdc0247 100644
--- a/src/eog-window-activatable.h
+++ b/src/eog-window-activatable.h
@@ -32,22 +32,7 @@
 G_BEGIN_DECLS
 
 #define EOG_TYPE_WINDOW_ACTIVATABLE    (eog_window_activatable_get_type ())
-#define EOG_WINDOW_ACTIVATABLE(obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-                                        EOG_TYPE_WINDOW_ACTIVATABLE, \
-                                        EogWindowActivatable))
-#define EOG_WINDOW_ACTIVATABLE_IFACE(obj) \
-                                       (G_TYPE_CHECK_CLASS_CAST ((obj), \
-                                        EOG_TYPE_WINDOW_ACTIVATABLE, \
-                                        EogWindowActivatableInterface))
-#define EOG_IS_WINDOW_ACTIVATABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-                                        EOG_TYPE_WINDOW_ACTIVATABLE))
-#define EOG_WINDOW_ACTIVATABLE_GET_IFACE(obj) \
-                                       (G_TYPE_INSTANCE_GET_INTERFACE ((obj), \
-                                        EOG_TYPE_WINDOW_ACTIVATABLE, \
-                                        EogWindowActivatableInterface))
-
-typedef struct _EogWindowActivatable           EogWindowActivatable;
-typedef struct _EogWindowActivatableInterface  EogWindowActivatableInterface;
+G_DECLARE_INTERFACE (EogWindowActivatable, eog_window_activatable, EOG, WINDOW_ACTIVATABLE, GObject)
 
 struct _EogWindowActivatableInterface
 {
@@ -59,8 +44,6 @@ struct _EogWindowActivatableInterface
        void    (*deactivate)   (EogWindowActivatable *activatable);
 };
 
-GType  eog_window_activatable_get_type (void) G_GNUC_CONST;
-
 void   eog_window_activatable_activate     (EogWindowActivatable *activatable);
 void   eog_window_activatable_deactivate   (EogWindowActivatable *activatable);
 


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