diff src/main.c @ 227:41fc4bfc8b25

Add a debug level spinner at the end of Preferences > Advanced. One can now enable debug mode without restarting geeqie. A possibility to disable all debugging code and related options at compile time was added.
author zas_
date Thu, 03 Apr 2008 17:15:49 +0000
parents f4a0555794a9
children 9faf34f047b1
line wrap: on
line diff
--- a/src/main.c	Thu Apr 03 14:35:03 2008 +0000
+++ b/src/main.c	Thu Apr 03 17:15:49 2008 +0000
@@ -914,12 +914,14 @@
 				parse_command_line_process_file(cmd_all, path, file,
 								&list, collection_list, &first_dir);
 				}
+#ifdef DEBUG
 			else if (strcmp(cmd_line, "--debug") == 0)
 				{
 				/* we now increment the debug state for verbosity */
 				debug++;
 				printf("debugging output enabled (level %d)\n", debug);
 				}
+#endif
 			else if (strcmp(cmd_line, "+t") == 0 ||
 				 strcmp(cmd_line, "--with-tools") == 0)
 				{
@@ -999,7 +1001,9 @@
 				print_term(_("      --geometry=GEOMETRY    set main window location\n"));
 				print_term(_("  -r, --remote               send following commands to open window\n"));
 				print_term(_("  -rh,--remote-help          print remote command list\n"));
+#ifdef DEBUG
 				print_term(_("  --debug                    turn on debug output\n"));
+#endif
 				print_term(_("  -v, --version              print version info\n"));
 				print_term(_("  -h, --help                 show this message\n\n"));