aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-memos.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2007-11-23 17:56:15 +0800
committerMilan Crha <mcrha@src.gnome.org>2007-11-23 17:56:15 +0800
commitced5862cb604ccaad1ff82090b972b875e36724b (patch)
treee427a067eb54fa3319918051c2236a29403ced44 /calendar/gui/e-memos.c
parent36917891fe11507d70971a54f0378cf84b8c2a59 (diff)
downloadgsoc2013-evolution-ced5862cb604ccaad1ff82090b972b875e36724b.tar
gsoc2013-evolution-ced5862cb604ccaad1ff82090b972b875e36724b.tar.gz
gsoc2013-evolution-ced5862cb604ccaad1ff82090b972b875e36724b.tar.bz2
gsoc2013-evolution-ced5862cb604ccaad1ff82090b972b875e36724b.tar.lz
gsoc2013-evolution-ced5862cb604ccaad1ff82090b972b875e36724b.tar.xz
gsoc2013-evolution-ced5862cb604ccaad1ff82090b972b875e36724b.tar.zst
gsoc2013-evolution-ced5862cb604ccaad1ff82090b972b875e36724b.zip
** Fix for bug #325730
2007-11-23 Milan Crha <mcrha@redhat.com> ** Fix for bug #325730 * gui/e-memos.c: (table_selection_change_cb): * gui/e-tasks.c: (table_selection_change_cb): Clear task/memo preview when have more or less than one row selected. * gui/e-cal-model.c: (e_cal_view_objects_added_cb), (e_cal_view_objects_removed_cb), (remove_client_objects): First delete, then notify, so we read from updated store. svn path=/trunk/; revision=34577
Diffstat (limited to 'calendar/gui/e-memos.c')
-rw-r--r--calendar/gui/e-memos.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/calendar/gui/e-memos.c b/calendar/gui/e-memos.c
index 6d5120787d..a782204297 100644
--- a/calendar/gui/e-memos.c
+++ b/calendar/gui/e-memos.c
@@ -177,6 +177,10 @@ table_selection_change_cb (ETable *etable, gpointer data)
n_selected = e_table_selected_count (etable);
gtk_signal_emit (GTK_OBJECT (memos), e_memos_signals[SELECTION_CHANGED],
n_selected);
+
+ if (n_selected != 1)
+ e_cal_component_memo_preview_clear (E_CAL_COMPONENT_MEMO_PREVIEW (memos->priv->preview));
+
}
static void