From 680c460ff2bba4cfa9da6773fecca4729de17d3f Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 29 Sep 2008 20:55:31 +0000 Subject: Add a getter for the the sealed context_id field. 2008-09-29 Matthias Clasen * gtk/gtk.symbols: * gtk/gtkimmulticontext.[hc] (gtk_im_multicontext_get_context_id): Add a getter for the the sealed context_id field. svn path=/trunk/; revision=21546 --- gtk/gtkimmulticontext.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'gtk/gtkimmulticontext.c') diff --git a/gtk/gtkimmulticontext.c b/gtk/gtkimmulticontext.c index f33a6cc750..70820a942a 100644 --- a/gtk/gtkimmulticontext.c +++ b/gtk/gtkimmulticontext.c @@ -524,7 +524,7 @@ pathnamecmp (const char *a, /** * gtk_im_multicontext_append_menuitems: - * @context: a #GtkIMMultiContext + * @context: a #GtkIMMulticontext * @menushell: a #GtkMenuShell * * Add menuitems for various available input methods to a menu; @@ -628,5 +628,22 @@ gtk_im_multicontext_append_menuitems (GtkIMMulticontext *context, g_free (contexts); } +/** + * gtk_im_multicontext_get_context_id: + * @context: a #GtkIMMulticontext + * + * Gets the id of the currently active slave of the @context. + * + * Returns: the id of the currently active slave + * + * Since: 2.16 + */ +const char * +gtk_im_multicontext_get_context_id (GtkIMMulticontext *context) +{ + return context->context_id; +} + + #define __GTK_IM_MULTICONTEXT_C__ #include "gtkaliasdef.c" -- cgit v1.2.1