2 #include <glade/glade.h>
4 void some_handler(GtkWidget
* widget
)
6 /* a handler referenced by the glade file. Must not be static
7 * so that it appears in the global symbol table. */
10 int main(int argc
, char **argv
)
15 gtk_init(&argc
, &argv
);
16 xml
= glade_xml_new("xml.glade", NULL
, NULL
);
18 /* get a widget (useful if you want to change something) */
19 widget
= glade_xml_get_widget(xml
, "widgetname");
21 /* connect signal handlers */
22 glade_xml_signal_autoconnect(xml
);