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;
}

  

posted @ 2017-06-09 15:24  不会游泳的鱼pdj  阅读(984)  评论(0编辑  收藏  举报