diff options
author | Matthias Clasen <mclasen@redhat.com> | 2008-09-29 20:55:31 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2008-09-29 20:55:31 +0000 |
commit | 680c460ff2bba4cfa9da6773fecca4729de17d3f (patch) | |
tree | 5b789573ecdf3dc39e27bd28d304de0c78a2b7bc /gtk | |
parent | 859aaf903d8e6ad5ca93c3205771edadfc24969c (diff) | |
download | gtk+-680c460ff2bba4cfa9da6773fecca4729de17d3f.tar.gz |
Add a getter for the the sealed context_id field.
2008-09-29 Matthias Clasen <mclasen@redhat.com>
* 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
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtk.symbols | 1 | ||||
-rw-r--r-- | gtk/gtkimmulticontext.c | 19 | ||||
-rw-r--r-- | gtk/gtkimmulticontext.h | 2 |
3 files changed, 21 insertions, 1 deletions
diff --git a/gtk/gtk.symbols b/gtk/gtk.symbols index 1d68fec073..ebe20d4b8e 100644 --- a/gtk/gtk.symbols +++ b/gtk/gtk.symbols @@ -2019,6 +2019,7 @@ gtk_im_context_simple_new #if IN_HEADER(__GTK_IM_MULTICONTEXT_H__) #if IN_FILE(__GTK_IM_MULTICONTEXT_C__) gtk_im_multicontext_append_menuitems +gtk_im_multicontext_get_context_id gtk_im_multicontext_get_type G_GNUC_CONST gtk_im_multicontext_new #endif 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" diff --git a/gtk/gtkimmulticontext.h b/gtk/gtkimmulticontext.h index f02bd30db4..9e444cb00a 100644 --- a/gtk/gtkimmulticontext.h +++ b/gtk/gtkimmulticontext.h @@ -68,6 +68,8 @@ GtkIMContext *gtk_im_multicontext_new (void); void gtk_im_multicontext_append_menuitems (GtkIMMulticontext *context, GtkMenuShell *menushell); +const char * gtk_im_multicontext_get_context_id (GtkIMMulticontext *context); + G_END_DECLS |