Mercurial > pidgin.yaz
comparison finch/libgnt/gnttree.h @ 21101:741c3b5eac21
propagate from branch 'im.pidgin.pidgin' (head cf95a43fbd6666b7d2e750c182d7b85b047582c0)
to branch 'im.pidgin.cpw.khc.msnp14.soap' (head 1bd638d193e3a865ce99ed451afc25d957d7c9a2)
author | Ka-Hing Cheung <khc@hxbc.us> |
---|---|
date | Sun, 14 Oct 2007 22:18:59 +0000 |
parents | acf284962b40 |
children | 3ed9b027479d |
comparison
equal
deleted
inserted
replaced
21100:29d8c86c14cd | 21101:741c3b5eac21 |
---|---|
381 * @param index The index of the column | 381 * @param index The index of the column |
382 * @param title The title for the column | 382 * @param title The title for the column |
383 * | 383 * |
384 * @see gnt_tree_set_column_titles | 384 * @see gnt_tree_set_column_titles |
385 * @see gnt_tree_set_show_title | 385 * @see gnt_tree_set_show_title |
386 * | |
387 * @since 2.0.0 (gnt), 2.1.0 (pidgin) | |
386 */ | 388 */ |
387 void gnt_tree_set_column_title(GntTree *tree, int index, const char *title); | 389 void gnt_tree_set_column_title(GntTree *tree, int index, const char *title); |
388 | 390 |
389 /** | 391 /** |
390 * Set the titles of the columns | 392 * Set the titles of the columns |
484 * @param res If @c FALSE, the column will not be resized when the | 486 * @param res If @c FALSE, the column will not be resized when the |
485 * tree is resized | 487 * tree is resized |
486 * | 488 * |
487 * @see gnt_tree_set_col_width | 489 * @see gnt_tree_set_col_width |
488 * @see gnt_tree_set_column_width_ratio | 490 * @see gnt_tree_set_column_width_ratio |
491 * | |
492 * @since 2.0.0 (gnt), 2.1.0 (pidgin) | |
489 */ | 493 */ |
490 void gnt_tree_set_column_resizable(GntTree *tree, int col, gboolean res); | 494 void gnt_tree_set_column_resizable(GntTree *tree, int col, gboolean res); |
491 | 495 |
492 /** | 496 /** |
493 * Set whether data in a column should be considered as binary data, and | 497 * Set whether data in a column should be considered as binary data, and |
503 * Set whether text in a column should be right-aligned. | 507 * Set whether text in a column should be right-aligned. |
504 * | 508 * |
505 * @param tree The tree | 509 * @param tree The tree |
506 * @param col The index of the column | 510 * @param col The index of the column |
507 * @param right @c TRUE if the text in the column should be right aligned | 511 * @param right @c TRUE if the text in the column should be right aligned |
512 * | |
513 * @since 2.0.0 (gnt), 2.1.0 (pidgin) | |
508 */ | 514 */ |
509 void gnt_tree_set_column_is_right_aligned(GntTree *tree, int col, gboolean right); | 515 void gnt_tree_set_column_is_right_aligned(GntTree *tree, int col, gboolean right); |
510 | 516 |
511 /** | 517 /** |
512 * Set column widths to use when calculating column widths after a tree | 518 * Set column widths to use when calculating column widths after a tree |
517 * of entries as the number of columns in the tree, or | 523 * of entries as the number of columns in the tree, or |
518 * end with a negative value for a column-width. | 524 * end with a negative value for a column-width. |
519 * | 525 * |
520 * @see gnt_tree_set_col_width | 526 * @see gnt_tree_set_col_width |
521 * @see gnt_tree_set_column_resizable | 527 * @see gnt_tree_set_column_resizable |
528 * | |
529 * @since 2.0.0 (gnt), 2.1.0 (pidgin) | |
522 */ | 530 */ |
523 void gnt_tree_set_column_width_ratio(GntTree *tree, int cols[]); | 531 void gnt_tree_set_column_width_ratio(GntTree *tree, int cols[]); |
524 | 532 |
525 /** | 533 /** |
526 * Set the column to use for typeahead searching. | 534 * Set the column to use for typeahead searching. |
527 * | 535 * |
528 * @param tree The tree | 536 * @param tree The tree |
529 * @param col The index of the column | 537 * @param col The index of the column |
538 * | |
539 * @since 2.0.0 (gnt), 2.1.0 (pidgin) | |
530 */ | 540 */ |
531 void gnt_tree_set_search_column(GntTree *tree, int col); | 541 void gnt_tree_set_search_column(GntTree *tree, int col); |
532 | 542 |
533 /** | 543 /** |
534 * Check whether the user is currently in the middle of a search. | 544 * Check whether the user is currently in the middle of a search. |
535 * | 545 * |
536 * @param tree The tree | 546 * @param tree The tree |
537 * @return @c TRUE if the user is searching, @c FALSE otherwise. | 547 * @return @c TRUE if the user is searching, @c FALSE otherwise. |
548 * | |
549 * @since 2.0.0 (gnt), 2.1.0 (pidgin) | |
538 */ | 550 */ |
539 gboolean gnt_tree_is_searching(GntTree *tree); | 551 gboolean gnt_tree_is_searching(GntTree *tree); |
540 | 552 |
541 /** | 553 /** |
542 * Set a custom search function. | 554 * Set a custom search function. |
545 * @param func The custom search function. The search function is | 557 * @param func The custom search function. The search function is |
546 * sent the tree itself, the key of a row, the search | 558 * sent the tree itself, the key of a row, the search |
547 * string and the content of row in the search column. | 559 * string and the content of row in the search column. |
548 * If the function returns @c TRUE, the row is dislayed, | 560 * If the function returns @c TRUE, the row is dislayed, |
549 * otherwise it's not. | 561 * otherwise it's not. |
562 * | |
563 * @since 2.0.0 (gnt), 2.1.0 (pidgin) | |
550 */ | 564 */ |
551 void gnt_tree_set_search_function(GntTree *tree, | 565 void gnt_tree_set_search_function(GntTree *tree, |
552 gboolean (*func)(GntTree *tree, gpointer key, const char *search, const char *current)); | 566 gboolean (*func)(GntTree *tree, gpointer key, const char *search, const char *current)); |
553 | 567 |
554 G_END_DECLS | 568 G_END_DECLS |