Clean ups, abstract the widgets a bit, and don't segfault when not finding an unsuitable write mode.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user