1
以下錯誤消息是代碼..的gtkmm - GTK從:: appchooserdialog
Glib::RefPtr<Gio::File> file = Gio::File::create_for_path(filepath);
Gtk::AppChooserDialog *dialog = new Gtk::AppChooserDialog(file, *this);
if (dialog->run() == Gtk::RESPONSE_OK) {
Glib::RefPtr<Gio::AppInfo> appinfo = dialog->get_app_info();
appinfo->launch(file);
}
dialog->hide();
這是消息在執行上面的代碼時,我得到..
glibmm-WARNING **: Glib::ConstructParams::ConstructParams(): object class "gtkmm__GtkAppChooserDialog" has no property named "file"
我可能在這裏犯了一個愚蠢的錯誤。誰能幫我這個?在此先感謝..