check for < Gtk+ version 2.10 before calling gdk_display_close.
Attach a file by drag & drop or click to upload