gtk信息弹框
static int te_connect_dialog(SpiceSession *session) { GtkWidget *dialog; int retval; dialog = gtk_message_dialog_new(NULL, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_INFO, GTK_BUTTONS_OK, "\n虚拟机连接异常,请重启虚拟机\n"); gtk_window_set_title(GTK_WINDOW(dialog), "Information"); gtk_dialog_run(GTK_DIALOG(dialog)); retval=-1; gtk_widget_destroy(dialog); return retval; }