Esempio n. 1
0
static void test_gebr_help_about(void)
{
	GtkWidget *about = gebr_gui_about_setup_ui("gebr", NULL).dialog;
	gtk_widget_show(about);
	gtk_loop();
	GtkWidget *ok = gtk_test_find_widget (about, "Close", GTK_TYPE_BUTTON);
	gboolean hit = gtk_test_widget_send_key (ok, GDK_Return, 0);
	g_assert (hit == TRUE);
	gtk_loop();
	gtk_widget_show(about);
	gtk_loop();
	gboolean click = gtk_test_widget_click(ok, 1, 0);
	g_assert (click == TRUE);
	gtk_loop();
}
Esempio n. 2
0
void display_loop(void)
{
  switch(DisplayMode) {
  case DisplayReport:
  case DisplayTXT:
  case DisplayXML:
  case DisplayCSV:
  case DisplaySplit:            /* BL */
  case DisplayCurses:
  case DisplayRaw:
    select_loop();
    break;
  case DisplayGTK:
    gtk_loop();
    break;
  }
}