libglademm



Hi,
I found the section on libglademm not comprehensive enough. After
digging through the net, here is a contribution i have to the book
"Programming with libglademm" at
http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/index.html

Here is a sample program written with libgademm:

#include <gtkmm.h>
#include <libglademm.h>

int main(int argc, char *argv[])
{
    Gtk::Main kit (argc, argv);
    Glib::RefPtr<Gnome::Glade::Xml> refXml =
Gnome::Glade::Xml::create("hello.glade");
   kit.run ();

 return 0;
}

Compile it with 

g++ gtkmmtest.cc -o gnumu `pkg-config gtkmm-2.4 libglademm-2.4 --cflags
--libs`



I hope that this sample program will make the section on libglademm
clearer. thanks!

Wei Jie




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]