Ticket #1172 (closed defect: fixed)

Opened 5 years ago

Last modified 4 years ago

Some demos do not close properly on "Close"

Reported by: guest Owned by: axel
Priority: normal Milestone: 0.11.0
Component: demos Version: 0.11.0
Keywords: Cc: conal@…

Description

When I press the "Close" button in the opengl gtk2hs demo, the window stays up, and control returns to ghci. I fixed my own copy by changing

  Gtk.onClicked button Gtk.mainQuit

to

  Gtk.onClicked button (Gtk.widgetDestroy window)

At least one other demo (carsim) has the same bug. I haven't checked them all.

Change History

Changed 4 years ago by axel

  • owner changed from somebody to axel
  • status changed from new to assigned

True, in ghci, quitting the main loop doesn't mean closing all windows. So we should do both, destroy the window and quite the loop.

Changed 4 years ago by axel

  • status changed from assigned to closed
  • resolution set to fixed

I hope we fixed all demos now.

Note: See TracTickets for help on using tickets.