From 9dcaf525dc975c1d3bbc9505f62ba8d5c80e3764 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Thu, 17 Jan 2008 09:59:50 +0000 Subject: ** Fix for bug #509879 2008-01-17 Milan Crha ** Fix for bug #509879 * gui/e-memos.c: (struct _EMemosPrivate), (update_view_cb), (setup_widgets), (e_memos_destroy): Drop code to clear memo preview every 60 seconds. svn path=/trunk/; revision=34844 --- calendar/gui/e-memos.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'calendar/gui/e-memos.c') diff --git a/calendar/gui/e-memos.c b/calendar/gui/e-memos.c index a782204297..397e0fd17c 100644 --- a/calendar/gui/e-memos.c +++ b/calendar/gui/e-memos.c @@ -86,7 +86,6 @@ struct _EMemosPrivate { gchar *current_uid; char *sexp; - guint update_timeout; /* View instance and the view menus handler */ GalViewInstance *view_instance; @@ -295,14 +294,6 @@ update_view (EMemos *memos) e_cal_component_memo_preview_clear (E_CAL_COMPONENT_MEMO_PREVIEW (priv->preview)); } -static gboolean -update_view_cb (EMemos *memos) -{ - update_view (memos); - - return TRUE; -} - static void model_row_changed_cb (ETableModel *etm, int row, gpointer data) { @@ -549,9 +540,6 @@ setup_widgets (EMemos *memos) g_signal_connect (etable, "cursor_change", G_CALLBACK (table_cursor_change_cb), memos); g_signal_connect (etable, "selection_change", G_CALLBACK (table_selection_change_cb), memos); - /* Timeout check to hide completed items */ - priv->update_timeout = g_timeout_add_full (G_PRIORITY_LOW, 60000, (GSourceFunc) update_view_cb, memos, NULL); - /* create the memo detail */ priv->preview = e_cal_component_memo_preview_new (); e_cal_component_memo_preview_set_default_timezone (E_CAL_COMPONENT_MEMO_PREVIEW (priv->preview), calendar_config_get_icaltimezone ()); @@ -744,11 +732,6 @@ e_memos_destroy (GtkObject *object) priv->sexp = NULL; } - if (priv->update_timeout) { - g_source_remove (priv->update_timeout); - priv->update_timeout = 0; - } - if (priv->memos_view_config) { g_object_unref (priv->memos_view_config); priv->memos_view_config = NULL; -- cgit v1.2.3