[Calendar]Patch for bug 333877

Jeff Cai <[email protected]>
Newsgroups gmane.comp.gnome.evolution.patches
Message-ID <1141819808.24711.3.camel@commissionaire>
Hi,maintainer

Please review the patch.
This is a strange file in format, so you look there's different indent
in some rows.

Jeff Cai

_______________________________________________
Evolution-patches mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/evolution-patches
patch333877 (text/x-patch, 1.5 KB)
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.3011
diff -u -r1.3011 ChangeLog
--- ChangeLog	6 Mar 2006 15:58:53 -0000	1.3011
+++ ChangeLog	8 Mar 2006 12:01:37 -0000
@@ -1,3 +1,10 @@
+2006-03-08  Jeff Cai  <[email protected]>
+
+	**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-06  Veerapuram Varadhan  <[email protected]>
 
 	**Fixes #321832
Index: gui/e-meeting-list-view.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-meeting-list-view.c,v
retrieving revision 1.28
diff -u -r1.28 e-meeting-list-view.c
--- gui/e-meeting-list-view.c	6 Mar 2006 07:24:24 -0000	1.28
+++ gui/e-meeting-list-view.c	8 Mar 2006 12:01:37 -0000
@@ -573,14 +573,16 @@
        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;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.