Exemplo n.º 1
0
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();
    }
}
Exemplo n.º 2
0
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();
  }
}