aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog8
-rw-r--r--calendar/gui/e-meeting-list-view.c10
2 files changed, 14 insertions, 4 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index de888ddd99..ffd6cb6a5d 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,11 @@
+2006-03-28 Jeff Cai <jeff.cai@sun.com>
+
+ Fixes #333877
+ * gui/e-meeting-list-view.c: (row_activated_cb):
+ Use gtk_tree_selection_get_selected_rows instead of
+ gtk_tree_selection_get_selected to get selected rows from
+ a multi-row selection.
+
2006-03-28 Harry Lu <harry.lu@sun.com>
Fix for 333693.
diff --git a/calendar/gui/e-meeting-list-view.c b/calendar/gui/e-meeting-list-view.c
index f0f7e1a51e..31696ae2b6 100644
--- a/calendar/gui/e-meeting-list-view.c
+++ b/calendar/gui/e-meeting-list-view.c
@@ -573,14 +573,16 @@ row_activated_cb (GtkTreeSelection *selection, EMeetingListView *view)
gint edit_level;
GtkTreeModel *model;
GtkTreePath *path = NULL;
+ GList *paths=NULL;
priv = view->priv;
- if (gtk_tree_selection_get_selected (selection, &model, &iter)) {
- path = gtk_tree_model_get_path (model, &iter);
- }
-
+ if (!(paths = gtk_tree_selection_get_selected_rows (selection, &model)))
+ return;
+ if (g_list_length (paths) > 1)
+ return;
+ path = g_list_nth_data (paths, 0);
if (!path)
return;