aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/control-factory.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2004-04-08 00:12:22 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-04-08 00:12:22 +0800
commit3d47eb28221963adcef3a9c8502d6815353af1d9 (patch)
treeb2615874c61ebdbc0964a6f53f99a1918ddca4c8 /calendar/gui/control-factory.c
parent5861eb8e7b1ae59b5e5cf600b36c6bf947b806bc (diff)
downloadgsoc2013-evolution-3d47eb28221963adcef3a9c8502d6815353af1d9.tar
gsoc2013-evolution-3d47eb28221963adcef3a9c8502d6815353af1d9.tar.gz
gsoc2013-evolution-3d47eb28221963adcef3a9c8502d6815353af1d9.tar.bz2
gsoc2013-evolution-3d47eb28221963adcef3a9c8502d6815353af1d9.tar.lz
gsoc2013-evolution-3d47eb28221963adcef3a9c8502d6815353af1d9.tar.xz
gsoc2013-evolution-3d47eb28221963adcef3a9c8502d6815353af1d9.tar.zst
gsoc2013-evolution-3d47eb28221963adcef3a9c8502d6815353af1d9.zip
remove extra set view params (gnome_calendar_set_view): simplify, just set
2004-04-07 JP Rosevear <jpr@ximian.com> * gui/gnome-cal.c (gnome_calendar_dayjump): remove extra set view params (gnome_calendar_set_view): simplify, just set the current view id and let the gal view stuff do the rest (display_view): modify from set_view, don't set the view id here or update the default view config setting (display_view_cb): update the date navigator (gnome_calendar_construct): kill the default view stuff, gal view handles that (gnome_calendar_on_date_navigator_selection_changed): use display_view * gui/e-week-view.c (time_range_changed_cb): ditto (e_week_view_set_selected_time_range): just set the selection, don't fool with the base date (e_week_view_on_button_press): do a full day event if double clicked on * gui/e-day-view.c (time_range_changed_cb): only set the selection if we can't preserve an existing selection * gui/control-factory.c (set_prop): * gui/calendar-config.h: remove protos * gui/calendar-config.c: remove default view calls * gui/calendar-commands.c (show_day_view_clicked): remove extra params to gnome_calendar_set_view (show_work_week_view_clicked): ditto (show_week_view_clicked): ditto (show_month_view_clicked): ditto (show_list_view_clicked): ditto * gui/apps_evolution_calendar.schemas.in.in: remove default view setting, gal view remembers this for us svn path=/trunk/; revision=25353
Diffstat (limited to 'calendar/gui/control-factory.c')
-rw-r--r--calendar/gui/control-factory.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/calendar/gui/control-factory.c b/calendar/gui/control-factory.c
index ac04829ee9..71c918fb14 100644
--- a/calendar/gui/control-factory.c
+++ b/calendar/gui/control-factory.c
@@ -159,15 +159,17 @@ set_prop (BonoboPropertyBag *bag,
view = GNOME_CAL_WORK_WEEK_VIEW;
else if (!strcmp (string, "month"))
view = GNOME_CAL_MONTH_VIEW;
+ else if (!strcmp (string, "list"))
+ view = GNOME_CAL_LIST_VIEW;
else if (!strcmp (string, "day"))
view = GNOME_CAL_DAY_VIEW;
else
- view = calendar_config_get_default_view ();
+ view = GNOME_CAL_DAY_VIEW;
/* This doesn't actually work, because the GalView
* comes along and resets the view. FIXME.
*/
- gnome_calendar_set_view (gcal, view, FALSE, TRUE);
+ gnome_calendar_set_view (gcal, view);
break;
default: