grim/guifications3

13ff35d0d7f7
Parents f31281edef1c
Children 462fdf322292
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 @@
if(type == 0) {
static const GTypeInfo info = {
- sizeof(GfClientClass),
- NULL,
- NULL,
- (GClassInitFunc)gf_client_class_init,
- NULL,
- NULL,
- sizeof(GfClient),
- 0,
- NULL,
- NULL
+ .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 @@
if(type == 0) {
static const GTypeInfo info = {
- sizeof(GfClientConnectionClass),
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- sizeof(GfClientConnection),
- 0,
- NULL,
- NULL
+ .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 @@
if(type == 0) {
static const GTypeInfo info = {
- sizeof(GfConnectionClass),
- NULL,
- NULL,
- (GClassInitFunc)gf_connection_class_init,
- NULL,
- NULL,
- sizeof(GfConnection),
- 0,
- NULL,
- NULL
+ .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 @@
if(type == 0) {
static const GTypeInfo info = {
- sizeof(GfConsoleLoggerClass),
- NULL, /* base_init */
- NULL, /* base_finalize */
- (GClassInitFunc)gf_console_logger_class_init,
- NULL, /* class_finalize */
- NULL, /* class_data */
- sizeof(GfConsoleLogger),
- 0, /* n_preallocs */
- 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 @@
if(type == 0) {
static const GTypeInfo info = {
- sizeof(GfEventClass),
- NULL,
- NULL,
- (GClassInitFunc)gf_event_class_init,
- NULL,
- NULL,
- sizeof(GfEvent),
- 0,
- NULL,
- NULL
+ .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 @@
if(type == 0) {
static const GTypeInfo info = {
- sizeof(GfEventInfoClass),
- NULL,
- NULL,
- (GClassInitFunc)gf_event_info_class_init,
- NULL,
- NULL,
- sizeof(GfEventInfo),
- 0,
- gf_event_info_init,
- NULL
+ .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 @@
if(type == 0) {
static const GTypeInfo info = {
- sizeof(GfFeedClass),
- NULL,
- NULL,
- (GClassInitFunc)gf_feed_class_init,
- NULL,
- NULL,
- sizeof(GfFeed),
- 0,
- gf_feed_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 @@
if(type == 0) {
static const GTypeInfo info = {
- sizeof(GfFeedManagerClass),
- NULL,
- NULL,
- (GClassInitFunc)gf_feed_manager_class_init,
- NULL,
- NULL,
- sizeof(GfFeedManager),
- 0,
- gf_feed_manager_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);
-
+
if(!priv->fp)
return;
@@ -214,15 +214,9 @@
if(type == 0) {
static const GTypeInfo info = {
- sizeof(GfFileLoggerClass),
- NULL, /* base_init */
- NULL, /* base_finalize */
- (GClassInitFunc)gf_file_logger_class_init,
- NULL, /* class_finalize */
- NULL, /* class_data */
- sizeof(GfFileLogger),
- 0, /* n_preallocs */
- 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 @@
if(type == 0) {
static const GTypeInfo info = {
- sizeof(GfImageClass),
- NULL,
- NULL,
- (GClassInitFunc)gf_image_class_init,
- NULL,
- NULL,
- sizeof(GfImage),
- 0,
- NULL,
- NULL
+ .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 @@
if(type == 0) {
static const GTypeInfo info = {
- sizeof(GfLoggerClass),
- NULL, /* base_init */
- NULL, /* base_finalize */
- (GClassInitFunc)gf_logger_class_init,
- NULL, /* class_finalize */
- NULL, /* class_data */
- sizeof(GfLogger),
- 0, /* n_preallocs */
- 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 @@
if(type == 0) {
static const GTypeInfo info = {
- sizeof(GfNamedObjectClass),
- NULL, /* base_init */
- NULL, /* base_finalize */
- NULL,
- NULL, /* class_finalize */
- NULL, /* class_data */
- sizeof(GfNamedObject),
- 0, /* n_preallocs */
- 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 @@
if(type == 0) {
static const GTypeInfo info = {
- sizeof(GfNativePluginClass),
- NULL,
- NULL,
- (GClassInitFunc)gf_native_plugin_class_init,
- NULL,
- NULL,
- sizeof(GfNativePlugin),
- 0,
- NULL,
+ .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,
- NULL,
- NULL
+ .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 @@
if(type == 0) {
static const GTypeInfo info = {
- sizeof(GfNativePluginLoaderClass),
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- sizeof(GfNativePluginLoader),
- 0,
- NULL,
+ .class_size = sizeof(GfNativePluginLoaderClass),
+ .instance_size = sizeof(GfNativePluginLoader),
};
static const GInterfaceInfo loader_info = {
- (GInterfaceInitFunc)gf_native_plugin_loader_loader_init,
- NULL,
- NULL
+ .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 @@
if(type == 0) {
static const GTypeInfo info = {
- sizeof(GfObjectClass),
- NULL, /* base_init */
- NULL, /* base_finalize */
- (GClassInitFunc)gf_object_class_init,
- NULL, /* class_finalize */
- NULL, /* class_data */
- sizeof(GfObject),
- 0, /* n_preallocs */
- 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 @@
if(type == 0) {
static const GTypeInfo info = {
- sizeof(GfPluginClass),
- NULL,
- NULL,
- (GClassInitFunc)gf_plugin_class_init,
- NULL,
- NULL,
- sizeof(GfPlugin),
- 0,
- NULL,
+ .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 @@
if(type == 0) {
static const GTypeInfo info = {
- sizeof(GfPluginLoaderIface),
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- 0,
- 0,
- NULL,
+ .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 @@
if(type == 0) {
static const GTypeInfo info = {
- sizeof(GfPreferenceEngineClass),
- NULL,
- NULL,
- (GClassInitFunc)gf_preference_engine_class_init,
- NULL,
- NULL,
- sizeof(GfPreferenceEngine),
- 0,
- NULL,
+ .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 @@
if(type == 0) {
static const GTypeInfo info = {
- sizeof(GfPreferenceEngineNullClass),
- NULL,
- NULL,
- (GClassInitFunc)gf_preference_engine_null_class_init,
- NULL,
- NULL,
- sizeof(GfPreferenceEngine),
- 0,
- NULL,
+ .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 @@
if(type == 0) {
static const GTypeInfo info = {
- sizeof(GfPreferenceEngineXMLClass),
- NULL,
- NULL,
- (GClassInitFunc)gf_preference_engine_xml_class_init,
- NULL,
- NULL,
- sizeof(GfPreferenceEngineXML),
- 0,
- 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 @@
if(type == 0) {
static const GTypeInfo info = {
- sizeof(GfPreferencesProxyClass),
- NULL,
- NULL,
- (GClassInitFunc)gf_preferences_proxy_class_init,
- NULL,
- NULL,
- sizeof(GfPreferencesProxy),
- 0,
- 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 @@
if(type == 0) {
static const GTypeInfo info = {
- sizeof(GfPreferencesProxyEntryClass),
- NULL,
- NULL,
- (GClassInitFunc)gf_preferences_proxy_entry_class_init,
- NULL,
- NULL,
- sizeof(GfPreferencesProxyEntry),
- 0,
- NULL,
- NULL
+ .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 @@
if(type == 0) {
static const GTypeInfo info = {
- sizeof(GfServerConnectionClass),
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- sizeof(GfServerConnection),
- 0,
- NULL,
- NULL
+ .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),
- NULL,
- NULL,
- (GClassInitFunc)gf_type_query_context_class_init,
- NULL,
- NULL,
- sizeof(GfTypeQueryContext),
- 0,
- NULL,
+ .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,