summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorGlynn Foster <glynn.foster@sun.com>2003-01-18 13:35:13 +0000
committerGlynn Foster <gman@src.gnome.org>2003-01-18 13:35:13 +0000
commitf182d9f7fce8e9a57c03eb71f4467894394d0104 (patch)
treed937f36d601cf7aa611818f954268a3fdd8700ee /src/main.c
parent0e338ba3e0fa03b28664448af0cea686c5e6c26d (diff)
Some new window icons.
2003-01-18 Glynn Foster <glynn.foster@sun.com> * data/Makefile.am, data/zenity-calendar.png, data/zenity-entry.png, data/zenity-progress.png, data/zenity-text.png: Some new window icons. * src/text.c: Fix crash where the GladeXML ref was getting unref'd before we wanted to use it. * src/main.c: Fix up commandline parsing a little, although we should really add the parsing options for gtk+. * src/zenity.glade: Give some saner defaults. * THANKS, src/about.c: Update for all the people I stole icons and code from. * TODO: Update accordingly.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index bcd3208..58bb13e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -812,6 +812,9 @@ main (gint argc, gchar **argv) {
/*nothing*/;
if (nextopt != -1) {
+ /* FIXME : We should probably handle --display, or at least maybe load some of the gtk+
+ * commandline options
+ */
g_printerr (_("%s in an invalid option for this dialog\n"), poptBadOption (ctx, 0));
zenity_free_parsing_options ();
exit (-1);
@@ -1220,8 +1223,6 @@ void zenity_parse_options_callback (poptContext ctx,
exit (0);
break;
default:
- g_warning ("Invalid option %s", arg);
- zenity_free_parsing_options ();
- exit (-1);
+ break;
}
}