- xml = glade_xml_new("aoview.glade", NULL, NULL);
+ xml = glade_xml_new_from_buffer(aoview_glade, sizeof (aoview_glade), NULL, NULL);
+
/* connect the signals in the interface */
glade_xml_signal_autoconnect(xml);
/* Hook up the close button. */
mainwindow = glade_xml_get_widget(xml, "aoview");
/* connect the signals in the interface */
glade_xml_signal_autoconnect(xml);
/* Hook up the close button. */
mainwindow = glade_xml_get_widget(xml, "aoview");
g_signal_connect (G_OBJECT(mainwindow), "destroy",
G_CALLBACK(destroy_event), NULL);
g_signal_connect (G_OBJECT(mainwindow), "destroy",
G_CALLBACK(destroy_event), NULL);