diff options
author | Damon Chaplin <damon@helixcode.com> | 2000-10-21 23:39:38 +0800 |
---|---|---|
committer | Damon Chaplin <damon@src.gnome.org> | 2000-10-21 23:39:38 +0800 |
commit | dbf54684fc3b1d024253a7415d75d076a1bf4cc9 (patch) | |
tree | 9229185e2e388ac8d825cdac4691bde407de7624 /calendar/gui/calendar-config.c | |
parent | cfa0f85ab441447009b96f97cd94f4cfb026abef (diff) | |
download | gsoc2013-evolution-dbf54684fc3b1d024253a7415d75d076a1bf4cc9.tar gsoc2013-evolution-dbf54684fc3b1d024253a7415d75d076a1bf4cc9.tar.gz gsoc2013-evolution-dbf54684fc3b1d024253a7415d75d076a1bf4cc9.tar.bz2 gsoc2013-evolution-dbf54684fc3b1d024253a7415d75d076a1bf4cc9.tar.lz gsoc2013-evolution-dbf54684fc3b1d024253a7415d75d076a1bf4cc9.tar.xz gsoc2013-evolution-dbf54684fc3b1d024253a7415d75d076a1bf4cc9.tar.zst gsoc2013-evolution-dbf54684fc3b1d024253a7415d75d076a1bf4cc9.zip |
removed debug message.
2000-10-21 Damon Chaplin <damon@helixcode.com>
* gui/dialogs/cal-prefs-dialog.c (cal_prefs_dialog_use_24_hour_toggled): removed debug message.
* gui/e-calendar-table.c (e_calendar_table_save_state): new function
to save the state of the table to a given file.
* gui/e-calendar-table.h (struct _ECalendarTable): added etable field
so we can access it to save the state.
* gui/gnome-cal.c (gnome_calendar_destroy): call
e_calendar_table_save_state() to save the state of the TaskPad.
(setup_widgets): load the state of the TaskPad.
* gui/calendar-config.c: added support for the default view.
* gui/gnome-cal.c (gnome_calendar_construct):
(gnome_calendar_set_view_internal): use/set the default view setting.
svn path=/trunk/; revision=6097
Diffstat (limited to 'calendar/gui/calendar-config.c')
-rw-r--r-- | calendar/gui/calendar-config.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/calendar/gui/calendar-config.c b/calendar/gui/calendar-config.c index dc726191be..0245a05f2a 100644 --- a/calendar/gui/calendar-config.c +++ b/calendar/gui/calendar-config.c @@ -43,6 +43,7 @@ typedef struct gint day_end_minute; gint time_divisions; gboolean dnav_show_week_no; + gint view; gfloat hpane_pos; gfloat vpane_pos; gfloat month_hpane_pos; @@ -93,6 +94,7 @@ config_read (void) config->day_end_hour = gnome_config_get_int ("DayEndHour=17"); config->day_end_minute = gnome_config_get_int ("DayEndMinute=0"); config->time_divisions = gnome_config_get_int ("TimeDivisions=30"); + config->view = gnome_config_get_int ("View=0"); config->hpane_pos = gnome_config_get_float ("HPanePosition=1"); config->vpane_pos = gnome_config_get_float ("VPanePosition=1"); config->month_hpane_pos = gnome_config_get_float ("MonthHPanePosition=0"); @@ -168,6 +170,7 @@ calendar_config_write_on_exit (void) gnome_config_push_prefix (prefix); g_free (prefix); + gnome_config_set_int ("View", config->view); gnome_config_set_int ("TimeDivisions", config->time_divisions); gnome_config_set_float ("HPanePosition", config->hpane_pos); gnome_config_set_float ("VPanePosition", config->vpane_pos); @@ -302,6 +305,21 @@ calendar_config_set_dnav_show_week_no (gboolean show_week_no) } +/* The view to show on start-up, 0 = Day, 1 = WorkWeek, 2 = Week, 3 = Month. */ +gint +calendar_config_get_default_view (void) +{ + return config->view; +} + + +void +calendar_config_set_default_view (gint view) +{ + config->view = view; +} + + /* The positions of the panes in the normal and month views. */ gfloat calendar_config_get_hpane_pos (void) |