comparison 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
comparison
equal deleted inserted replaced
32302:3448f64d197c 32303:63fb41aa3dbe
424 i = 0; 424 i = 0;
425 for (iter = results->columns; iter; iter = iter->next) 425 for (iter = results->columns; iter; iter = iter->next)
426 { 426 {
427 PurpleNotifySearchColumn *column = iter->data; 427 PurpleNotifySearchColumn *column = iter->data;
428 gnt_tree_set_column_title(GNT_TREE(tree), i, column->title); 428 gnt_tree_set_column_title(GNT_TREE(tree), i, column->title);
429
430 if (!purple_notify_searchresult_column_is_visible(column))
431 gnt_tree_set_column_visible(GNT_TREE(tree), i, FALSE);
429 i++; 432 i++;
430 } 433 }
431 434
432 box = gnt_hbox_new(TRUE); 435 box = gnt_hbox_new(TRUE);
433 436