summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorGlynn Foster <glynn.foster@sun.com>2003-01-14 03:16:47 +0000
committerGlynn Foster <gman@src.gnome.org>2003-01-14 03:16:47 +0000
commit15538e120d8d184962d406fee5d7bd6600d2463d (patch)
treeb3472e2b6c1e6566f25ace12a59bc89fc23638c6 /src/main.c
parentf00eb34c0604dcf68457ab09278295f647c622b8 (diff)
Add an about box. Still need to add an icon, and implement the callbacks
2003-01-14 Glynn Foster <glynn.foster@sun.com> * src/Makefile.am, src/about.c, src/main.c, src/zenity.glade: Add an about box. Still need to add an icon, and implement the callbacks for Help and Credits. Extra hassle for not linking against libgnomeui. Sigh.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 2623232..bcd3208 100644
--- a/src/main.c
+++ b/src/main.c
@@ -37,6 +37,7 @@ typedef enum {
MODE_TEXTINFO,
MODE_WARNING,
MODE_INFO,
+ MODE_ABOUT,
MODE_LAST
} ZenityDialogMode;
@@ -849,6 +850,9 @@ main (gint argc, gchar **argv) {
case MODE_TEXTINFO:
zenity_text (results->data, results->text_data);
break;
+ case MODE_ABOUT:
+ zenity_about (results->data);
+ break;
default:
g_assert_not_reached ();
zenity_free_parsing_options ();
@@ -1204,8 +1208,7 @@ void zenity_parse_options_callback (poptContext ctx,
zenity_free_parsing_options ();
exit (-1);
}
- g_print ("This does nothing at the moment\n");
- exit (0);
+ results->mode = MODE_ABOUT;
break;
case OPTION_VERSION:
if (results->mode != MODE_LAST) {