New upstream version of kazehakase was released and Hidetaka Iwai packaged it. It depends on mozilla >= 1.7.11, so it won't run on sarge any more.
Sat, 06 Aug 2005
[22:08] | [/debian/kazehakase] | # (0) | TB| G
Fried Bitter Gourd and Pork with Miso and Potato
[20:57] | [/life/cooking] | # (0) | TB| G
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] | # (0) | TB| G
![[ukai]](/images/ukai-hack.png)
