~ubuntu-branches/ubuntu/trusty/ruby1.9/trusty

« back to all changes in this revision

Viewing changes to ext/tk/lib/tkextlib/tile/tscrollbar.rb

  • Committer: Bazaar Package Importer
  • Author(s): Stephan Hermann
  • Date: 2008-01-24 11:42:29 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20080124114229-jw2f87rdxlq6gp11
Tags: 1.9.0.0-2ubuntu1
* Merge from debian unstable, remaining changes:
  - Robustify check for target_os, fixing build failure on lpia.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
    [self::WidgetClassName, *(args.map!{|a| _get_eval_string(a)})].join('.')
29
29
  end
30
30
end
 
31
 
 
32
class Tk::Tile::XScrollbar < Tk::Tile::TScrollbar
 
33
  def create_self(keys)
 
34
    keys = {} unless keys
 
35
    keys['orient'] = 'horizontal'
 
36
    super(keys)
 
37
  end
 
38
  private :create_self
 
39
end
 
40
 
 
41
class Tk::Tile::YScrollbar < Tk::Tile::TScrollbar
 
42
  def create_self(keys)
 
43
    keys = {} unless keys
 
44
    keys['orient'] = 'vertical'
 
45
    super(keys)
 
46
  end
 
47
  private :create_self
 
48
end
 
49