~ubuntu-branches/ubuntu/trusty/rgtk2/trusty

« back to all changes in this revision

Viewing changes to inst/examples/GtkTreeModelFilter.R

  • Committer: Bazaar Package Importer
  • Author(s): Dirk Eddelbuettel
  • Date: 2010-11-03 11:35:46 UTC
  • mfrom: (1.3.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20101103113546-a7fi7jdxdebp0tw1
Tags: 2.20.1-1
* New upstream release

* debian/control: Set (Build-)Depends: to current R version
* debian/control: Set Standards-Version: to current version 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
visible_func <- function(model, iter, data)
 
2
{
 
3
  ## Visible if row is non-empty and first column is "HI"
 
4
  visible <- FALSE
 
5
 
 
6
  str <- model$get(iter, 0)[[1]]
 
7
  if (identical(str, "HI"))
 
8
    visible <- TRUE
 
9
 
 
10
  return(visible)
 
11
}