Back to index

im-sdk  12.3.91
Functions
widgets.h File Reference
#include "gnome-im-switcher.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void gimlet_init (GimletWindow *gimlet)
void gimlet_update_lang (GimletWindow *gimlet)
void gimlet_status_set_text (GimletWindow *gimlet, gchar *text)
void gimlet_status_show_or_hide (GimletWindow *gimlet)

Function Documentation

void gimlet_init ( GimletWindow *  gimlet)

Definition at line 379 of file widgets.c.

{
  panel_applet_set_flags (gimlet->applet, PANEL_APPLET_EXPAND_MINOR);

  g_signal_connect (G_OBJECT(gimlet->applet), "key_press_event",
                  G_CALLBACK(key_press_cb), gimlet);
                     
  panel_applet_setup_menu_from_file (gimlet->applet,
                                 NULL,
                                 "GNOME_InputMethodSwitcherApplet.xml",
                                 NULL,
                                 menu_verbs,
                                 gimlet);
#ifdef GNOME_PANEL_APPLET_2_4
  if (panel_applet_get_locked_down (gimlet->applet))
    {
      BonoboUIComponent *popup_component;

      popup_component = panel_applet_get_popup_component (gimlet->applet);

      bonobo_ui_component_set_prop (popup_component,
                                "/commands/Props",
                                "hidden", "1",
                                NULL);
    }
#endif

  place_widgets (gimlet);

  gimlet_language_init (gimlet);

  set_default_window_icon ();

  return;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void gimlet_status_set_text ( GimletWindow *  gimlet,
gchar *  text 
)

Definition at line 433 of file widgets.c.

{
  gtk_label_set_text (GTK_LABEL(gimlet->status_label), text);
  gimlet_status_show_or_hide (gimlet);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void gimlet_status_show_or_hide ( GimletWindow *  gimlet)

Definition at line 422 of file widgets.c.

{
  if (gimlet->conversion_mode && gimlet->im_enabled &&
      gimlet->status_enabled &&
      gimlet->status_placement == ON_DESKTOP_PANEL)
    gtk_widget_show (GTK_WIDGET (gimlet->status_label));
  else
    gtk_widget_hide (GTK_WIDGET (gimlet->status_label));
}

Here is the caller graph for this function:

void gimlet_update_lang ( GimletWindow *  gimlet)

Definition at line 416 of file widgets.c.

{
  gtk_widget_queue_draw (gimlet->drawing_area);
}

Here is the caller graph for this function: