0
を取得することはできませんFileChooserButton
のgtkmmとFileChooserButtonは、私はfile_nameの後にウィジェットを使用してファイルを選択し取得してみてください、これは私のコードでファイル名
Gtk::FileChooserButton *chooserButton = nullptr;
std::string idChooserButton = commonArray[b]["id"];
builder->get_widget(idChooserButton, chooserButton);
Php::call("var_dump",chooserButton);
if (strcmp(commonArray[b]["action"], "click") == 0) {
Php::Value callback = commonArray[b]["callback"];
chooserButton->signal_selection_changed().connect(
sigc::bind<Php::Value,Php::Value>(
sigc::mem_fun(*this, &ParserGtk::callbacks),
callback,
chooserButton->get_filename()
)
);
}
私はfunctino get_filename
しかしget_filename
リターン、空の文字列「コール」。
あなたの仕事のおかげです! – Naumov