aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
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/gui
parentc127a3bc1b9402904af59038be40bbbe883ce7c5 (diff)
downloadgsoc2013-evolution-cd60df2a7a805f443d2190c69364136a63d6ce5e.tar.gz
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/gui')
-rw-r--r--calendar/gui/e-meeting-list-view.c10
1 files changed, 6 insertions, 4 deletions
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;