On Fri, Aug 15, 2003 at 10:51:29AM +0900, oxman wrote:
> I have girc.rb and function.rb
> In girc.rg i have :
[snip]
> it's work, a new tab is create

> in function.rb i have :

>     def addserver(model, server)
 ... snip ...
>         @buffer[server][2].add(@buffer[server][0])
>         p @buffer[server]
>         model.append_page(@buffer[server][2],  Gtk::Label.new('_Info2', true))

model.show_all() # or @buffer[server][2].show()

>     end

> and i don't have a new tab when i call the function !!
> i call the function in girc.rb with :
> addserver(listechan, "irc.xxxxxx.org")

> so why it don't work ??

Gtk creates all widgets as hidden by default: You need to explicitly
call either Gtk::Widget#show on a widget before Gtk will display it (or
Gtk::Widget#show_all on a parent widget).

TTFN,


Geoff.