Clean ups, abstract the widgets a bit, and don't segfault when not finding an unsuitable write mode.

This commit is contained in:
Jaime Thomas
2008-12-18 22:16:55 +00:00
parent 6a512c1163
commit 8815f3c6f6
11 changed files with 358 additions and 112 deletions

View File

@@ -163,21 +163,6 @@ ecdb_strip_next_argument(const char *strip)
return NULL;
}
void
ecdb_button_icon_swallow(Evas *e, Evas_Object *b, const char *iname)
{
Evas_Object *icon;
Evas_Coord x, y, w, h;
icon = edje_object_add(e);
edje_object_file_set(icon, em->theme_path, iname);
edje_object_part_geometry_get(b, "icon", &x, &y, &w, &h);
evas_object_move(icon, x, y);
evas_object_resize(icon, w, h);
edje_object_part_swallow(b, "icon", icon);
evas_object_show(icon);
}
int
ecdb_dnd_position(void *data, int type, void *event)
{
@@ -274,6 +259,6 @@ ecdb_dnd_entry_dnd_set(Evas_Object *o, Ecore_X_Selection_Data_Files *files)
Efreet_Uri *uri;
uri = efreet_uri_decode(files->files[0]);
edje_object_part_text_set(o, "label", uri->path);
ecdb_entry_text_set(o, uri->path);
efreet_uri_free(uri);
}