ashbb / green_shoes

Green Shoes is one of the colorful Shoes written in pure Ruby.
Other
204 stars 37 forks source link

Avoid calling Gtk.main_quit too often #21

Closed mvz closed 13 years ago

mvz commented 13 years ago

In the current implementation of exit, Gtk.main_quit is called once more than the number of apps. When running sample4, this leads to error messages on exit if the text in the text box was cut and pasted:

Gtk-CRITICAL **:IA__gtk_main_quit: assertion `main_loops != NULL' failed

The problem seems to usually not appear because the application has already exited before the extra timer is triggered.

This commit solves the problem.

ashbb commented 13 years ago

Thank you for the bug fixing. I've merged. :)