[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_im_context_get_preedit_string(
                GTK_TEXT_VIEW(text_view)->im_context, &str, NULL, NULL);
        if (strlen(str)) {
                g_free(str);
                return TRUE;
        }
        g_free(str);
        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