diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ephy-extension.c | 10 | ||||
-rw-r--r-- | src/ephy-extension.h | 10 | ||||
-rw-r--r-- | src/ephy-extensions-manager.c | 4 | ||||
-rw-r--r-- | src/ephy-session.c | 4 |
4 files changed, 14 insertions, 14 deletions
diff --git a/src/ephy-extension.c b/src/ephy-extension.c index a4022b67d..1caf581b7 100644 --- a/src/ephy-extension.c +++ b/src/ephy-extension.c @@ -30,7 +30,7 @@ ephy_extension_get_type (void) { static const GTypeInfo our_info = { - sizeof (EphyExtensionClass), + sizeof (EphyExtensionIface), NULL, NULL, }; @@ -47,14 +47,14 @@ void ephy_extension_attach_window (EphyExtension *extension, EphyWindow *window) { - EphyExtensionClass *class = EPHY_EXTENSION_GET_CLASS (extension); - class->attach_window (extension, window); + EphyExtensionIface *iface = EPHY_EXTENSION_GET_IFACE (extension); + iface->attach_window (extension, window); } void ephy_extension_detach_window (EphyExtension *extension, EphyWindow *window) { - EphyExtensionClass *class = EPHY_EXTENSION_GET_CLASS (extension); - class->detach_window (extension, window); + EphyExtensionIface *iface = EPHY_EXTENSION_GET_IFACE (extension); + iface->detach_window (extension, window); } diff --git a/src/ephy-extension.h b/src/ephy-extension.h index f8d6c0d28..06d48e06f 100644 --- a/src/ephy-extension.h +++ b/src/ephy-extension.h @@ -30,15 +30,15 @@ G_BEGIN_DECLS #define EPHY_TYPE_EXTENSION (ephy_extension_get_type ()) #define EPHY_EXTENSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EPHY_TYPE_EXTENSION, EphyExtension)) -#define EPHY_EXTENSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EPHY_TYPE_EXTENSION, EphyExtensionClass)) +#define EPHY_EXTENSION_IFACE(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EPHY_TYPE_EXTENSION, EphyExtensionIface)) #define EPHY_IS_EXTENSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EPHY_TYPE_EXTENSION)) -#define EPHY_IS_EXTENSION_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), EPHY_TYPE_EXTENSION)) -#define EPHY_EXTENSION_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EPHY_TYPE_EXTENSION, EphyExtensionClass)) +#define EPHY_IS_EXTENSION_IFACE(class) (G_TYPE_CHECK_CLASS_TYPE ((class), EPHY_TYPE_EXTENSION)) +#define EPHY_EXTENSION_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EPHY_TYPE_EXTENSION, EphyExtensionIface)) typedef struct _EphyExtension EphyExtension; -typedef struct _EphyExtensionClass EphyExtensionClass; +typedef struct _EphyExtensionIface EphyExtensionIface; -struct _EphyExtensionClass +struct _EphyExtensionIface { GTypeInterface base_iface; diff --git a/src/ephy-extensions-manager.c b/src/ephy-extensions-manager.c index 9dc4d6842..f8e283e09 100644 --- a/src/ephy-extensions-manager.c +++ b/src/ephy-extensions-manager.c @@ -42,7 +42,7 @@ struct EphyExtensionsManagerPrivate static GObjectClass *parent_class = NULL; static void ephy_extensions_manager_class_init (EphyExtensionsManagerClass *klass); -static void ephy_extensions_manager_iface_init (EphyExtensionClass *iface); +static void ephy_extensions_manager_iface_init (EphyExtensionIface *iface); static void ephy_extensions_manager_init (EphyExtensionsManager *manager); GType @@ -233,7 +233,7 @@ impl_detach_window (EphyExtension *extension, } static void -ephy_extensions_manager_iface_init (EphyExtensionClass *iface) +ephy_extensions_manager_iface_init (EphyExtensionIface *iface) { iface->attach_window = impl_attach_window; iface->detach_window = impl_detach_window; diff --git a/src/ephy-session.c b/src/ephy-session.c index 96aa5919a..cd318d264 100644 --- a/src/ephy-session.c +++ b/src/ephy-session.c @@ -61,7 +61,7 @@ struct EphySessionPrivate #define SESSION_CRASHED "type:session_crashed" static void ephy_session_class_init (EphySessionClass *klass); -static void ephy_session_iface_init (EphyExtensionClass *iface); +static void ephy_session_iface_init (EphyExtensionIface *iface); static void ephy_session_init (EphySession *session); static GObjectClass *parent_class = NULL; @@ -265,7 +265,7 @@ ephy_session_finalize (GObject *object) } static void -ephy_session_iface_init (EphyExtensionClass *iface) +ephy_session_iface_init (EphyExtensionIface *iface) { iface->attach_window = impl_attach_window; iface->detach_window = impl_detach_window; |