[Gtk-sharp-list] How to close a dialog in OnResponse method

Jon García de Salazar Bilbao j.garcia at ziv.es
Tue Jun 20 13:33:46 EDT 2006


Hi,
I'm trying to close a custom dialog after performing some operations
in my OnResponse override. How can I close the dialog properly?

protected override void OnResponse(ResponseType response_id)
        {
            switch (response_id)
            {
                case ResponseType.Ok:
                    IDevice new_device = 
builders[type_combo.Active].GetDevice();
                    devices.Add(new_device);
                    //:TODO: quit
                    break;
                default:
                    base.OnResponse(response_id);
                    break;
            }
        }

Thanks in advance, Jon.


More information about the Gtk-sharp-list mailing list