~ubuntu-branches/ubuntu/intrepid/ruby1.8/intrepid-updates

« back to all changes in this revision

Viewing changes to ext/tk/lib/tkextlib/tkimg/ico.rb

  • Committer: Bazaar Package Importer
  • Author(s): akira yamada
  • Date: 2007-03-13 22:11:58 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20070313221158-h3oql37brlaf2go2
Tags: 1.8.6-1
* new upstream version, 1.8.6.
* libruby1.8 conflicts with libopenssl-ruby1.8 (< 1.8.6) (closes: #410018)
* changed packaging style to cdbs from dbs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
#  TkImg - format 'ico'
 
3
#                               by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
 
4
#
 
5
require 'tk'
 
6
 
 
7
# call setup script for general 'tkextlib' libraries
 
8
require 'tkextlib/setup.rb'
 
9
 
 
10
# call setup script
 
11
require 'tkextlib/tkimg/setup.rb'
 
12
 
 
13
# TkPackage.require('img::ico', '1.3')
 
14
TkPackage.require('img::ico')
 
15
 
 
16
module Tk
 
17
  module Img
 
18
    module ICO
 
19
      PACKAGE_NAME = 'img::ico'.freeze
 
20
      def self.package_name
 
21
        PACKAGE_NAME
 
22
      end
 
23
 
 
24
      def self.package_version
 
25
        begin
 
26
          TkPackage.require('img::ico')
 
27
        rescue
 
28
          ''
 
29
        end
 
30
      end
 
31
    end
 
32
  end
 
33
end