aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorJeff Cai <jeff.cai@sun.com>2006-03-28 18:49:41 +0800
committerSimon Zheng <simonz@src.gnome.org>2006-03-28 18:49:41 +0800
commitcd60df2a7a805f443d2190c69364136a63d6ce5e (patch)
tree9029351745d2aec6913162fea8092bc439741a94 /calendar
parentc127a3bc1b9402904af59038be40bbbe883ce7c5 (diff)
downloadgsoc2013-evolution-cd60df2a7a805f443d2190c69364136a63d6ce5e.tar
gsoc2013-evolution-cd60df2a7a805f443d2190c69364136a63d6ce5e.tar.gz
gsoc2013-evolution-cd60df2a7a805f443d2190c69364136a63d6ce5e.tar.bz2
gsoc2013-evolution-cd60df2a7a805f443d2190c69364136a63d6ce5e.tar.lz
gsoc2013-evolution-cd60df2a7a805f443d2190c69364136a63d6ce5e.tar.xz
gsoc2013-evolution-cd60df2a7a805f443d2190c69364136a63d6ce5e.tar.zst
gsoc2013-evolution-cd60df2a7a805f443d2190c69364136a63d6ce5e.zip
Fixes #333877 Use gtk_tree_selection_get_selected_rows instead of
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. svn path=/trunk/; revision=31751
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;