diff options
Diffstat (limited to 'aoview/aoview_main.c')
| -rw-r--r-- | aoview/aoview_main.c | 7 | 
1 files changed, 7 insertions, 0 deletions
diff --git a/aoview/aoview_main.c b/aoview/aoview_main.c index 9e32e639..e2164e05 100644 --- a/aoview/aoview_main.c +++ b/aoview/aoview_main.c @@ -32,6 +32,7 @@ int main(int argc, char **argv)  	GladeXML *xml = NULL;  	GtkWidget *mainwindow;  	char *device = NULL; +	GtkAboutDialog *about_dialog;  	static struct option long_options[] = {  		{ "device", 1, 0, 'd'}, @@ -62,9 +63,15 @@ int main(int argc, char **argv)  	/* Hook up the close button. */  	mainwindow = glade_xml_get_widget(xml, "aoview"); +	assert(mainwindow); +  	g_signal_connect (G_OBJECT(mainwindow), "destroy",  	    G_CALLBACK(destroy_event), NULL); +	about_dialog = GTK_ABOUT_DIALOG(glade_xml_get_widget(xml, "about_dialog")); +	assert(about_dialog); +	gtk_about_dialog_set_version(about_dialog, AOVIEW_VERSION); +  	aoview_dev_dialog_init(xml);  	aoview_state_init(xml);  | 
