<< Back to man.ChinaUnix.net

<< Back to man.ChinaUnix.net

GtkIMMulticontext

GtkIMMulticontext — An input method context supporting multiple, loadable input methods

Synopsis


#include <gtk/gtk.h>


            GtkIMMulticontext;
GtkIMContext* gtk_im_multicontext_new       (void);
void        gtk_im_multicontext_append_menuitems
                                            (GtkIMMulticontext *context,
                                             GtkMenuShell *menushell);


Object Hierarchy


  GObject
   +----GtkIMContext
         +----GtkIMMulticontext

Description

Details

GtkIMMulticontext

typedef struct _GtkIMMulticontext GtkIMMulticontext;


gtk_im_multicontext_new ()

GtkIMContext* gtk_im_multicontext_new       (void);

Creates a new GtkIMMulticontext.

Returns : a new GtkIMMulticontext.

gtk_im_multicontext_append_menuitems ()

void        gtk_im_multicontext_append_menuitems
                                            (GtkIMMulticontext *context,
                                             GtkMenuShell *menushell);

Add menuitems for various available input methods to a menu; the menuitems, when selected, will switch the input method for the context and the global default input method.

context : a GtkIMMultiContext
menushell : a GtkMenuShell