mail-archives/gtk-sharp-list/2007-March/007858.html

83 строки
2.8 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Gtk-sharp-list] How to use IMContext?
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20How%20to%20use%20IMContext%3F&In-Reply-To=">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="007857.html">
<LINK REL="Next" HREF="007859.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Gtk-sharp-list] How to use IMContext?</H1>
<B>Tamara Roberson</B>
<A HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20How%20to%20use%20IMContext%3F&In-Reply-To="
TITLE="[Gtk-sharp-list] How to use IMContext?">foxxygirltamara at gmail.com
</A><BR>
<I>Fri Mar 9 04:34:43 EST 2007</I>
<P><UL>
<LI>Previous message: <A HREF="007857.html">[Gtk-sharp-list] Resizing Gtk.Table
</A></li>
<LI>Next message: <A HREF="007859.html">[Gtk-sharp-list] Overriding OnDestroyEvent
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#7858">[ date ]</a>
<a href="thread.html#7858">[ thread ]</a>
<a href="subject.html#7858">[ subject ]</a>
<a href="author.html#7858">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>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)-&gt;im_context, &amp;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?
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="007857.html">[Gtk-sharp-list] Resizing Gtk.Table
</A></li>
<LI>Next message: <A HREF="007859.html">[Gtk-sharp-list] Overriding OnDestroyEvent
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#7858">[ date ]</a>
<a href="thread.html#7858">[ thread ]</a>
<a href="subject.html#7858">[ subject ]</a>
<a href="author.html#7858">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">More information about the Gtk-sharp-list
mailing list</a><br>
</body></html>