[claws-mail-cvs-commit] prefs_filtering.c

Salvatore De Paolis <[email protected]> Thu, 28 Aug 2008 08:56:40 +0000
Newsgroups gmane.mail.sylpheed.claws.cvs
Message-ID <[email protected]>
Update of /srv/cvs/claws-mail/claws/src
In directory ran:/tmp/cvs-serv3765/src

Modified Files:
      Tag: gtk2
	prefs_filtering.c 
Log Message:
2008-08-28 [iwkse]	3.5.0cvs77

	* src/prefs_filtering.c
		Making the search more useful,
		jumping directly to the relative rule.

Index: prefs_filtering.c
===================================================================
RCS file: /srv/cvs/claws-mail/claws/src/prefs_filtering.c,v
retrieving revision 1.59.2.71
retrieving revision 1.59.2.72
diff -u -d -r1.59.2.71 -r1.59.2.72
--- prefs_filtering.c	25 Jul 2008 21:01:35 -0000	1.59.2.71
+++ prefs_filtering.c	28 Aug 2008 08:56:38 -0000	1.59.2.72
@@ -972,6 +972,7 @@
 	gchar *store_string;
 	gint key_len;
 	gboolean retval;
+	GtkTreePath *path;
 
 	gtk_tree_model_get (model, iter, column, &store_string, -1);
 
@@ -982,6 +983,10 @@
 	retval = (strncmp (key, store_string, key_len) != 0);
 
 	g_free(store_string);
+	debug_print("selecting row\n");
+	path = gtk_tree_model_get_path(model, iter);
+	prefs_filtering_select_row(GTK_TREE_VIEW(filtering.cond_list_view), path);
+	gtk_tree_path_free(path);
 
 	return retval;
 }