Hi all,
Finally, I changed my mind about Gtk.init.
Since next release, you don’t need to call Gtk.init by yourself.
Of course, backward compatibility is remained.
If you need to call Gtk.init by yourself for some reason,
require ‘gtk2/base’ instead of require ‘gtk2’.
(this is the smallest sample)
require ‘gtk2’
Gtk::Window.new.show_all
Gtk.main
–
.:% Masao M.[email protected]
Hi Masao!
I may miss something but is it really backward compatible then ?
My programs require ‘gtk2’ and call Gtk.init. Won’t it be a problem ?
–
Mathieu B.
http://www.mblondel.org
Hi,
On Sat, 17 Jun 2006 19:38:37 +0200
Mathieu B. [email protected] wrote:
I may miss something but is it really backward compatible then ?
Yes.
My programs require ‘gtk2’ and call Gtk.init. Won’t it be a problem ?
No. You can call Gtk.init twice or more. And first one is defined
in gtk2.rb.
Only first Gtk.init call is effective.
–
.:% Masao M.[email protected]