Notebook causes a GTK error

Dear,

I use follow code in Windows (XP Prof, ruby -v = 1.8.7 … mingw32,
wxruby = 2.0.1) and in Linux (Ubuntu 12.04, ruby -v = ruby 1.8.7
(2011-06-30 patchlevel 352) [x86_64-linux], wxruby = wxruby (2.0.0
x86_64-linux)
):

################ Start
require “rubygems”
require “wx”

class MinimalApp < Wx::App
def on_init

@Frame = Wx::Frame.new(nil, -1, $0)
@Sizer = Wx::VBoxSizer.new
@Sizer.fit(@Frame)

@NotebookPanelNormal = Wx::Panel.new(@Frame, -1)
@NotebookPanelSupport = Wx::Panel.new(@Frame, -1)
@Notebook = Wx::Notebook.new(@Frame, -1)
@Notebook.add_page(@NotebookPanelNormal, 'Normal', true)
@Notebook.add_page(@NotebookPanelSupport, 'Support', false)
@Notebook.set_selection(0)

@Sizer.add(@Notebook, 1, Wx::EXPAND|Wx::ALL, 1)
@Frame.set_sizer(@Sizer)

@Frame.layout
@Frame.show

end
end

MinimalApp.new.main_loop
################ End

Windows shows a minimal window, but if it maximize, notebook will shown,
Linux shows not notebook but release the error:

(wxruby:9280): Gtk-CRITICAL **: IA__gtk_window_resize: assertion `width

0’ failed

Any ideas?

Best regards
Frank

Ok it was the @Sizer.fit(@Frame) statement.