Back to index

im-sdk  12.3.91
main.c File Reference
#include <config.h>
#include <gtk/gtkmain.h>
#include <gtk/gtkdrawingarea.h>
#include <gtk/gtksignal.h>
#include <panel-applet.h>
#include <gnome.h>
#include "gnome-im-switcher.h"
#include "widgets.h"
#include "preference.h"
#include "iiim-interface.h"

Go to the source code of this file.


static gboolean gimlet_applet_new (PanelApplet *applet, gpointer data)
static gboolean imswitcher_applet_factory (PanelApplet *applet, const gchar *iid, gpointer data)
 PANEL_APPLET_BONOBO_FACTORY ("OAFIID:GNOME_imswitcher_Factory", PANEL_TYPE_APPLET,"GNOME Input Method Applet","0", imswitcher_applet_factory, NULL)

Function Documentation

static gboolean gimlet_applet_new ( PanelApplet *  applet,
gpointer  data 
) [static]

Definition at line 34 of file main.c.

  GimletWindow *gimlet;

  gimlet = g_new0 (GimletWindow, 1);

  gimlet->applet = applet;

  /* default preference settings */
  gimlet->conversion_on_start = TRUE;
  gimlet->input_lang_policy = FOLLOW_QUICK_ACCESS_MENU;

  gimlet->conversion_mode = FALSE;

  gimlet_preference_init (gimlet);

  gimlet_iiim_selection_set (gimlet);

  gimlet_init (gimlet);

  return TRUE;

Here is the call graph for this function:

Here is the caller graph for this function:

static gboolean imswitcher_applet_factory ( PanelApplet *  applet,
const gchar *  iid,
gpointer  data 
) [static]

Definition at line 58 of file main.c.

  gboolean retval = FALSE;
  if (strcmp (iid, "OAFIID:GNOME_imswitcher") != 0)
    return FALSE;

  retval = gimlet_applet_new (applet, data);
  return retval;

Here is the call graph for this function:

"GNOME Input Method Applet"  ,
"0"  ,
imswitcher_applet_factory  ,