aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarry Lu <harry.lu@sun.com>2005-02-18 12:30:32 +0800
committerHarry Lu <haip@src.gnome.org>2005-02-18 12:30:32 +0800
commit1002434f5c9bb90665904946ce535e967ffbfd85 (patch)
tree138e2617e95ecc995d795e43aca5e56782e5f0ec
parenta70ba65c5df6c3e65a3a3fbc50ee87c36033ddfe (diff)
downloadgsoc2013-evolution-1002434f5c9bb90665904946ce535e967ffbfd85.tar
gsoc2013-evolution-1002434f5c9bb90665904946ce535e967ffbfd85.tar.gz
gsoc2013-evolution-1002434f5c9bb90665904946ce535e967ffbfd85.tar.bz2
gsoc2013-evolution-1002434f5c9bb90665904946ce535e967ffbfd85.tar.lz
gsoc2013-evolution-1002434f5c9bb90665904946ce535e967ffbfd85.tar.xz
gsoc2013-evolution-1002434f5c9bb90665904946ce535e967ffbfd85.tar.zst
gsoc2013-evolution-1002434f5c9bb90665904946ce535e967ffbfd85.zip
Fix for 72676.
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. svn path=/trunk/; revision=28808
-rw-r--r--filter/ChangeLog7
-rw-r--r--filter/rule-editor.c8
2 files changed, 15 insertions, 0 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog
index 5a3ca32319..c810b73ab3 100644
--- a/filter/ChangeLog
+++ b/filter/ChangeLog
@@ -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.
diff --git a/filter/rule-editor.c b/filter/rule-editor.c
index f23edec8dc..bbdd9b022f 100644
--- a/filter/rule-editor.c
+++ b/filter/rule-editor.c
@@ -546,6 +546,14 @@ cursor_changed (GtkTreeView *treeview, RuleEditor *re)
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);
}