cleaned up all the GTypeInfo initializers
closes #683
--- a/gflib/gflib/gf_client.c Tue May 17 22:36:54 2011 -0500
+++ b/gflib/gflib/gf_client.c Tue May 17 23:02:16 2011 -0500
@@ -1,6 +1,6 @@
* Guifications - The end-all, be-all notification framework
- * Copyright (C) 2003-2009 Gary Kramlich <grim@reaperworld.com>
+ * Copyright (C) 2003-2011 Gary Kramlich <grim@reaperworld.com> * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -154,16 +154,9 @@
static const GTypeInfo info = {
- (GClassInitFunc)gf_client_class_init,
+ .class_size = sizeof(GfClientClass), + .class_init = (GClassInitFunc)gf_client_class_init, + .instance_size = sizeof(GfClient), type = g_type_register_static(GF_TYPE_OBJECT,
--- a/gflib/gflib/gf_client_connection.c Tue May 17 22:36:54 2011 -0500
+++ b/gflib/gflib/gf_client_connection.c Tue May 17 23:02:16 2011 -0500
@@ -1,6 +1,6 @@
* Guifications - The end-all, be-all notification framework
- * Copyright (C) 2003-2009 Gary Kramlich <grim@reaperworld.com>
+ * Copyright (C) 2003-2011 Gary Kramlich <grim@reaperworld.com> * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -48,16 +48,8 @@
static const GTypeInfo info = {
- sizeof(GfClientConnectionClass),
- sizeof(GfClientConnection),
+ .class_size = sizeof(GfClientConnectionClass), + .instance_size = sizeof(GfClientConnection), type = g_type_register_static(GF_TYPE_CONNECTION,
--- a/gflib/gflib/gf_connection.c Tue May 17 22:36:54 2011 -0500
+++ b/gflib/gflib/gf_connection.c Tue May 17 23:02:16 2011 -0500
@@ -1,6 +1,6 @@
* Guifications - The end-all, be-all notification framework
- * Copyright (C) 2003-2009 Gary Kramlich <grim@reaperworld.com>
+ * Copyright (C) 2003-2011 Gary Kramlich <grim@reaperworld.com> * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -239,16 +239,9 @@
static const GTypeInfo info = {
- sizeof(GfConnectionClass),
- (GClassInitFunc)gf_connection_class_init,
+ .class_size = sizeof(GfConnectionClass), + .class_init = (GClassInitFunc)gf_connection_class_init, + .instance_size = sizeof(GfConnection), type = g_type_register_static(GF_TYPE_NAMED_OBJECT,
--- a/gflib/gflib/gf_console_logger.c Tue May 17 22:36:54 2011 -0500
+++ b/gflib/gflib/gf_console_logger.c Tue May 17 23:02:16 2011 -0500
@@ -1,6 +1,6 @@
* Guifications - The end-all, be-all notification framework
- * Copyright (C) 2003-2009 Gary Kramlich <grim@reaperworld.com>
+ * Copyright (C) 2003-2011 Gary Kramlich <grim@reaperworld.com> * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -166,15 +166,9 @@
static const GTypeInfo info = {
- sizeof(GfConsoleLoggerClass),
- NULL, /* base_finalize */
- (GClassInitFunc)gf_console_logger_class_init,
- NULL, /* class_finalize */
- sizeof(GfConsoleLogger),
- NULL, /* instance_init */
+ .class_size = sizeof(GfConsoleLoggerClass), + .class_init = (GClassInitFunc)gf_console_logger_class_init, + .instance_size = sizeof(GfConsoleLogger), type = g_type_register_static(GF_TYPE_LOGGER,
--- a/gflib/gflib/gf_event.c Tue May 17 22:36:54 2011 -0500
+++ b/gflib/gflib/gf_event.c Tue May 17 23:02:16 2011 -0500
@@ -206,16 +206,9 @@
static const GTypeInfo info = {
- (GClassInitFunc)gf_event_class_init,
+ .class_size = sizeof(GfEventClass), + .class_init = (GClassInitFunc)gf_event_class_init, + .instance_size = sizeof(GfEvent), type = g_type_register_static(GF_TYPE_OBJECT,
--- a/gflib/gflib/gf_event_info.c Tue May 17 22:36:54 2011 -0500
+++ b/gflib/gflib/gf_event_info.c Tue May 17 23:02:16 2011 -0500
@@ -87,16 +87,10 @@
static const GTypeInfo info = {
- sizeof(GfEventInfoClass),
- (GClassInitFunc)gf_event_info_class_init,
+ .class_size = sizeof(GfEventInfoClass), + .class_init = (GClassInitFunc)gf_event_info_class_init, + .instance_size = sizeof(GfEventInfo), + .instance_init = gf_event_info_init, type = g_type_register_static(GF_TYPE_OBJECT,
--- a/gflib/gflib/gf_feed.c Tue May 17 22:36:54 2011 -0500
+++ b/gflib/gflib/gf_feed.c Tue May 17 23:02:16 2011 -0500
@@ -1,6 +1,6 @@
* Guifications - The end-all, be-all notification framework
- * Copyright (C) 2003-2009 Gary Kramlich <grim@reaperworld.com>
+ * Copyright (C) 2003-2011 Gary Kramlich <grim@reaperworld.com> * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -379,15 +379,10 @@
static const GTypeInfo info = {
- (GClassInitFunc)gf_feed_class_init,
+ .class_size = sizeof(GfFeedClass), + .class_init = (GClassInitFunc)gf_feed_class_init, + .instance_size = sizeof(GfFeed), + .instance_init = gf_feed_init, type = g_type_register_static(GF_TYPE_OBJECT,
--- a/gflib/gflib/gf_feed_manager.c Tue May 17 22:36:54 2011 -0500
+++ b/gflib/gflib/gf_feed_manager.c Tue May 17 23:02:16 2011 -0500
@@ -1,6 +1,6 @@
* Guifications - The end-all, be-all notification framework
- * Copyright (C) 2003-2009 Gary Kramlich <grim@reaperworld.com>
+ * Copyright (C) 2003-2011 Gary Kramlich <grim@reaperworld.com> * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -224,15 +224,10 @@
static const GTypeInfo info = {
- sizeof(GfFeedManagerClass),
- (GClassInitFunc)gf_feed_manager_class_init,
+ .class_size = sizeof(GfFeedManagerClass), + .class_init = (GClassInitFunc)gf_feed_manager_class_init, + .instance_size = sizeof(GfFeedManager), + .instance_init = gf_feed_manager_init, type = g_type_register_static(GF_TYPE_OBJECT,
--- a/gflib/gflib/gf_file_logger.c Tue May 17 22:36:54 2011 -0500
+++ b/gflib/gflib/gf_file_logger.c Tue May 17 23:02:16 2011 -0500
@@ -1,6 +1,6 @@
* Guifications - The end-all, be-all notification framework
- * Copyright (C) 2003-2009 Gary Kramlich <grim@reaperworld.com>
+ * Copyright (C) 2003-2011 Gary Kramlich <grim@reaperworld.com> * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -87,7 +87,7 @@
const gchar *category, const gchar *format, va_list args)
GfFileLoggerPrivate *priv = GF_FILE_LOGGER_GET_PRIVATE(logger);
@@ -214,15 +214,9 @@
static const GTypeInfo info = {
- sizeof(GfFileLoggerClass),
- NULL, /* base_finalize */
- (GClassInitFunc)gf_file_logger_class_init,
- NULL, /* class_finalize */
- NULL, /* instance_init */
+ .class_size = sizeof(GfFileLoggerClass), + .class_init = (GClassInitFunc)gf_file_logger_class_init, + .instance_size = sizeof(GfFileLogger), type = g_type_register_static(GF_TYPE_LOGGER,
--- a/gflib/gflib/gf_image.c Tue May 17 22:36:54 2011 -0500
+++ b/gflib/gflib/gf_image.c Tue May 17 23:02:16 2011 -0500
@@ -1,6 +1,6 @@
* Guifications - The end-all, be-all notification framework
- * Copyright (C) 2003-2009 Gary Kramlich <grim@reaperworld.com>
+ * Copyright (C) 2003-2011 Gary Kramlich <grim@reaperworld.com> * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -72,16 +72,9 @@
static const GTypeInfo info = {
- (GClassInitFunc)gf_image_class_init,
+ .class_size = sizeof(GfImageClass), + .class_init = (GClassInitFunc)gf_image_class_init, + .instance_size = sizeof(GfImage), type = g_type_register_static(GF_TYPE_OBJECT,
--- a/gflib/gflib/gf_logger.c Tue May 17 22:36:54 2011 -0500
+++ b/gflib/gflib/gf_logger.c Tue May 17 23:02:16 2011 -0500
@@ -1,6 +1,6 @@
* Guifications - The end-all, be-all notification framework
- * Copyright (C) 2003-2009 Gary Kramlich <grim@reaperworld.com>
+ * Copyright (C) 2003-2011 Gary Kramlich <grim@reaperworld.com> * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -149,15 +149,9 @@
static const GTypeInfo info = {
- NULL, /* base_finalize */
- (GClassInitFunc)gf_logger_class_init,
- NULL, /* class_finalize */
- NULL, /* instance_init */
+ .class_size = sizeof(GfLoggerClass), + .class_init = (GClassInitFunc)gf_logger_class_init, + .instance_size = sizeof(GfLogger), type = g_type_register_static(GF_TYPE_OBJECT,
--- a/gflib/gflib/gf_named_object.c Tue May 17 22:36:54 2011 -0500
+++ b/gflib/gflib/gf_named_object.c Tue May 17 23:02:16 2011 -0500
@@ -1,6 +1,6 @@
* Guifications - The end-all, be-all notification framework
- * Copyright (C) 2003-2009 Gary Kramlich <grim@reaperworld.com>
+ * Copyright (C) 2003-2011 Gary Kramlich <grim@reaperworld.com> * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -27,15 +27,8 @@
static const GTypeInfo info = {
- sizeof(GfNamedObjectClass),
- NULL, /* base_finalize */
- NULL, /* class_finalize */
- NULL, /* instance_init */
+ .class_size = sizeof(GfNamedObjectClass), + .instance_size = sizeof(GfNamedObject), type = g_type_register_static(GF_TYPE_OBJECT,
@@ -49,7 +42,7 @@
* gf_named_object_class_get_name:
* @klass: The #GfNamedObjectClass instance.
* Gets the User Interface name for a #GfNamedObjectClass.
* Return Value: The user interface name.
--- a/gflib/gflib/gf_native_plugin.c Tue May 17 22:36:54 2011 -0500
+++ b/gflib/gflib/gf_native_plugin.c Tue May 17 23:02:16 2011 -0500
@@ -1,6 +1,6 @@
* Guifications - The end-all, be-all notification framework
- * Copyright (C) 2003-2009 Gary Kramlich <grim@reaperworld.com>
+ * Copyright (C) 2003-2011 Gary Kramlich <grim@reaperworld.com> * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -249,21 +249,13 @@
static const GTypeInfo info = {
- sizeof(GfNativePluginClass),
- (GClassInitFunc)gf_native_plugin_class_init,
- sizeof(GfNativePlugin),
+ .class_size = sizeof(GfNativePluginClass), + .class_init = (GClassInitFunc)gf_native_plugin_class_init, + .instance_size = sizeof(GfNativePlugin), static const GInterfaceInfo iface_info = {
- (GInterfaceInitFunc)gf_native_plugin_iface_init,
+ .interface_init = (GInterfaceInitFunc)gf_native_plugin_iface_init, type = g_type_register_static(GF_TYPE_PLUGIN,
--- a/gflib/gflib/gf_native_plugin_loader.c Tue May 17 22:36:54 2011 -0500
+++ b/gflib/gflib/gf_native_plugin_loader.c Tue May 17 23:02:16 2011 -0500
@@ -1,6 +1,6 @@
* Guifications - The end-all, be-all notification framework
- * Copyright (C) 2003-2009 Gary Kramlich <grim@reaperworld.com>
+ * Copyright (C) 2003-2011 Gary Kramlich <grim@reaperworld.com> * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -219,21 +219,12 @@
static const GTypeInfo info = {
- sizeof(GfNativePluginLoaderClass),
- sizeof(GfNativePluginLoader),
+ .class_size = sizeof(GfNativePluginLoaderClass), + .instance_size = sizeof(GfNativePluginLoader), static const GInterfaceInfo loader_info = {
- (GInterfaceInitFunc)gf_native_plugin_loader_loader_init,
+ .interface_init = (GInterfaceInitFunc)gf_native_plugin_loader_loader_init, type = g_type_register_static(GF_TYPE_OBJECT,
--- a/gflib/gflib/gf_object.c Tue May 17 22:36:54 2011 -0500
+++ b/gflib/gflib/gf_object.c Tue May 17 23:02:16 2011 -0500
@@ -1,6 +1,6 @@
* Guifications - The end-all, be-all notification framework
- * Copyright (C) 2003-2009 Gary Kramlich <grim@reaperworld.com>
+ * Copyright (C) 2003-2011 Gary Kramlich <grim@reaperworld.com> * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -81,15 +81,9 @@
static const GTypeInfo info = {
- NULL, /* base_finalize */
- (GClassInitFunc)gf_object_class_init,
- NULL, /* class_finalize */
- NULL, /* instance_init */
+ .class_size = sizeof(GfObjectClass), + .class_init = (GClassInitFunc)gf_object_class_init, + .instance_size = sizeof(GfObject), type = g_type_register_static(G_TYPE_OBJECT,
--- a/gflib/gflib/gf_plugin.c Tue May 17 22:36:54 2011 -0500
+++ b/gflib/gflib/gf_plugin.c Tue May 17 23:02:16 2011 -0500
@@ -1,6 +1,6 @@
* Guifications - The end-all, be-all notification framework
- * Copyright (C) 2003-2009 Gary Kramlich <grim@reaperworld.com>
+ * Copyright (C) 2003-2011 Gary Kramlich <grim@reaperworld.com> * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -182,15 +182,9 @@
static const GTypeInfo info = {
- (GClassInitFunc)gf_plugin_class_init,
+ .class_size = sizeof(GfPluginClass), + .class_init = (GClassInitFunc)gf_plugin_class_init, + .instance_size = sizeof(GfPlugin), type = g_type_register_static(GF_TYPE_OBJECT,
--- a/gflib/gflib/gf_plugin_loader.c Tue May 17 22:36:54 2011 -0500
+++ b/gflib/gflib/gf_plugin_loader.c Tue May 17 23:02:16 2011 -0500
@@ -1,6 +1,6 @@
* Guifications - The end-all, be-all notification framework
- * Copyright (C) 2003-2009 Gary Kramlich <grim@reaperworld.com>
+ * Copyright (C) 2003-2011 Gary Kramlich <grim@reaperworld.com> * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -29,15 +29,7 @@
static const GTypeInfo info = {
- sizeof(GfPluginLoaderIface),
+ .class_size = sizeof(GfPluginLoaderIface), type = g_type_register_static(G_TYPE_INTERFACE,
--- a/gflib/gflib/gf_preference_engine.c Tue May 17 22:36:54 2011 -0500
+++ b/gflib/gflib/gf_preference_engine.c Tue May 17 23:02:16 2011 -0500
@@ -1,6 +1,6 @@
* Guifications - The end-all, be-all notification framework
- * Copyright (C) 2003-2009 Gary Kramlich <grim@reaperworld.com>
+ * Copyright (C) 2003-2011 Gary Kramlich <grim@reaperworld.com> * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -104,15 +104,9 @@
static const GTypeInfo info = {
- sizeof(GfPreferenceEngineClass),
- (GClassInitFunc)gf_preference_engine_class_init,
- sizeof(GfPreferenceEngine),
+ .class_size = sizeof(GfPreferenceEngineClass), + .class_init = (GClassInitFunc)gf_preference_engine_class_init, + .instance_size = sizeof(GfPreferenceEngine), type = g_type_register_static(GF_TYPE_NAMED_OBJECT,
--- a/gflib/gflib/gf_preference_engine_null.c Tue May 17 22:36:54 2011 -0500
+++ b/gflib/gflib/gf_preference_engine_null.c Tue May 17 23:02:16 2011 -0500
@@ -1,6 +1,6 @@
* Guifications - The end-all, be-all notification framework
- * Copyright (C) 2003-2009 Gary Kramlich <grim@reaperworld.com>
+ * Copyright (C) 2003-2011 Gary Kramlich <grim@reaperworld.com> * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -172,15 +172,9 @@
static const GTypeInfo info = {
- sizeof(GfPreferenceEngineNullClass),
- (GClassInitFunc)gf_preference_engine_null_class_init,
- sizeof(GfPreferenceEngine),
+ .class_size = sizeof(GfPreferenceEngineNullClass), + .class_init = (GClassInitFunc)gf_preference_engine_null_class_init, + .instance_size = sizeof(GfPreferenceEngine), type = g_type_register_static(GF_TYPE_PREFERENCE_ENGINE,
--- a/gflib/gflib/gf_preference_engine_xml.c Tue May 17 22:36:54 2011 -0500
+++ b/gflib/gflib/gf_preference_engine_xml.c Tue May 17 23:02:16 2011 -0500
@@ -1,6 +1,6 @@
* Guifications - The end-all, be-all notification framework
- * Copyright (C) 2003-2009 Gary Kramlich <grim@reaperworld.com>
+ * Copyright (C) 2003-2011 Gary Kramlich <grim@reaperworld.com> * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -945,15 +945,10 @@
static const GTypeInfo info = {
- sizeof(GfPreferenceEngineXMLClass),
- (GClassInitFunc)gf_preference_engine_xml_class_init,
- sizeof(GfPreferenceEngineXML),
- gf_preference_engine_xml_init,
+ .class_size = sizeof(GfPreferenceEngineXMLClass), + .class_init = (GClassInitFunc)gf_preference_engine_xml_class_init, + .instance_size = sizeof(GfPreferenceEngineXML), + .instance_init = gf_preference_engine_xml_init, type = g_type_register_static(GF_TYPE_PREFERENCE_ENGINE,
--- a/gflib/gflib/gf_preferences_proxy.c Tue May 17 22:36:54 2011 -0500
+++ b/gflib/gflib/gf_preferences_proxy.c Tue May 17 23:02:16 2011 -0500
@@ -1,6 +1,6 @@
* Guifications - The end-all, be-all notification framework
- * Copyright (C) 2003-2009 Gary Kramlich <grim@reaperworld.com>
+ * Copyright (C) 2003-2011 Gary Kramlich <grim@reaperworld.com> * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -537,15 +537,10 @@
static const GTypeInfo info = {
- sizeof(GfPreferencesProxyClass),
- (GClassInitFunc)gf_preferences_proxy_class_init,
- sizeof(GfPreferencesProxy),
- gf_preferences_proxy_init,
+ .class_size = sizeof(GfPreferencesProxyClass), + .class_init = (GClassInitFunc)gf_preferences_proxy_class_init, + .instance_size = sizeof(GfPreferencesProxy), + .instance_init = gf_preferences_proxy_init, type = g_type_register_static(GF_TYPE_PREFERENCE_ENGINE,
--- a/gflib/gflib/gf_preferences_proxy_entry.c Tue May 17 22:36:54 2011 -0500
+++ b/gflib/gflib/gf_preferences_proxy_entry.c Tue May 17 23:02:16 2011 -0500
@@ -1,6 +1,6 @@
* Guifications - The end-all, be-all notification framework
- * Copyright (C) 2003-2009 Gary Kramlich <grim@reaperworld.com>
+ * Copyright (C) 2003-2011 Gary Kramlich <grim@reaperworld.com> * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -206,16 +206,9 @@
static const GTypeInfo info = {
- sizeof(GfPreferencesProxyEntryClass),
- (GClassInitFunc)gf_preferences_proxy_entry_class_init,
- sizeof(GfPreferencesProxyEntry),
+ .class_size = sizeof(GfPreferencesProxyEntryClass), + .class_init = (GClassInitFunc)gf_preferences_proxy_entry_class_init, + .instance_size = sizeof(GfPreferencesProxyEntry), type = g_type_register_static(GF_TYPE_OBJECT,
--- a/gflib/gflib/gf_server_connection.c Tue May 17 22:36:54 2011 -0500
+++ b/gflib/gflib/gf_server_connection.c Tue May 17 23:02:16 2011 -0500
@@ -1,6 +1,6 @@
* Guifications - The end-all, be-all notification framework
- * Copyright (C) 2003-2009 Gary Kramlich <grim@reaperworld.com>
+ * Copyright (C) 2003-2011 Gary Kramlich <grim@reaperworld.com> * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -48,16 +48,8 @@
static const GTypeInfo info = {
- sizeof(GfServerConnectionClass),
- sizeof(GfServerConnection),
+ .class_size = sizeof(GfServerConnectionClass), + .instance_size = sizeof(GfServerConnection), type = g_type_register_static(GF_TYPE_CONNECTION,
--- a/gflib/gflib/gf_type.c Tue May 17 22:36:54 2011 -0500
+++ b/gflib/gflib/gf_type.c Tue May 17 23:02:16 2011 -0500
@@ -1,6 +1,6 @@
* Guifications - The end-all, be-all notification framework
- * Copyright (C) 2003-2009 Gary Kramlich <grim@reaperworld.com>
+ * Copyright (C) 2003-2011 Gary Kramlich <grim@reaperworld.com> * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -310,15 +310,9 @@
if(G_UNLIKELY(type == 0)) {
static const GTypeInfo info = {
- sizeof(GfTypeQueryContextClass),
- (GClassInitFunc)gf_type_query_context_class_init,
- sizeof(GfTypeQueryContext),
+ .class_size = sizeof(GfTypeQueryContextClass), + .class_init = (GClassInitFunc)gf_type_query_context_class_init, + .instance_size = sizeof(GfTypeQueryContext), type = g_type_register_static(G_TYPE_OBJECT,