Commit d92a02f7 authored by Matthias Clasen's avatar Matthias Clasen

im module: Remvoe an unneeded variable

The G_DEFINE_TYPE macros automate the parent_class handling.
parent fd682a58
......@@ -117,8 +117,6 @@ static gint n_loaded_contexts = 0;
static GHashTable *contexts_hash = NULL;
static GSList *modules_list = NULL;
static GObjectClass *parent_class = NULL;
static gboolean
gtk_im_module_load (GTypeModule *module)
{
......@@ -176,6 +174,8 @@ gtk_im_module_unload (GTypeModule *module)
}
}
G_DEFINE_TYPE (GtkIMModule, gtk_im_module, G_TYPE_TYPE_MODULE)
/* This only will ever be called if an error occurs during
* initialization
*/
......@@ -186,19 +186,15 @@ gtk_im_module_finalize (GObject *object)
g_free (module->path);
parent_class->finalize (object);
G_OBJECT_CLASS (gtk_im_module_parent_class)->finalize (object);
}
G_DEFINE_TYPE (GtkIMModule, gtk_im_module, G_TYPE_TYPE_MODULE)
static void
gtk_im_module_class_init (GtkIMModuleClass *class)
{
GTypeModuleClass *module_class = G_TYPE_MODULE_CLASS (class);
GObjectClass *gobject_class = G_OBJECT_CLASS (class);
parent_class = G_OBJECT_CLASS (g_type_class_peek_parent (class));
module_class->load = gtk_im_module_load;
module_class->unload = gtk_im_module_unload;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment