aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/main.c
diff options
context:
space:
mode:
authorRussell Steinthal <steintr@src.gnome.org>1999-10-22 09:48:15 +0800
committerRussell Steinthal <steintr@src.gnome.org>1999-10-22 09:48:15 +0800
commit6df51e3ed291f4f5142c56c580b090e83ac48510 (patch)
tree95e3efbc7386189d53958ae2b78e10a6da9caa9f /calendar/main.c
parent47f01927e15b6eb279d2cbf046b2707467096666 (diff)
downloadgsoc2013-evolution-6df51e3ed291f4f5142c56c580b090e83ac48510.tar.gz
gsoc2013-evolution-6df51e3ed291f4f5142c56c580b090e83ac48510.tar.zst
gsoc2013-evolution-6df51e3ed291f4f5142c56c580b090e83ac48510.zip
Commit debugging support to HEAD as well; there's no good reason to have debugging in the stable but not devel version, is there?
svn path=/trunk/; revision=1340
Diffstat (limited to 'calendar/main.c')
-rw-r--r--calendar/main.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/calendar/main.c b/calendar/main.c
index 50f8941489..0f0cc91477 100644
--- a/calendar/main.c
+++ b/calendar/main.c
@@ -48,6 +48,9 @@ int week_starts_on_monday;
/* If true, do not show our top level window */
int startup_hidden = 0;
+/* If true, enable debug output for alarms */
+int debug_alarms = 0;
+
/* The array of color properties -- keep in sync with the enumeration defined in main.h. The color
* values specified here are the defaults for the program.
*/
@@ -662,7 +665,8 @@ enum {
USERFILE_KEY = -2,
VIEW_KEY = -3,
HIDDEN_KEY = -4,
- TODO_KEY = -5
+ TODO_KEY = -5,
+ DEBUG_KEY = -6
};
/* Lists used to startup various GnomeCalendars */
@@ -802,6 +806,11 @@ parse_an_arg (poptContext ctx,
case HIDDEN_KEY:
startup_hidden = 1;
break;
+
+ case DEBUG_KEY:
+ if (!g_strcasecmp (arg, "alarms"))
+ debug_alarms = 1;
+ break;
default:
}
@@ -820,6 +829,7 @@ static const struct poptOption options [] = {
{ "view", '\0', POPT_ARG_STRING, NULL, VIEW_KEY, N_("The startup view mode (dayview, weekview, monthview, yearview)"), N_("VIEW") },
{ "to", 't', POPT_ARG_STRING, NULL, 't', N_("Specifies ending date [for --events]"), N_("DATE") },
{ "hidden", 0, POPT_ARG_NONE, NULL, HIDDEN_KEY, N_("If used, starts in iconic mode"), NULL },
+ { "debug", 'd', POPT_ARG_STRING, NULL, DEBUG_KEY, N_("Enable debugging output of TYPE (alarms)"), N_("TYPE") },
{ NULL, '\0', 0, NULL, 0}
};