#include <stdio.h>#include <gtk/gtk.h>#include <glade/glade.h>GladeXML *xml;void on_ok_clicked(){ printf("Hello World\n");}int main(int argc, char *argv[]) { gtk_init(&argc, &argv); /* load the interface */ xml = glade_xml_new("/home/vikky/Projects/C/temp/temp/temp.glade", NULL, NULL); if (!xml) { g_warning("something bad happened while creating the interface"); return 1; } /* ok Buuton */ g_signal_connect (G_OBJECT (glade_xml_get_widget (xml, "ok")), "clicked", G_CALLBACK (on_ok_clicked), NULL); /* AUTO connect the signals in the interface use it in a large project with/only __dynamic linking__*/ glade_xml_signal_autoconnect(xml); gtk_main(); return 0;}