On 14 May 2001 06:11:27 +0900, m.rokos / sh.cvut.cz wrote: > Hello! > I would like to see > Ruby binding to Gnome 2.0. > (I thing it's relevant to start now - API has been freezed) > > Does anybody plan this? > > I hope I could help with that :-)) I started with Bonobo-bindings yesterday and I am surpriced of how easy it was to get going. As of now I can only do one thing, create containers and put bonobo-components in them. here is some example code (just for fun) require 'gtk' require 'bonobo' def create_app bonobo_win = Bonobo::Window.new("test", "a ruby/bonobo test") bonobo_win.set_usize(200, 120) uic = Bonobo::UIContainer.new uic.set_win(bonobo_win) # This is deprecated (shouldn't be used) # This is the C-bonobo-component from the Bonobo tutorial monkier = "OAFIID:GNOME_BonoboTutorial_IPCtrl_Control" control = Bonobo::Widget.new(monkier, uic) # FIXME: add listener to controls property bag (not done yet) box = Gtk::VBox.new(TRUE, 2) box.pack_start(control) bonobo_win.set_contents(box) button = Gtk::Button.new("clear") box.pack_start(button) button.signal_connect("clicked") { |w| print "clicked" } bonobo_win.signal_connect("destroy") {|w| exit } bonobo_win.show_all return FALSE end Bonobo.init Gtk.idle_add { create_app } Bonobo.main works great :) However, Bonobo uses corba and we don't have a working ruby-orbit-binding. There is a ruby-orbit-project that is abandoned. This means that this Bonobo-binding will be alittle limited (not bad.. but some) /Erik -- Erik BéČfors | http://erik.bagfors.nu/ erik / bagfors.nu | Erik.Bagfors / engohol.se Supporter of free software | GSM +46 733 279 273 fingerprint: 6666 A85B 95D3 D26B 296B 6C60 4F32 2C0B 693D 6E32