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

« back to all changes in this revision

Viewing changes to ext/tk/lib/tk/textimage.rb

  • Committer: Bazaar Package Importer
  • Author(s): Stephan Hermann
  • Date: 2008-05-16 12:37:06 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20080516123706-r4llcdfd35aobrjv
Tags: 1.9.0.1-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Robustify check for target_os, fixing build failure on lpia.
* debian/control:
  - ruby1.9 pkg: moved rdoc1.9 suggestion to depends. (LP: #228345)

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
require 'tk/text'
6
6
 
7
7
class TkTextImage<TkObject
8
 
  include TkText::IndexModMethods
 
8
  include Tk::Text::IndexModMethods
9
9
 
10
10
  def initialize(parent, index, keys)
11
 
    #unless parent.kind_of?(TkText)
12
 
    #  fail ArgumentError, "expect TkText for 1st argument"
 
11
    #unless parent.kind_of?(Tk::Text)
 
12
    #  fail ArgumentError, "expect Tk::Text for 1st argument"
13
13
    #end
14
14
    @t = parent
15
15
    if index == 'end' || index == :end
34
34
  end
35
35
 
36
36
  def id
37
 
    TkText::IndexString.new(@id)
 
37
    Tk::Text::IndexString.new(@id)
38
38
  end
39
39
  def mark
40
40
    @path