From: Kouhei S. <ko...@co...> - 2012-12-09 14:59:44
|
須藤です。 In <50C...@to...> "[ruby-gnome2-devel-ja] ruby/gtk2 Text entry field is uneditable" on Sun, 09 Dec 2012 23:50:01 +0900, Mahoro Shimura <ma...@to...> wrote: > ruby/gtk2のupdateを行ったところ,今まで動いていたスクリプトに不具合が発 > 生しました. > > 現象は > テキストエントリーフィールドが Editable にならない. > というものです. > > チュートリアルのスクリプトでも現象の再現を確認しました. > http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-numtxt-entry > > 実行環境 > OS:Windows7 Home Premium > ruby 1.9.3.p327 [i386-mingw32] > gtk2 1.1.6 [x86-mingw32] > > ちなみに古いバージョンだと Editable になりました. > > 古いバージョンの実行環境 > OS:Windows7 Home Premium > ruby 1.9.3.p194 [x86-mingw32] > gtk2 1.1.3 [x86-mingw32] > > 対処法を教えていただけますでしょうか. gtk2ではなく、GTK+の問題かもしれません。 gtk2 1.1.3ではGTK+ 2.24.8を使っていて、1.1.6では2.24.10を使っ ているのです。 1.1.4と1.1.5も試してもらえないでしょうか。 1.1.4はGTK+ 2.24.8で、1.1.5はGTK+ 2.24.10なので、もし、 1.1.3と1.1.4で動いて、1.1.5と1.1.6で動かないならGTK+に問題が ありそうな気がします。 もしそうなら、GTK+ 2.24.8をバンドルしたgtk2をリリースしよう と思います。 ちなみに、gtk2 1.1.4は以下のようにインストールできます。 > gem install gtk2 -v '=1.1.4' gtk2 1.1.5は以下のようにインストールできます。 > gem install gtk2 -v '=1.1.5' Rubyスクリプト中で使うgtk2のバージョンを指定するためには 以下のようにrequire "gtk2"の前にgem "gtk2", "= バージョン" を書いてください。 1.1.4: gem "gtk2", "= 1.1.4" require "gtk2" 1.1.5: gem "gtk2", "= 1.1.5" require "gtk2" |