Working With libglade (Cont.) Here is the 'main' function when using libglade: /* pointer to glade's XML parser object. */ GladeXML* glade_xml; /* initialize gtk. */ gtk_init(&argc, &argv); /* initialize libglade. */ glade_init(); /* initialize glade'x XML parser. give it the name of the */ /* top-window from the file that we want ot it parse. this */ /* will cause the top window to be created and made visible. */ glade_xml = glade_xml_new("hello-glade.glade", "window"); /* get libglade to conect all widget signals to the */ /* defined functions. */ glade_xml_signal_autoconnect(glade_xml);