[evolution-patches] [Calendar]Patch for bug 333877



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
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  <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-06  Veerapuram Varadhan  <vvaradhan novell com>
 
 	**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;
        


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]