Improve popup theme a bit, add ecdb_combo_clear function.

This commit is contained in:
Jaime Thomas
2008-12-21 19:42:30 +00:00
parent a2f739d228
commit 18dffd7af5
4 changed files with 19 additions and 41 deletions

View File

@ -14,7 +14,7 @@ _widget_focus_handle(void *data, Evas_Object *o, const char *emission,
if (!name)
return;
if ((old_source) && (strcmp(old_source, source)))
if ((old_source) && (strcmp(old_source, name)))
{
eo = evas_object_name_find(ecore_evas_get(em->main_win_ee), old_source);
edje_object_signal_emit(eo, "ecdb,focus,out", "ecdb");
@ -710,6 +710,17 @@ ecdb_combo_data_set(Evas_Object *c, void *data)
cd->data = data;
}
void
ecdb_combo_clear(Evas_Object *c)
{
Combo_Data *cd;
cd = evas_object_data_get(c, "cd");
edje_object_part_box_remove_all(cd->popup, "ecdb.box", 1);
cd->selected = 1;
cd->count = 0;
}
/******************************* Label ***************************************/
Evas_Object *

View File

@ -36,6 +36,7 @@ void ecdb_combo_header_create_set(Evas_Object *c, Evas_Object *
int idx));
int ecdb_combo_selected_get(Evas_Object *c);
void ecdb_combo_data_set(Evas_Object *c, void *data);
void ecdb_combo_clear(Evas_Object *c);
Evas_Object *ecdb_label_add(Evas_Object *parent, const char *name);
void ecdb_label_text_set(Evas_Object *l, const char *text);