[Gtk-sharp-list] How to use IMContext?

Tamara Roberson foxxygirltamara at gmail.com
Fri Mar 9 04:34:43 EST 2007

In C, I can do something like this:

static gboolean check_preedit(GtkWidget *text_view)
        gchar *str;

                GTK_TEXT_VIEW(text_view)->im_context, &str, NULL, NULL);
        if (strlen(str)) {
                return TRUE;
        return FALSE;

gtk/gtk.h defines a pointer to the GtkIMContext for a text view:

  GtkIMContext *im_context;

However, looking through gtk/generated/TextView.cs, I see no property by
which to grab the associated IMContext.  Grepping through the whole of
Gtk# only returns the IMContext* classes.  How do I use IMContext?

More information about the Gtk-sharp-list mailing list