Small fixes here and there.
This commit is contained in:
parent
aa9e0f4f3d
commit
89c6406b48
@ -290,11 +290,15 @@ theme_cb(Ewl_Widget *w, void *event __UNUSED__, void *data)
|
|||||||
idx = ewl_mvc_selected_get(EWL_MVC(w));
|
idx = ewl_mvc_selected_get(EWL_MVC(w));
|
||||||
if (!idx)
|
if (!idx)
|
||||||
return;
|
return;
|
||||||
free(em->theme_path);
|
|
||||||
|
|
||||||
theme = eina_list_nth(l, idx->row);
|
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);
|
free(idx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -83,11 +83,13 @@ ecdb_custom_filelist_dnd_dropped_cb(Ewl_Widget *w, void *ev,
|
|||||||
|
|
||||||
ecdb_custom_filelist_directory_set(EWL_FILELIST(w), parent);
|
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_filelist_model_data_sort(ewl_mvc_data_get
|
||||||
(EWL_MVC(EWL_FILELIST(w)->controller)),
|
(EWL_MVC(EWL_FILELIST(w)->controller)),
|
||||||
0, EWL_SORT_DIRECTION_ASCENDING);
|
0, EWL_SORT_DIRECTION_ASCENDING);
|
||||||
ewl_mvc_dirty_set(EWL_MVC(EWL_FILELIST(w)->controller), TRUE);
|
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
|
// Send out this event so that we can get notified on size changes
|
||||||
// and update the capacity measure
|
// and update the capacity measure
|
||||||
|
@ -272,9 +272,12 @@ ecdb_dnd_entry_dnd_set(Evas_Object *o, Ecore_X_Selection_Data_Files *files)
|
|||||||
{
|
{
|
||||||
Efreet_Uri *uri;
|
Efreet_Uri *uri;
|
||||||
|
|
||||||
uri = efreet_uri_decode(files->files[0]);
|
if ((files) && (files->files))
|
||||||
ecdb_entry_text_set(o, uri->path);
|
{
|
||||||
efreet_uri_free(uri);
|
uri = efreet_uri_decode(files->files[0]);
|
||||||
|
ecdb_entry_text_set(o, uri->path);
|
||||||
|
efreet_uri_free(uri);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
Loading…
Reference in New Issue
Block a user