if (im_hangul_is_empty (hcontext)) {
if (im_hangul_ic_is_empty (hcontext)) {
get_candidate_table (GtkIMContextHangul *hcontext,		     gchar *label_buf,		     gsize buf_size,		     const CandidateItem **table){  gunichar ch = 0;  if (im_hangul_is_empty (hcontext)) {    gchar *text = NULL;    gint cursor_index = 0;    gtk_im_context_get_surrounding (GTK_IM_CONTEXT(hcontext),				    &text, &cursor_index);    if (text != NULL) {      ch = g_utf8_get_char_validated (text + cursor_index, 3);      g_free(text);      hcontext->surrounding_delete_length = 1;    }  } else if (hcontext->choseong[0] != 0 &&	     hcontext->jungseong[0] == 0 &&	     hcontext->jongseong[0] == 0) {    ch = im_hangul_choseong_to_cjamo(hcontext->choseong[0]);  } else {    ch = im_hangul_jamo_to_syllable (hcontext->choseong[0],				     hcontext->jungseong[0],				     hcontext->jongseong[0]);  }  if (ch > 0) {    int index = get_index_of_candidate_table (ch);    if (index != -1) {      int n;      n = g_unichar_to_utf8(ch, label_buf);      label_buf[n] = '\0';      *table = candidate_table[index] + 1;      return TRUE;    }  }  return FALSE;}