Ruby Forum Ruby-Gnome 2 > ruby-glade-create-template bug

Posted by Martin Vales (martin_gnu)
on 28.03.2008 16:57
Hi all:

This is my first post here.

I am using ruby-gnome to work in engineering applications for Windows.

Where i can post a bug to ruby-glade-create-template ????


we don´t have exit signal. Every time you start the app you have a new
instance therefore:


    @glade = GladeXML.new(path_or_data, root, domain, localedir, flag)
{|handler| method(handler)}
    @window = @glade['window1']
    @window.signal_connect("destroy") { Gtk.main_quit }

It´s would be great add this las line to the ruby-glade-create-template.




Regards.
Posted by Shin guey Wong (sgwong)
on 29.03.2008 03:16
Martin Vales wrote:
> Hi all:
> 
> This is my first post here.
> 
> I am using ruby-gnome to work in engineering applications for Windows.
> 
> Where i can post a bug to ruby-glade-create-template ????
> 
> 
> we don´t have exit signal. Every time you start the app you have a new
> instance therefore:
> 
> 
>     @glade = GladeXML.new(path_or_data, root, domain, localedir, flag)
> {|handler| method(handler)}
>     @window = @glade['window1']
>     @window.signal_connect("destroy") { Gtk.main_quit }
> 
> It´s would be great add this last line to the ruby-glade-create-template.
> 
> 
> 
> 
> Regards.

Hmm, sometimes I use multiple glade file for an application. I need to 
control the exit signal myself so some windows destroy will not trigger 
the 'Gtk.main_quit'. I think this is the reason they don't include the 
exit signal in the template generator. This is just my thought, adding a 
single line on the file is easy and don't need to add to the template.

Regards,
Shin Guey