summaryrefslogtreecommitdiff
path: root/aoview/aoview_main.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-05-17 23:05:23 -0700
committerKeith Packard <keithp@keithp.com>2009-05-17 23:05:23 -0700
commit26361686d6fc63dc22d22285f0543c5c2c756fb4 (patch)
treef7fe8b9b3a857eb97a83da7b7f611e3dac0a4eec /aoview/aoview_main.c
parent0f3233c49f43cd4e372e613303919ce4d50255b2 (diff)
Add About dialog to aoview.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'aoview/aoview_main.c')
-rw-r--r--aoview/aoview_main.c7
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);