[eog/friemann/krifa75-declare-iface: 2/3] EogApplicationActivatable: Use G_DECLARE_INTERFACE
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog/friemann/krifa75-declare-iface: 2/3] EogApplicationActivatable: Use G_DECLARE_INTERFACE
- Date: Sat, 9 Jul 2022 17:14:41 +0000 (UTC)
commit cbb9d4dc6a49f6b7b8585aacf254a7355900a195
Author: Krifa75 <yahiaoui fakhri gmail com>
Date: Thu Mar 17 12:36:20 2022 +0100
EogApplicationActivatable: Use G_DECLARE_INTERFACE
src/eog-application-activatable.h | 20 +-------------------
1 file changed, 1 insertion(+), 19 deletions(-)
---
diff --git a/src/eog-application-activatable.h b/src/eog-application-activatable.h
index 40459812..7c517c24 100644
--- a/src/eog-application-activatable.h
+++ b/src/eog-application-activatable.h
@@ -32,23 +32,7 @@
G_BEGIN_DECLS
#define EOG_TYPE_APPLICATION_ACTIVATABLE (eog_application_activatable_get_type ())
-#define EOG_APPLICATION_ACTIVATABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- EOG_TYPE_APPLICATION_ACTIVATABLE, \
- EogApplicationActivatable))
-#define EOG_APPLICATION_ACTIVATABLE_IFACE(obj) \
- (G_TYPE_CHECK_CLASS_CAST ((obj), \
- EOG_TYPE_APPLICATION_ACTIVATABLE, \
- EogApplicationActivatableInterface))
-#define EOG_IS_APPLICATION_ACTIVATABLE(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- EOG_TYPE_APPLICATION_ACTIVATABLE))
-#define EOG_APPLICATION_ACTIVATABLE_GET_IFACE(obj) \
- (G_TYPE_INSTANCE_GET_INTERFACE ((obj), \
- EOG_TYPE_APPLICATION_ACTIVATABLE, \
- EogApplicationActivatableInterface))
-
-typedef struct _EogApplicationActivatable EogApplicationActivatable;
-typedef struct _EogApplicationActivatableInterface EogApplicationActivatableInterface;
+G_DECLARE_INTERFACE (EogApplicationActivatable, eog_application_activatable, EOG, APPLICATION_ACTIVATABLE,
GObject);
struct _EogApplicationActivatableInterface
{
@@ -60,8 +44,6 @@ struct _EogApplicationActivatableInterface
void (*deactivate) (EogApplicationActivatable *activatable);
};
-GType eog_application_activatable_get_type (void) G_GNUC_CONST;
-
void eog_application_activatable_activate (EogApplicationActivatable *activatable);
void eog_application_activatable_deactivate (EogApplicationActivatable *activatable);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]