Enlightenment CVS committal
Author : handyande
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_actions.c
Log Message:
If someone closed the exit dialog (not using cancel) the exit_dialog pointer
got left around - fix
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_actions.c,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -3 -r1.48 -r1.49
--- e_actions.c 7 Jan 2006 10:39:45 -0000 1.48
+++ e_actions.c 11 Jan 2006 14:22:54 -0000 1.49
@@ -1262,11 +1262,21 @@
exit_dialog = NULL;
}
+static void
+_e_actions_cb_exit_dialog_delete(E_Win *win)
+{
+ E_Dialog *dia;
+
+ dia = win->data;
+ _e_actions_cb_exit_dialog_cancel(NULL, dia);
+}
+
ACT_FN_GO(exit)
{
if (exit_dialog) e_object_del(E_OBJECT(exit_dialog));
exit_dialog =
e_dialog_new(e_container_current_get(e_manager_current_get()));
if (!exit_dialog) return;
+ e_win_delete_callback_set(exit_dialog->win,
_e_actions_cb_exit_dialog_delete);
e_dialog_title_set(exit_dialog, _("Are you sure you want to exit?"));
e_dialog_text_set(exit_dialog,
_("You requested to exit Enlightenment.<br>"
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs