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)); 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);
if (strcmp(theme, ecore_config_theme_get("theme")))
{
free(em->theme_path);
ecore_config_theme_set("theme", theme); ecore_config_theme_set("theme", theme);
em->theme_path = ecore_config_theme_with_path_get("theme"); em->theme_path = ecore_config_theme_with_path_get("theme");
}
free(idx); 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); 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

View File

@ -272,10 +272,13 @@ ecdb_dnd_entry_dnd_set(Evas_Object *o, Ecore_X_Selection_Data_Files *files)
{ {
Efreet_Uri *uri; Efreet_Uri *uri;
if ((files) && (files->files))
{
uri = efreet_uri_decode(files->files[0]); uri = efreet_uri_decode(files->files[0]);
ecdb_entry_text_set(o, uri->path); ecdb_entry_text_set(o, uri->path);
efreet_uri_free(uri); efreet_uri_free(uri);
} }
}
int int
ecdb_speed_convert(Ecdb_Drive_Info *drive, int sel) ecdb_speed_convert(Ecdb_Drive_Info *drive, int sel)