diff finch/gntnotify.c @ 32303:63fb41aa3dbe

Add API: * purple_notify_searchresult_column_set_visible * purple_notify_searchresult_column_is_visible This allows columns to be defined in the search-results, but that are not visible to the user. These columns can, for example, be used to store values associated with the selected-row that are required in the search-result callback.
author andrew.victor@mxit.com
date Tue, 03 May 2011 20:55:39 +0000
parents a8cc50c2279f
children 0d4702446530
line wrap: on
line diff
--- a/finch/gntnotify.c	Mon Apr 18 07:02:43 2011 +0000
+++ b/finch/gntnotify.c	Tue May 03 20:55:39 2011 +0000
@@ -426,6 +426,9 @@
 	{
 		PurpleNotifySearchColumn *column = iter->data;
 		gnt_tree_set_column_title(GNT_TREE(tree), i, column->title);
+
+		if (!purple_notify_searchresult_column_is_visible(column))
+			gnt_tree_set_column_visible(GNT_TREE(tree), i, FALSE);
 		i++;
 	}