From f4f32309cbbfc0a4b69343d91d4085240198769e Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Mon, 3 May 2004 17:11:40 +0000 Subject: Fixes #57897 2004-05-03 JP Rosevear Fixes #57897 * gui/e-tasks.c (setup_widgets): no need to listen for the deleted signal, the cursor will change in that case svn path=/trunk/; revision=25759 --- calendar/ChangeLog | 7 +++++++ calendar/gui/e-tasks.c | 33 --------------------------------- 2 files changed, 7 insertions(+), 33 deletions(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index aff32e047d..80933fdf53 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,10 @@ +2004-05-03 JP Rosevear + + Fixes #57897 + + * gui/e-tasks.c (setup_widgets): no need to listen for the deleted + signal, the cursor will change in that case + 2004-05-03 JP Rosevear * gui/e-cal-model-tasks.c (set_completed): remove useless debug diff --git a/calendar/gui/e-tasks.c b/calendar/gui/e-tasks.c index 729e5456c7..872b6fe3ed 100644 --- a/calendar/gui/e-tasks.c +++ b/calendar/gui/e-tasks.c @@ -299,37 +299,6 @@ model_row_changed_cb (ETableModel *etm, int row, gpointer data) } } -static void -model_rows_deleted_cb (ETableModel *etm, int row, int count, gpointer data) -{ - ETasks *tasks; - ETasksPrivate *priv; - ECalModelComponent *comp_data; - - tasks = E_TASKS (data); - priv = tasks->priv; - - if (priv->current_uid) { - const char *uid; - int i; - - for (i = row; i < row + count; i++) { - comp_data = e_cal_model_get_component_at (E_CAL_MODEL (etm), i); - if (comp_data) { - uid = icalcomponent_get_uid (comp_data->icalcomp); - if (!strcmp (uid ? uid : "", priv->current_uid)) { - ETable *etable; - - etable = e_table_scrolled_get_table ( - E_TABLE_SCROLLED (E_CALENDAR_TABLE (priv->tasks_view)->etable)); - table_cursor_change_cb (etable, 0, tasks); - break; - } - } - } - } -} - static void setup_config (ETasks *tasks) { @@ -422,8 +391,6 @@ setup_widgets (ETasks *tasks) model = e_calendar_table_get_model (E_CALENDAR_TABLE (priv->tasks_view)); g_signal_connect (G_OBJECT (model), "model_row_changed", G_CALLBACK (model_row_changed_cb), tasks); - g_signal_connect (G_OBJECT (model), "model_rows_deleted", - G_CALLBACK (model_rows_deleted_cb), tasks); } /* Class initialization function for the gnome calendar */ -- cgit v1.2.3