Forum: Ruby-Gnome 2 Non-modal ListView editors don't close - then crash when closed

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
7e6cdf272a7177072fecd8e019bcf6f7?d=identicon&s=25 Chris Phoenix (chrisphoenix)
on 2014-04-30 09:17
I'm displaying my own classes in a ListView; the classes have a show()
method and a Glade window definition, so I can edit the objects by

I want these editor windows to be non-modal - I want to be able to open
several of them at once, and go back to working in the parent window. So
I set non-modal and delete-with-parent in Glade.

When I close the parent window (the one that contained the ListView) the
editor windows do not close. But when I then close them, the program
crashes with a
`signal_emit_stop': destroyed GLib::Object

Is there a way to do this? Or do I have to use only modal editor

0d130f179f85401f248e6ebc2ef8292f?d=identicon&s=25 Eric C. (eric_c)
on 2014-05-03 01:03
Just liik at the child window example.  You don't need to set anything
in glade.  Its really simple.  There are two types of windows in visual

1) No Parent (modal)  Modal windows don't need to have a parent
identified because you must close the child first (modal)

2) Parent set (non-modal)  When you set the parent, visualruby knows
that if the parent closes it should close the child too.

Here's the code to open a child window:

  def buttonOpenChild__clicked(*argv) #self = parent

  def modalButton__clicked(*argv)

You pass the parent reference to the show() method to create a non-modal

7e6cdf272a7177072fecd8e019bcf6f7?d=identicon&s=25 Chris Phoenix (chrisphoenix)
on 2014-05-03 03:20
Huh. That's how I was doing it.

When I set modal "no" in Glade, and then don't pass self to show(), it
works fine.

Anyway, it's now working fine.
This topic is locked and can not be replied to.