From 89c6406b48fc95a6bb575c22cba1d2ba67305579 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. --- experimental/ecdb/trunk/src/ecdb_config_dialog.c | 10 +++++++--- experimental/ecdb/trunk/src/ecdb_filelist_custom.c | 4 +++- experimental/ecdb/trunk/src/ecdb_misc.c | 9 ++++++--- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/experimental/ecdb/trunk/src/ecdb_config_dialog.c b/experimental/ecdb/trunk/src/ecdb_config_dialog.c index e00e9106..490dec96 100644 --- a/experimental/ecdb/trunk/src/ecdb_config_dialog.c +++ b/experimental/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/experimental/ecdb/trunk/src/ecdb_filelist_custom.c b/experimental/ecdb/trunk/src/ecdb_filelist_custom.c index 1db37636..47527ec9 100644 --- a/experimental/ecdb/trunk/src/ecdb_filelist_custom.c +++ b/experimental/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/experimental/ecdb/trunk/src/ecdb_misc.c b/experimental/ecdb/trunk/src/ecdb_misc.c index a613dbba..435ca146 100644 --- a/experimental/ecdb/trunk/src/ecdb_misc.c +++ b/experimental/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