Small fixes here and there.

This commit is contained in:
Jaime Thomas 2009-04-14 02:49:43 +00:00
parent aa9e0f4f3d
commit 89c6406b48
3 changed files with 16 additions and 7 deletions

View File

@ -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);
}

View File

@ -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

View File

@ -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