diff options
author | Owen Taylor <otaylor@redhat.com> | 2001-10-19 19:28:27 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2001-10-19 19:28:27 +0000 |
commit | effa390541fec858ea0d19027bfa6bfcaaa33a58 (patch) | |
tree | c065d2b5e9a40dfce0c02883aab72e2894e5c25f /gtk/gtkimcontext.c | |
parent | fcc879074823616ea2017f927cecd344f35c1858 (diff) | |
download | gtk+-effa390541fec858ea0d19027bfa6bfcaaa33a58.tar.gz |
Make GtkIMContext derive from GObject, not GtkObject. (#62621)
Fri Oct 19 15:08:30 2001 Owen Taylor <otaylor@redhat.com>
* gtk/{gtkimcontext.c,gtkimcontextsimple.c,gtkimmulticontext.c}
modules/input/{gtkimcontextxim.c,imcyrillic-translit.c,iminuktitut.c,
imipa.c,imthai-broken.c,imviqr.c}: Make GtkIMContext derive from
GObject, not GtkObject. (#62621)
Diffstat (limited to 'gtk/gtkimcontext.c')
-rw-r--r-- | gtk/gtkimcontext.c | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/gtk/gtkimcontext.c b/gtk/gtkimcontext.c index 2d6018b34e..46057a6ff2 100644 --- a/gtk/gtkimcontext.c +++ b/gtk/gtkimcontext.c @@ -47,19 +47,22 @@ gtk_im_context_get_type (void) if (!im_context_type) { - static const GtkTypeInfo im_context_info = + static const GTypeInfo im_context_info = { - "GtkIMContext", - sizeof (GtkIMContext), - sizeof (GtkIMContextClass), - (GtkClassInitFunc) gtk_im_context_class_init, - (GtkObjectInitFunc) gtk_im_context_init, - /* reserved_1 */ NULL, - /* reserved_2 */ NULL, - (GtkClassInitFunc) NULL, + sizeof (GtkIMContextClass), + (GBaseInitFunc) NULL, + (GBaseFinalizeFunc) NULL, + (GClassInitFunc) gtk_im_context_class_init, + NULL, /* class_finalize */ + NULL, /* class_data */ + sizeof (GtkIMContext), + 0, /* n_preallocs */ + (GInstanceInitFunc) gtk_im_context_init, }; - - im_context_type = gtk_type_unique (GTK_TYPE_OBJECT, &im_context_info); + + im_context_type = g_type_register_static (G_TYPE_OBJECT, + "GtkIMContext", + &im_context_info, 0); } return im_context_type; |