aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/control-factory.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/control-factory.c')
-rw-r--r--calendar/gui/control-factory.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/calendar/gui/control-factory.c b/calendar/gui/control-factory.c
index 3844cfdff3..413077de14 100644
--- a/calendar/gui/control-factory.c
+++ b/calendar/gui/control-factory.c
@@ -126,14 +126,16 @@ set_prop (BonoboPropertyBag *bag,
case PROPERTY_CALENDAR_VIEW_IDX:
string = BONOBO_ARG_GET_STRING (arg);
- if (!g_strcasecmp (string, "week"))
+ if (!strcmp (string, "week"))
view = GNOME_CAL_WEEK_VIEW;
- else if (!g_strcasecmp (string, "workweek"))
+ else if (!strcmp (string, "workweek"))
view = GNOME_CAL_WORK_WEEK_VIEW;
- else if (!g_strcasecmp (string, "month"))
+ else if (!strcmp (string, "month"))
view = GNOME_CAL_MONTH_VIEW;
- else
+ else if (!strcmp (string, "day"))
view = GNOME_CAL_DAY_VIEW;
+ else
+ view = calendar_config_get_default_view ();
/* This doesn't actually work, because the GalView
* comes along and resets the view. FIXME.