aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/gnome-cal.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/gnome-cal.c')
-rw-r--r--calendar/gui/gnome-cal.c44
1 files changed, 6 insertions, 38 deletions
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c
index 379bbfec95..245b8bfd04 100644
--- a/calendar/gui/gnome-cal.c
+++ b/calendar/gui/gnome-cal.c
@@ -24,7 +24,6 @@
#include "e-week-view.h"
#include "event-editor.h"
#include "gnome-cal.h"
-#include "component-factory.h"
#include "calendar-commands.h"
#include "calendar-config.h"
@@ -198,7 +197,6 @@ setup_widgets (GnomeCalendar *gcal)
{
GnomeCalendarPrivate *priv;
GtkWidget *w;
- gchar *filename;
priv = gcal->priv;
@@ -247,10 +245,6 @@ setup_widgets (GnomeCalendar *gcal)
e_paned_pack2 (E_PANED (priv->vpane), priv->todo, TRUE, TRUE);
gtk_widget_show (priv->todo);
- filename = g_strdup_printf ("%s/config/TaskPad", evolution_dir);
- e_calendar_table_load_state (E_CALENDAR_TABLE (priv->todo), filename);
- g_free (filename);
-
/* The Day View. */
priv->day_view = e_day_view_new ();
e_day_view_set_calendar (E_DAY_VIEW (priv->day_view), gcal);
@@ -343,7 +337,6 @@ gnome_calendar_destroy (GtkObject *object)
{
GnomeCalendar *gcal;
GnomeCalendarPrivate *priv;
- gchar *filename;
g_return_if_fail (object != NULL);
g_return_if_fail (GNOME_IS_CALENDAR (object));
@@ -351,11 +344,6 @@ gnome_calendar_destroy (GtkObject *object)
gcal = GNOME_CALENDAR (object);
priv = gcal->priv;
- /* Save the TaskPad layout. */
- filename = g_strdup_printf ("%s/config/TaskPad", evolution_dir);
- e_calendar_table_save_state (E_CALENDAR_TABLE (priv->todo), filename);
- g_free (filename);
-
priv->load_state = LOAD_STATE_NOT_LOADED;
if (priv->loading_uri) {
@@ -616,8 +604,6 @@ gnome_calendar_set_view_internal (GnomeCalendar *gcal,
priv->current_view_type = view;
priv->range_selected = range_selected;
- calendar_config_set_default_view (view);
-
gtk_notebook_set_page (GTK_NOTEBOOK (priv->notebook), view);
if (focus)
@@ -1057,11 +1043,11 @@ load_alarms (GnomeCalendar *gcal)
/* Queue the midnight alarm refresh */
- priv->midnight_alarm_refresh_id = alarm_add (end_of_day, midnight_refresh_cb, gcal, NULL);
- if (!priv->midnight_alarm_refresh_id) {
- g_message ("load_alarms(): Could not set up the midnight refresh alarm!");
- /* FIXME: what to do? */
- }
+/* priv->midnight_alarm_refresh_id = alarm_add (end_of_day, midnight_refresh_cb, gcal, NULL); */
+/* if (!priv->midnight_alarm_refresh_id) { */
+/* g_message ("load_alarms(): Could not set up the midnight refresh alarm!"); */
+ /* FIXME: what to do? */
+/* } */
}
/* Loads the initial data into the calendar; this should be called right after
@@ -1294,8 +1280,6 @@ GtkWidget *
gnome_calendar_construct (GnomeCalendar *gcal)
{
GnomeCalendarPrivate *priv;
- gint view;
- gchar *page;
g_return_val_if_fail (gcal != NULL, NULL);
g_return_val_if_fail (GNOME_IS_CALENDAR (gcal), NULL);
@@ -1320,23 +1304,7 @@ gnome_calendar_construct (GnomeCalendar *gcal)
e_week_view_set_cal_client (E_WEEK_VIEW (priv->week_view), priv->client);
e_week_view_set_cal_client (E_WEEK_VIEW (priv->month_view), priv->client);
- view = calendar_config_get_default_view ();
- switch (view) {
- case 1:
- page = "workweekview";
- break;
- case 2:
- page = "weekview";
- break;
- case 3:
- page = "monthview";
- break;
- default:
- page = "dayview";
- break;
- }
-
- gnome_calendar_set_view (gcal, page, FALSE, FALSE);
+ gnome_calendar_set_view (gcal, "dayview", FALSE, FALSE);
return GTK_WIDGET (gcal);
}
d>1-1/+1 * - Chase x11-toolkits/fltk updategahr2010-03-241-2/+2 * - update to jpeg-8dinoex2010-02-051-1/+1 * - bump all port that indirectly depends on libjpeg and have not yet been bump...dinoex2009-07-311-1/+1 * - Update X.org ports to 7.4+ (few ports are more recent than the katamari).flz2009-01-241-3/+3 * Bump portrevision due to upgrade of devel/gettext.edwin2008-06-061-1/+1 * - Remove unneeded dependency from gtk12/gtk20 [1]miwi2008-04-201-2/+2 * - Welcome X.org 7.2 \o/.flz2007-05-201-1/+1 * - Update MASTER_SITES, WWWpav2006-05-272-3/+3 * Conversion to a single libtool environment.ade2006-02-231-1/+1 * - Update graphics/libglut to 6.4.1.sem2006-01-121-3/+3 * - Add SHA256pav2005-11-261-0/+1 * Mass-conversion to the USE_AUTOTOOLS New World Order. The code presentade2005-11-151-1/+1 * change the libtool version to use from 1.3 to 1.5oliver2005-06-041-1/+1 * Now builds on amd64kris2005-04-111-2/+2 * SIZEify.trevor2004-03-181-0/+1 * Chase library bump of libSDL-1.1 for all ports which were dependingedwin2004-03-161-1/+1 * Whoa there, boy, that's a mighty big commit y'all have there...ade2004-03-141-1/+1 * BROKEN on amd64 and alpha: Does not compilekris2004-03-091-1/+7