Clean up remaining deprecated preprocessor commands
This commit is contained in:
committed by
Michael Webster
parent
36b625be6a
commit
7e6a888e1d
@@ -40,13 +40,13 @@
|
||||
#include "xed-settings.h"
|
||||
#include "xed-utils.h"
|
||||
|
||||
G_DEFINE_TYPE (XedPluginsEngine, xed_plugins_engine, PEAS_TYPE_ENGINE)
|
||||
|
||||
struct _XedPluginsEnginePrivate
|
||||
{
|
||||
GSettings *plugin_settings;
|
||||
};
|
||||
|
||||
G_DEFINE_TYPE_WITH_PRIVATE (XedPluginsEngine, xed_plugins_engine, PEAS_TYPE_ENGINE)
|
||||
|
||||
XedPluginsEngine *default_engine = NULL;
|
||||
|
||||
static void
|
||||
@@ -58,7 +58,7 @@ xed_plugins_engine_init (XedPluginsEngine *engine)
|
||||
|
||||
xed_debug (DEBUG_PLUGINS);
|
||||
|
||||
engine->priv = G_TYPE_INSTANCE_GET_PRIVATE (engine, XED_TYPE_PLUGINS_ENGINE, XedPluginsEnginePrivate);
|
||||
engine->priv = xed_plugins_engine_get_instance_private (engine);
|
||||
|
||||
engine->priv->plugin_settings = g_settings_new ("org.x.editor.plugins");
|
||||
|
||||
@@ -142,8 +142,6 @@ xed_plugins_engine_class_init (XedPluginsEngineClass *klass)
|
||||
GObjectClass *object_class = G_OBJECT_CLASS (klass);
|
||||
|
||||
object_class->dispose = xed_plugins_engine_dispose;
|
||||
|
||||
g_type_class_add_private (klass, sizeof (XedPluginsEnginePrivate));
|
||||
}
|
||||
|
||||
XedPluginsEngine *
|
||||
|
Reference in New Issue
Block a user