Gnome::UI::App with libglademm
- From: Simon Siemens <Simon Siemens arcor de>
- To: gtkmm-list gnome org
- Subject: Gnome::UI::App with libglademm
- Date: Fri, 01 Sep 2006 18:51:50 +0200
I try to to create a C++-Gnome-application with libglademm. I use the
following main function:
int main(int argc, char **argv)
{
Gtk::Main kit(argc, argv);
Glib::RefPtr<Gnome::Glade::Xml> refXml;
try {
refXml = Gnome::Glade::Xml::create("../btperformance.glade");
} catch (const Gnome::Glade::XmlError& ex) {
std::cerr << ex.what() << std::endl;
return 1;
}
return 0;
}
It compiles well. However when I execute it, there is an error:
GnomeUI-ERROR **: You must call gnome_program_init() before creating a
GnomeApp
aborting...
Aborted
What is going wrong? I think, I shouldn't use gnome_program_init,
because I want to use the ...mm libraries (e.g. gnomemm or gnomeuimm).
In glade I chose the application type GnomeApp (which might be the C
type corresponding with Gnome::UI::App).
Thanks for your help,
Simon
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]