Builder create_from_file throwing exception
- From: Abhay Raj Singh Rathod <abhayonlyone gmail com>
- To: gtkmm-list gnome org
- Subject: Builder create_from_file throwing exception
- Date: Thu, 4 Jun 2020 04:36:44 +0530
Hi Everyone!
I am a GSoC 2020 student developer working with
Inkscape this year for the feature command palette (that will help you to find operation you can perform).
I plan to use glade for UI designing. But Gtk::Builder::create_from_file(...) throws error basic_string::_M_construct null not valid
Files in question:
CPP
Code block in question (current code, a bit different from repo)
{
auto gladefile = get_filename_string(Inkscape::IO::Resource::UIS, "command-palette-main.glade");
// TODO: fails
try {
_builder = Gtk::Builder::create_from_file(gladefile, "CPBase");
} catch (const Glib::Error &ex) {
std::cerr << ex.what() << ex.domain() << std::endl;
g_warning("Glade file loading failed for command palette dialog");
return;
}
}
The file is loaded found but the error basic_string::_M_construct null not valid
Pops up.
Please suggest a solution or what could be the problem, other than ditching glade(backup plan).
Thanks and regards,
Abhay
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]