Hi,

I just committed a set of changes which adds a new callback to the HID
structure:

"""
Add HID hook, close_confirm_dialog() for closing modified layouts.

This allows GUI HIDs to present a more native looking "save before closing"
dialog. The HID is responsible for any save which the user requests and
the subsequent return codes from the HID are as before, 0 for cancel and
1 for close.

This checkin also fixes the GTK HID's Save() action to return 1 for cancel
if the user cancels from the "Save As" dialog.
"""

I added an implementation for the GTK HID, (making this dialog look and
behave like gschem's), and stub implementations for the others - which
just calls the old hook, confirm_dialog (_("OK to lose data ?"), NULL);


If anyone fancies (DJ?) A neater dialog could now be added for Lesstif
which prompts the user if they would like to save.


Best wishes,

-- 
Peter Clifton

Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA

Tel: +44 (0)7729 980173 - (No signal in the lab!)



_______________________________________________
geda-dev mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev

Reply via email to