Memory leaks, better scaling.
This commit is contained in:
parent
18e1316929
commit
58fd9857a7
@ -399,13 +399,13 @@ group {
|
|||||||
rel1 {
|
rel1 {
|
||||||
to: "config_icon";
|
to: "config_icon";
|
||||||
relative: 1.0 0.0;
|
relative: 1.0 0.0;
|
||||||
offset: 4 4;
|
offset: 4 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
rel2 {
|
rel2 {
|
||||||
to: "config_icon";
|
to: "config_icon";
|
||||||
relative: 1.0 1.0;
|
relative: 1.0 1.0;
|
||||||
offset: -5 -5;
|
offset: -5 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
image {
|
image {
|
||||||
|
@ -10,6 +10,7 @@ static void fps_cb(Ewl_Widget *w, void *event, void *data);
|
|||||||
static void engine_cb(Ewl_Widget *w, void *event, void *data);
|
static void engine_cb(Ewl_Widget *w, void *event, void *data);
|
||||||
static void theme_cb(Ewl_Widget *w, void *event, void *data);
|
static void theme_cb(Ewl_Widget *w, void *event, void *data);
|
||||||
static void combo_cb(Ewl_Widget *w, void *event, void *data);
|
static void combo_cb(Ewl_Widget *w, void *event, void *data);
|
||||||
|
static void del_cb(Ewl_Widget *w, void *event, void *data);
|
||||||
static void use_scale_cb(Ewl_Widget *w, void *event, void *data);
|
static void use_scale_cb(Ewl_Widget *w, void *event, void *data);
|
||||||
static Eina_List *theme_data_init(void);
|
static Eina_List *theme_data_init(void);
|
||||||
static Eina_List *engine_data_init(void);
|
static Eina_List *engine_data_init(void);
|
||||||
@ -176,6 +177,8 @@ ecdb_config_dialog_show(void)
|
|||||||
ewl_container_child_append(EWL_CONTAINER(border_box), combo);
|
ewl_container_child_append(EWL_CONTAINER(border_box), combo);
|
||||||
ewl_callback_append(combo, EWL_CALLBACK_VALUE_CHANGED, engine_cb, NULL);
|
ewl_callback_append(combo, EWL_CALLBACK_VALUE_CHANGED, engine_cb, NULL);
|
||||||
ewl_callback_append(combo, EWL_CALLBACK_DESTROY, combo_cb, data);
|
ewl_callback_append(combo, EWL_CALLBACK_DESTROY, combo_cb, data);
|
||||||
|
ewl_callback_append(combo, EWL_CALLBACK_DESTROY, del_cb, view);
|
||||||
|
ewl_callback_append(combo, EWL_CALLBACK_DESTROY, del_cb, model);
|
||||||
ewl_mvc_model_set(EWL_MVC(combo), model);
|
ewl_mvc_model_set(EWL_MVC(combo), model);
|
||||||
ewl_mvc_view_set(EWL_MVC(combo), view);
|
ewl_mvc_view_set(EWL_MVC(combo), view);
|
||||||
ewl_mvc_data_set(EWL_MVC(combo), data);
|
ewl_mvc_data_set(EWL_MVC(combo), data);
|
||||||
@ -466,3 +469,9 @@ use_scale_cb(Ewl_Widget *w, void *event __UNUSED__, void *data)
|
|||||||
ewl_widget_disable(EWL_WIDGET(data));
|
ewl_widget_disable(EWL_WIDGET(data));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
del_cb(Ewl_Widget *w __UNUSED__, void *event __UNUSED__, void *data)
|
||||||
|
{
|
||||||
|
FREE(data);
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user