/soc/2013/ankitkv/gobjectification: fc80e8f159d3: Protocol inter...

Ankit Vani a at nevitus.org
Sun Sep 1 17:59:02 EDT 2013


Changeset: fc80e8f159d373f38f37e9b0d10d01d3b9f3fae1
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-09-02 03:22 +0530
Branch:	 soc.2013.gobjectification.plugins
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/fc80e8f159d3

Description:

Protocol interface is a static type, so add it via g_type_add_interface_static()

diffstat:

 libpurple/protocol.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff --git a/libpurple/protocol.h b/libpurple/protocol.h
--- a/libpurple/protocol.h
+++ b/libpurple/protocol.h
@@ -613,8 +613,8 @@ struct _PurpleProtocolInterface
 			type = purple_plugin_register_type(plugin, BaseType, #TypeName, \
 				                               &info, TypeFlags); \
 			if (type != G_TYPE_INVALID) \
-				purple_plugin_add_interface(plugin, type, PURPLE_TYPE_PROTOCOL_INTERFACE, \
-					                        &iface_info); \
+				g_type_add_interface_static(type, PURPLE_TYPE_PROTOCOL_INTERFACE, \
+				                            &iface_info); \
 		} \
 		return type; \
 	}



More information about the Commits mailing list