im_hangul_set_toplevel_input_mode(hcontext, mode);
im_hangul_ic_set_toplevel_input_mode(hcontext, mode);
im_hangul_set_input_mode(GtkIMContextHangul *hcontext, int mode){  switch (mode) {    case INPUT_MODE_DIRECT:      im_hangul_set_input_mode_info (hcontext->client_window,				     INPUT_MODE_INFO_ENGLISH);      im_hangul_hide_status_window(hcontext);      g_signal_emit_by_name (hcontext, "preedit_end");      break;    case INPUT_MODE_HANGUL:      im_hangul_set_input_mode_info (hcontext->client_window,				     INPUT_MODE_INFO_HANGUL);      im_hangul_show_status_window(hcontext);      g_signal_emit_by_name (hcontext, "preedit_start");      break;  }  im_hangul_set_toplevel_input_mode(hcontext, mode);}