Add a close button callback hook at the request of devilhorns.
authorDavid Walter Seikel <onefang@gmail.com>
Sat, 21 Jan 2006 12:44:48 +0000 (12:44 +0000)
committerDavid Walter Seikel <onefang@gmail.com>
Sat, 21 Jan 2006 12:44:48 +0000 (12:44 +0000)
commitbca4e798f164516f51a34df72d9ebec5d97a33a8
treef25e813a9eea51ef98c147fcc0108b8eb4f54098
parentc59b0cff46fe6153a2c6f4be9fdd47074a4220fc
Add a close button callback hook at the request of devilhorns.

If the callback returns zero, the dialog is NOT closed.

Seems that every user of config_dialog allocates E_Config_Dialog_View on
the stack and doesn't clear it, so I can't rely on the close_cfdata member
being NULL.  I currently set it to NULL in e_config_dialog_new() and if
you want to use it, set it in create_widgets();  I suspect that allocating
a structure on the stack that lives beyond the function call is just
asking for trouble.

SVN revision: 19945
src/bin/e_config_dialog.c
src/bin/e_config_dialog.h