[ukai] A crow may be drowned by aping a cormorant
Fumitoshi UKAI's hacking life

Sat, 06 Aug 2005

mhc 0.25.1+20050120-2 upload and goodbye ruby1.6

mhc is the last one of my fix needed of debconf dependency. The fix of debconf dependency is trivial. Use ${misc:Depends}.

Anyway, other concern exists in mhc, ruby1.6 dependency. Currently, ruby1.8 is the default version of ruby in debian and ruby1.6 is considered as obsoleted. The reason mhc depended on ruby1.6 is that gemcal uses libgtk-ruby, which is only available for ruby1.6. For ruby1.8, there are libgtk2-ruby. The gtk2 API differs from gtk, so it is not so easy to port gtk ruby script to gtk2.

With Ruby-GNOME2 API Reference and try and error, I finally ported gemcal and mhc-gtk.rb to gtk2.

What I need to do is:

  • change "require 'gtk'" to "require 'gtk2'", of course.
  • Need "Gtk.init" call.
  • In gtk2, text string should be UTF-8.
  • Gtk::WINDOW_TOPLEVEL renamed to Gtk::Window::TOPLEVEL
  • Use Gtk::TextView instead of Gtk::Text. get_text method is renamed text method. signal would come through its buffer.
  • Gtk::WINDOW_DIALOG disappeared. Inherit Gtk::Dialog instead.
  • no more set_delay method in Gtk::Tooltips
  • Use Pango::FontDescription instead of Gtk::Font and use set_font_desc instead of set_font.
  • Gtk::CList is disappeared. Use Gtk::ListStore, Gtk::TreeView and Gtk::TreeColumnView
  • appending to list has been changed. append method of Gtk::ListStore returns Gtk::TreeIter so that you can add new entry to it.
  • Use Gtk::Image instead of Gtk::Pixmap
  • set_usize method is deprecated?
  • border_width(n) method is deprecated. Use set_border_width(n) instead.

Thus, mhc-utils no longer requires ruby1.6 and libgtk-ruby. mhc-utils 0.25.1+20050120-2 depends on ruby1.8 and libgtk2-ruby.

Goodbye ruby1.6!

 # apt-get remove libruby1.6
[02:48] | [debian/mhc] | # | TB| G



Name:


E-mail:


URL:


Comment:


< August 2005 >
SuMoTuWeThFrSa
  1 2 3 4 5 6
7 8 910111213
14151617181920
21222324252627
28293031   

Categories

Archives

My Sites
ukai.jp
mu
me
Diary
[rss]

Web Sites
Debian
Debian JP
snapshot.debian.net
Japan Linux Association
Free Software Initiative of Japan

powered by pyblosxom