Re: [gtkmm] simple libglademm program barfs telling me to call g_type_init()
- From: joey yandle <jwy divisionbyzero com>
- To: Nick Nolan <hellish comcast net>
- Cc: gtkmm mailing list <gtkmm-list gnome org>
- Subject: Re: [gtkmm] simple libglademm program barfs telling me to call g_type_init()
- Date: 8 Sep 2003 19:57:38 -0700
> #include <libglademm.h>
>
> int main(int argc,char *argv[])
> {
> Glib::RefPtr<Gnome::Glade::Xml> refXml =
> Gnome::Glade::Xml::create("gic2.glade");
> }
>
You need to create a Gtk::Main object, like this:
int main(int argc, char** argv) {
Gtk::Main main(argc, argv);
...
}
This takes care of calling gtk_init(), etc.
cheers,
--
joey yandle
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]