since GtkIMContext derives directly from GObject now, we have to use the
Fri Oct 19 18:35:22 2001 Manish Singh <yosh@gimp.org> * gtk/{gtkentry.c,gtktextview.c}: since GtkIMContext derives directly from GObject now, we have to use the g_object_* functions, not gtk_object_*.
This commit is contained in:
committed by
Manish Singh
parent
24f99d6447
commit
3690112009
@ -903,10 +903,10 @@ gtk_entry_init (GtkEntry *entry)
|
||||
*/
|
||||
entry->im_context = gtk_im_multicontext_new ();
|
||||
|
||||
gtk_signal_connect (GTK_OBJECT (entry->im_context), "commit",
|
||||
GTK_SIGNAL_FUNC (gtk_entry_commit_cb), entry);
|
||||
gtk_signal_connect (GTK_OBJECT (entry->im_context), "preedit_changed",
|
||||
GTK_SIGNAL_FUNC (gtk_entry_preedit_changed_cb), entry);
|
||||
g_signal_connect (G_OBJECT (entry->im_context), "commit",
|
||||
G_CALLBACK (gtk_entry_commit_cb), entry);
|
||||
g_signal_connect (G_OBJECT (entry->im_context), "preedit_changed",
|
||||
G_CALLBACK (gtk_entry_preedit_changed_cb), entry);
|
||||
}
|
||||
|
||||
static void
|
||||
@ -921,7 +921,7 @@ gtk_entry_finalize (GObject *object)
|
||||
if (entry->cached_layout)
|
||||
g_object_unref (G_OBJECT (entry->cached_layout));
|
||||
|
||||
gtk_object_unref (GTK_OBJECT (entry->im_context));
|
||||
g_object_unref (G_OBJECT (entry->im_context));
|
||||
|
||||
if (entry->blink_timeout)
|
||||
g_source_remove (entry->blink_timeout);
|
||||
|
||||
Reference in New Issue
Block a user