summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlynn Foster <glynn.foster@sun.com>2003-01-29 02:20:02 +0000
committerGlynn Foster <gman@src.gnome.org>2003-01-29 02:20:02 +0000
commitfeef0396836668db950026ce637ce805900dc1d7 (patch)
tree9447ab4e36afb6ab077bac770be90b49fdbe9463
parentUpdate (diff)
downloadzenity-feef0396836668db950026ce637ce805900dc1d7.tar.gz
zenity-feef0396836668db950026ce637ce805900dc1d7.tar.bz2
zenity-feef0396836668db950026ce637ce805900dc1d7.zip
Don't do a g_assert_not_reached () if we don't have any dialog types.
2003-01-29 Glynn Foster <glynn.foster@sun.com> * src/main.c: Don't do a g_assert_not_reached () if we don't have any dialog types.
-rw-r--r--ChangeLog5
-rw-r--r--src/main.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f9d5fc9e..262d4811 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2003-01-29 Glynn Foster <glynn.foster@sun.com>
+ * src/main.c: Don't do a g_assert_not_reached () if we don't have
+ any dialog types.
+
+2003-01-29 Glynn Foster <glynn.foster@sun.com>
+
* README: Update
* configure.in: Remove some bogus configure checks that
diff --git a/src/main.c b/src/main.c
index 13399236..233aba53 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1020,6 +1020,10 @@ main (gint argc, gchar **argv) {
case MODE_ABOUT:
zenity_about (results->data);
break;
+ case MODE_LAST:
+ g_printerr (_("You must specify a dialog type. See 'zenity --help' for details\n"));
+ zenity_free_parsing_options ();
+ exit (-1);
default:
g_assert_not_reached ();
zenity_free_parsing_options ();
bgstack15