IM status area problem



Hello,

I've just started working with GTK in a japanese platform and I'm having a
few problems.
In one of my examples I have two entry widgets, if I activate the IM mode
(Shift +Space) in one of them the status area (the small floating window
with the letter "a" in japanese) will show up bellow the main window. When
I change the focus to second entry, which does not have the IM mode
activated, the status area does not hide as it should.

The status area should be visible only if the widget who has the focus is
with the IM activated.

Another problem, in other apps I've test (balsa, gftp) the status area
appear below the caret and not bellow the main window. Btw, these app work
just fine.

My system:
Redhat 7.3
Gtk2 2.0.5
Pango 1.0.3
LANG ja_JP.eucJP
Input method: XIM (i guess)

Example code:
#include <gtk/gtk.h>

int main (int argc, char** argv) {
      GtkWidget* shellHandle, *vboxHandle, *text0Handle, *text1Handle;

      gtk_init (&argc, &argv);
      shellHandle = gtk_window_new (GTK_WINDOW_TOPLEVEL);
      vboxHandle = gtk_vbox_new (0, 6);
      text0Handle  = gtk_entry_new();
      text1Handle  = gtk_entry_new();

      gtk_container_add (GTK_CONTAINER (shellHandle), vboxHandle);
      gtk_container_add (GTK_CONTAINER (vboxHandle), text1Handle);
      gtk_container_add (GTK_CONTAINER (vboxHandle), text0Handle);

      g_signal_connect (G_OBJECT (shellHandle), "destroy", G_CALLBACK
(gtk_main_quit), NULL);
      g_signal_connect (G_OBJECT (shellHandle), "delete_event",G_CALLBACK
(gtk_main_quit), NULL);

      gtk_widget_show_all (shellHandle);
      gtk_main();
      return 0;
}

Compile command:
 gcc -o texts texts.c `pkg-config --cflags --libs gtk+-2.0`

Thanks,
Felipe





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]