02/03/25 02:55.net
>>144-145
Ruby/Gtk 0.27 では Ruby/Gtkのサンプルプログラム testgtk.rb 中で
notebookのサンプルを見ようとしたときにも同様のエラーが出るので、
Ruby/Gtk 0.27 の問題だと思われます。 とりあえず、 Ruby/Gtk 0.26 をお使いください。
#####
ruby-gnome-all-0.27/gtk/sample/testgtk% ruby testgtk.rb
Gtk-CRITICAL **: file gtkobject.c: line 1080 (gtk_object_get_data): assertion `GTK_IS_OBJECT (object)' failed.
Gtk-WARNING **: invalid cast from `(unknown)' to `GtkObject'
./notebook.rb:273:in `append_page_menu': not a Gtk object (TypeError)
from ./notebook.rb:273:in `create_pages'
from ./notebook.rb:213:in `upto'
from ./notebook.rb:213:in `create_pages'
from ./notebook.rb:104:in `initialize'
from ./sample.rb:20:in `new'
from ./sample.rb:20:in `invoke'
from testgtk.rb:185:in `create_main_window'
from testgtk.rb:184:in `call'
from testgtk.rb:228:in `main'
from testgtk.rb:228:in `main'
from testgtk.rb:264