[gedit/eggplugins] Drop EGG_PLUGINS_LOADER_IMPLEMENT_INTERFACE.



commit 94fad4da8990caf141a60f3286532a20981d09e5
Author: Steve Frécinaux <code istique net>
Date:   Fri Oct 9 20:10:00 2009 +0200

    Drop EGG_PLUGINS_LOADER_IMPLEMENT_INTERFACE.
    
    It is useless as the plugin loader interface is static, so
    G_IMPLEMENT_INTERFACE is fine.

 libplugins/egg-plugins-loader.h |   20 +-------------------
 1 files changed, 1 insertions(+), 19 deletions(-)
---
diff --git a/libplugins/egg-plugins-loader.h b/libplugins/egg-plugins-loader.h
index 0e517a3..cad429f 100644
--- a/libplugins/egg-plugins-loader.h
+++ b/libplugins/egg-plugins-loader.h
@@ -63,24 +63,6 @@ void egg_plugins_loader_unload			(EggPluginsLoader 	*loader,
 void egg_plugins_loader_garbage_collect		(EggPluginsLoader 	*loader);
 
 /**
- * EGG_PLUGINS_LOADER_IMPLEMENT_INTERFACE(TYPE_IFACE, iface_init):
- *
- * Utility macro used to register interfaces for gobject types in plugin loaders.
- */
-#define EGG_PLUGINS_LOADER_IMPLEMENT_INTERFACE(TYPE_IFACE, iface_init)		\
-	const GInterfaceInfo g_implement_interface_info = 			\
-	{ 									\
-		(GInterfaceInitFunc) iface_init,				\
-		NULL, 								\
-		NULL								\
-	};									\
-										\
-	g_type_module_add_interface (type_module,				\
-				     g_define_type_id, 				\
-				     TYPE_IFACE, 				\
-				     &g_implement_interface_info);
-
-/**
  * EGG_PLUGINS_LOADER_REGISTER_TYPE(PluginLoaderName, plugin_loader_name, PARENT_TYPE, loader_interface_init):
  *
  * Utility macro used to register plugin loaders.
@@ -90,7 +72,7 @@ void egg_plugins_loader_garbage_collect		(EggPluginsLoader 	*loader);
 					plugin_loader_name,			\
 					PARENT_TYPE,				\
 					0,					\
-					EGG_PLUGINS_LOADER_IMPLEMENT_INTERFACE(EGG_PLUGINS_TYPE_LOADER, loader_iface_init));	\
+					G_IMPLEMENT_INTERFACE(EGG_PLUGINS_TYPE_LOADER, loader_iface_init));	\
 										\
 										\
 G_MODULE_EXPORT GType								\



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