windows - allow close button to work again in internal wins
since the move to elm_win ... windows don't close with close button in the titlebar. this fixes that in the simplest way - enabling autodel on the window.
This commit is contained in:
parent
fbea7e0d26
commit
285951c8cb
|
@ -31,6 +31,7 @@ _e_dialog_internal_new(Evas_Object *parent, const char *name, const char *class,
|
|||
free(dia);
|
||||
return NULL;
|
||||
}
|
||||
elm_win_autodel_set(dia->win, EINA_TRUE);
|
||||
elm_win_modal_set(dia->win, !!parent);
|
||||
e = evas_object_evas_get(dia->win);
|
||||
evas_object_event_callback_add(dia->win, EVAS_CALLBACK_DEL, _e_dialog_cb_delete, dia);
|
||||
|
|
|
@ -34,6 +34,7 @@ e_obj_dialog_new(E_Comp *c EINA_UNUSED, char *title, char *class_name, char *cla
|
|||
free(od);
|
||||
return NULL;
|
||||
}
|
||||
elm_win_autodel_set(od->win, EINA_TRUE);
|
||||
evas_object_event_callback_add(od->win, EVAS_CALLBACK_DEL, (Evas_Object_Event_Cb)_e_obj_dialog_cb_delete, od);
|
||||
ecore_evas_name_class_set(e_win_ee_get(od->win), class_name, class_class);
|
||||
elm_win_title_set(od->win, title);
|
||||
|
|
|
@ -415,6 +415,7 @@ e_elm_win_add(Evas_Object *parent, const char *name, Elm_Win_Type type)
|
|||
|
||||
e_util_env_set("ELM_ACCEL", "none");
|
||||
o = elm_win_add(parent, name, type);
|
||||
elm_win_autodel_set(o, EINA_TRUE);
|
||||
e_util_env_set("ELM_ACCEL", eng);
|
||||
free(eng);
|
||||
return o;
|
||||
|
|
|
@ -116,6 +116,7 @@ e_configure_show(E_Comp *comp, const char *params)
|
|||
free(eco);
|
||||
return;
|
||||
}
|
||||
elm_win_autodel_set(eco->win, EINA_TRUE);
|
||||
evas_object_data_set(eco->win, "e_conf_win", eco);
|
||||
eco->comp = comp;
|
||||
eco->evas = evas_object_evas_get(eco->win);
|
||||
|
|
|
@ -56,6 +56,7 @@ e_int_config_imc_import(E_Config_Dialog *parent)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
elm_win_autodel_set(win, EINA_TRUE);
|
||||
evas = evas_object_evas_get(win);
|
||||
|
||||
cfdata = E_NEW(E_Config_Dialog_Data, 1);
|
||||
|
|
|
@ -57,6 +57,7 @@ e_int_config_theme_import(E_Config_Dialog *parent)
|
|||
|
||||
evas = evas_object_evas_get(win);
|
||||
|
||||
elm_win_autodel_set(win, EINA_TRUE);
|
||||
cfdata = E_NEW(E_Config_Dialog_Data, 1);
|
||||
import->cfdata = cfdata;
|
||||
import->win = win;
|
||||
|
|
|
@ -682,6 +682,7 @@ _e_fwin_new(const char *dev,
|
|||
free(fwin);
|
||||
return NULL;
|
||||
}
|
||||
elm_win_autodel_set(fwin->win, EINA_TRUE);
|
||||
fwins = eina_list_append(fwins, fwin);
|
||||
evas_object_event_callback_add(fwin->win, EVAS_CALLBACK_DEL, _e_fwin_cb_delete, fwin);
|
||||
evas_object_event_callback_add(fwin->win, EVAS_CALLBACK_RESIZE, _e_fwin_cb_resize, fwin);
|
||||
|
|
|
@ -677,6 +677,7 @@ _shot_now(E_Zone *zone, E_Client *ec, const char *params)
|
|||
if (win) e_object_del(E_OBJECT(win));
|
||||
win = elm_win_add(NULL, NULL, ELM_WIN_BASIC);
|
||||
|
||||
elm_win_autodel_set(win, EINA_TRUE);
|
||||
evas = evas_object_evas_get(win);
|
||||
elm_win_title_set(win, _("Where to put Screenshot..."));
|
||||
evas_object_event_callback_add(win, EVAS_CALLBACK_DEL, _win_delete_cb, NULL);
|
||||
|
|
Loading…
Reference in New Issue