Hi, NotZed,
Here is a patch for 72676.
http://bugzilla.ximian.com/show_bug.cgi?id=72676
Please review it.
Thanks!
Harry
text/plain attachment (filter.diff)
|
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/filter/ChangeLog,v
retrieving revision 1.422
diff -u -r1.422 ChangeLog
--- ChangeLog 10 Feb 2005 05:34:03 -0000 1.422
+++ ChangeLog 17 Feb 2005 08:43:07 -0000
@@ -1,3 +1,10 @@
+2005-02-17 Harry Lu <harry lu sun com>
+
+ Fix for 72676.
+
+ * rule-editor.c: (double_click): call gtk_tree_selection_get_selected
+ to see if there is a row selected.
+
2005-02-09 Hans Petter Jansson <hpj novell com>
* Makefile.am: Install shared libraries in privlibdir.
Index: rule-editor.c
===================================================================
RCS file: /cvs/gnome/evolution/filter/rule-editor.c,v
retrieving revision 1.62
diff -u -r1.62 rule-editor.c
--- rule-editor.c 17 Jun 2004 07:34:07 -0000 1.62
+++ rule-editor.c 17 Feb 2005 08:43:20 -0000
@@ -546,6 +546,14 @@
static void
double_click (GtkTreeView *treeview, GtkTreePath *path, GtkTreeViewColumn *column, RuleEditor *re)
{
+ GtkTreeSelection *selection;
+ GtkTreeModel *model;
+ GtkTreeIter iter;
+
+ selection = gtk_tree_view_get_selection (re->list);
+ if (gtk_tree_selection_get_selected (selection, &model, &iter))
+ gtk_tree_model_get (GTK_TREE_MODEL (re->model), &iter, 1, &re->current, -1);
+
if (re->current)
rule_edit ((GtkWidget *) treeview, re);
}