From ab859df1f448da1b7bf5ef048d38e91311af2719 Mon Sep 17 00:00:00 2001 From: Jaime Thomas Date: Sat, 21 Feb 2009 04:10:52 +0000 Subject: [PATCH] Memory leaks, better scaling. --- ecdb/trunk/data/themes/default/groups/window.edc | 4 ++-- ecdb/trunk/src/ecdb_config_dialog.c | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ecdb/trunk/data/themes/default/groups/window.edc b/ecdb/trunk/data/themes/default/groups/window.edc index b293cdb..f5aeda5 100644 --- a/ecdb/trunk/data/themes/default/groups/window.edc +++ b/ecdb/trunk/data/themes/default/groups/window.edc @@ -399,13 +399,13 @@ group { rel1 { to: "config_icon"; relative: 1.0 0.0; - offset: 4 4; + offset: 4 0; } rel2 { to: "config_icon"; relative: 1.0 1.0; - offset: -5 -5; + offset: -5 0; } image { diff --git a/ecdb/trunk/src/ecdb_config_dialog.c b/ecdb/trunk/src/ecdb_config_dialog.c index beeaf97..e457c8c 100644 --- a/ecdb/trunk/src/ecdb_config_dialog.c +++ b/ecdb/trunk/src/ecdb_config_dialog.c @@ -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 theme_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 Eina_List *theme_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_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, del_cb, view); + ewl_callback_append(combo, EWL_CALLBACK_DESTROY, del_cb, model); ewl_mvc_model_set(EWL_MVC(combo), model); ewl_mvc_view_set(EWL_MVC(combo), view); 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)); } +static void +del_cb(Ewl_Widget *w __UNUSED__, void *event __UNUSED__, void *data) +{ + FREE(data); +} +