also hook dialog delete in entry dialog
SVN revision: 75081
This commit is contained in:
parent
4f59520f88
commit
74594f4c6d
|
@ -1,6 +1,7 @@
|
||||||
#include "e.h"
|
#include "e.h"
|
||||||
|
|
||||||
/* Private function definitions */
|
/* Private function definitions */
|
||||||
|
static void _e_entry_dia_del(void *data);
|
||||||
static void _e_entry_dialog_free(E_Entry_Dialog *dia);
|
static void _e_entry_dialog_free(E_Entry_Dialog *dia);
|
||||||
static void _e_entry_dialog_ok(void *data, E_Dialog *dia);
|
static void _e_entry_dialog_ok(void *data, E_Dialog *dia);
|
||||||
static void _e_entry_dialog_cancel(void *data, E_Dialog *dia);
|
static void _e_entry_dialog_cancel(void *data, E_Dialog *dia);
|
||||||
|
@ -40,7 +41,7 @@ e_entry_dialog_show(const char *title, const char *icon, const char *text,
|
||||||
|
|
||||||
mask = 0;
|
mask = 0;
|
||||||
evas_object_key_ungrab(dia->event_object, "space", mask, ~mask);
|
evas_object_key_ungrab(dia->event_object, "space", mask, ~mask);
|
||||||
|
e_object_del_attach_func_set(E_OBJECT(dia), _e_entry_dia_del);
|
||||||
e_win_delete_callback_set(dia->win, _e_entry_dialog_delete);
|
e_win_delete_callback_set(dia->win, _e_entry_dialog_delete);
|
||||||
|
|
||||||
if (title) e_dialog_title_set(dia, title);
|
if (title) e_dialog_title_set(dia, title);
|
||||||
|
@ -70,6 +71,14 @@ e_entry_dialog_show(const char *title, const char *icon, const char *text,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Private Function Bodies */
|
/* Private Function Bodies */
|
||||||
|
static void
|
||||||
|
_e_entry_dia_del(void *data)
|
||||||
|
{
|
||||||
|
E_Dialog *dia = data;
|
||||||
|
|
||||||
|
e_object_del(dia->data);
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_e_entry_dialog_free(E_Entry_Dialog *ed)
|
_e_entry_dialog_free(E_Entry_Dialog *ed)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue