From d71918fc7aa484c574427880d9d18b50e150fbd8 Mon Sep 17 00:00:00 2001 From: Jaime Thomas Date: Tue, 14 Apr 2009 02:49:43 +0000 Subject: [PATCH] Small fixes here and there. --- ecdb/trunk/src/ecdb_config_dialog.c | 10 +++++++--- ecdb/trunk/src/ecdb_filelist_custom.c | 4 +++- ecdb/trunk/src/ecdb_misc.c | 9 ++++++--- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/ecdb/trunk/src/ecdb_config_dialog.c b/ecdb/trunk/src/ecdb_config_dialog.c index e00e910..490dec9 100644 --- a/ecdb/trunk/src/ecdb_config_dialog.c +++ b/ecdb/trunk/src/ecdb_config_dialog.c @@ -290,11 +290,15 @@ theme_cb(Ewl_Widget *w, void *event __UNUSED__, void *data) idx = ewl_mvc_selected_get(EWL_MVC(w)); if (!idx) return; - free(em->theme_path); theme = eina_list_nth(l, idx->row); - ecore_config_theme_set("theme", theme); - em->theme_path = ecore_config_theme_with_path_get("theme"); + + if (strcmp(theme, ecore_config_theme_get("theme"))) + { + free(em->theme_path); + ecore_config_theme_set("theme", theme); + em->theme_path = ecore_config_theme_with_path_get("theme"); + } free(idx); } diff --git a/ecdb/trunk/src/ecdb_filelist_custom.c b/ecdb/trunk/src/ecdb_filelist_custom.c index 1db3763..47527ec 100644 --- a/ecdb/trunk/src/ecdb_filelist_custom.c +++ b/ecdb/trunk/src/ecdb_filelist_custom.c @@ -83,11 +83,13 @@ ecdb_custom_filelist_dnd_dropped_cb(Ewl_Widget *w, void *ev, ecdb_custom_filelist_directory_set(EWL_FILELIST(w), parent); - /* And filter it here -- a bit of a hack */ + /* This entire thing here is a hack... */ ewl_filelist_model_data_sort(ewl_mvc_data_get (EWL_MVC(EWL_FILELIST(w)->controller)), 0, EWL_SORT_DIRECTION_ASCENDING); ewl_mvc_dirty_set(EWL_MVC(EWL_FILELIST(w)->controller), TRUE); + ewl_widget_configure(EWL_FILELIST(w)->controller); + /* End hack stuff */ // Send out this event so that we can get notified on size changes // and update the capacity measure diff --git a/ecdb/trunk/src/ecdb_misc.c b/ecdb/trunk/src/ecdb_misc.c index a613dbb..435ca14 100644 --- a/ecdb/trunk/src/ecdb_misc.c +++ b/ecdb/trunk/src/ecdb_misc.c @@ -272,9 +272,12 @@ ecdb_dnd_entry_dnd_set(Evas_Object *o, Ecore_X_Selection_Data_Files *files) { Efreet_Uri *uri; - uri = efreet_uri_decode(files->files[0]); - ecdb_entry_text_set(o, uri->path); - efreet_uri_free(uri); + if ((files) && (files->files)) + { + uri = efreet_uri_decode(files->files[0]); + ecdb_entry_text_set(o, uri->path); + efreet_uri_free(uri); + } } int