imerkeyb.c File Reference

#include <string.h>
#include <gtk/gtkimmodule.h>
#include "ergtk-im-context-erkeyb.h"
#include "logging.h"
Include dependency graph for imerkeyb.c:

Go to the source code of this file.

Defines

#define IM_CONTEXT   "ergtk-im-erkeyb"

Functions

void im_module_list (const GtkIMContextInfo ***contexts, guint *n_contexts)
void im_module_init (GTypeModule *module)
void im_module_exit (void)
GtkIMContext * im_module_create (const gchar *context_id)

Variables

static const GtkIMContextInfo im_info
static const GtkIMContextInfo * info_list [] = { &im_info }

Define Documentation

#define IM_CONTEXT   "ergtk-im-erkeyb"

Copyright (C) 2009 iRex Technologies B.V. All rights reserved.

Definition at line 47 of file imerkeyb.c.

Referenced by im_module_create().


Function Documentation

GtkIMContext* im_module_create ( const gchar *  context_id  ) 

Definition at line 82 of file imerkeyb.c.

References DBG_ENTRY, DBG_EXIT, ergtk_im_context_erkeyb_new(), ERR, and IM_CONTEXT.

00083 {
00084     DBG_ENTRY;
00085     if (strcmp (context_id, IM_CONTEXT) == 0) {
00086         DBG_EXIT;
00087         return ergtk_im_context_erkeyb_new();
00088     } else {
00089         ERR("No new im context created!\n");
00090         DBG_EXIT;
00091         return NULL;
00092     }
00093 }

Here is the call graph for this function:

void im_module_exit ( void   ) 

Definition at line 76 of file imerkeyb.c.

References DBG_ENTRY, and DBG_EXIT.

00077 {
00078     DBG_ENTRY;
00079     DBG_EXIT;
00080 }

void im_module_init ( GTypeModule *  module  ) 

Definition at line 69 of file imerkeyb.c.

References DBG_ENTRY, DBG_EXIT, and ergtk_im_context_erkeyb_register_type().

00070 {
00071     DBG_ENTRY;
00072     ergtk_im_context_erkeyb_register_type (module);
00073     DBG_EXIT;
00074 }

Here is the call graph for this function:

void im_module_list ( const GtkIMContextInfo ***  contexts,
guint *  n_contexts 
)

Definition at line 63 of file imerkeyb.c.

References info_list.

00064 {
00065   *contexts = info_list;
00066   *n_contexts = G_N_ELEMENTS (info_list);
00067 }


Variable Documentation

const GtkIMContextInfo im_info [static]
Initial value:
 { 
    IM_CONTEXT, "Virtual Keyboard",  "", "", "*" 
}

Definition at line 53 of file imerkeyb.c.

const GtkIMContextInfo* info_list[] = { &im_info } [static]

Definition at line 57 of file imerkeyb.c.

Referenced by im_module_list().

Generated by  doxygen 1.6.2-20100208