void disp_char(int index, char *ch) { if (gcin_edit_display_ap_only()) return; if (!top_bin) { // dbg("not top_bin"); create_win0(); create_win0_gui(); // return; } // dbg("disp_char %d %s\n", index, ch); create_char(index); GtkWidget *label = chars[index].label; if (label) { if (ch[0]==' ' && ch[1]==' ') set_label_space(label); else { gtk_label_set_text(GTK_LABEL(label), ch); } } #if GTK_CHECK_VERSION(3,0,0) // bug in gtk3 set_label_font_size(label, gcin_font_size); #endif get_win0_geom(); if (win_x + win_xl >= dpy_xl) move_win0(dpy_xl - win_xl, win_y); gtk_widget_show_all(chars[index].vbox); }
static void recreate_win0() { bzero(chars, sizeof(chars)); label_pho = NULL; create_win0_gui(); }
void show_win0() { #if _DEBUG && 1 dbg("show_win0 pop:%d in:%d for:%d \n", hime_pop_up_win, tsin_has_input(), force_show); #endif create_win0(); create_win0_gui(); if (hime_pop_up_win && !tsin_has_input() && !force_show) { // dbg("show ret\n"); return; } #if 0 if (!GTK_WIDGET_VISIBLE(gwin0)) #endif { // dbg("gtk_widget_show %x\n", gwin0); move_win0(win_x, win_y); gtk_widget_show(gwin0); } show_win_sym(); if (current_CS->b_raise_window) { gtk_window_present(GTK_WINDOW(gwin0)); raise_tsin_selection_win(); } }
void show_win0() { #if WIN32 if (test_mode) return; #endif #if _DEBUG && 1 dbg("show_win0 pop:%d in:%d for:%d win_xy:%d,%d\n", gcin_pop_up_win, tsin_has_input(), force_show, win_x, win_y); #endif create_win0(); create_win0_gui(); if (gcin_pop_up_win && !tsin_has_input() && !force_show) { // dbg("show ret\n"); return; } #if WIN32 compact_win0(); #endif #if UNIX && 0 if (!GTK_WIDGET_VISIBLE(gwin0)) #endif { // dbg("gtk_widget_show %x\n", gwin0); #if UNIX move_win0(win_x, win_y); gtk_widget_show(gwin0); #else move_win0(win_x, win_y); gtk_widget_show(gwin0); // move_win0(win_x, win_y); #endif } show_win_sym(); #if UNIX if (current_CS->b_raise_window) #endif { gtk_window_present(GTK_WINDOW(gwin0)); raise_tsin_selection_win(); } }