From 7a6f108ed651e01abf27660d61df2fc9ade52969 Mon Sep 17 00:00:00 2001 From: Jaime Thomas Date: Sat, 20 Dec 2008 17:45:18 +0000 Subject: [PATCH] Oops, we need to actually send the signal --- .../ecdb/trunk/data/themes/default/groups/button.edc | 7 +++++++ experimental/ecdb/trunk/src/ecdb_widgets.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/experimental/ecdb/trunk/data/themes/default/groups/button.edc b/experimental/ecdb/trunk/data/themes/default/groups/button.edc index 2b02afd1..05d12662 100644 --- a/experimental/ecdb/trunk/data/themes/default/groups/button.edc +++ b/experimental/ecdb/trunk/data/themes/default/groups/button.edc @@ -307,6 +307,13 @@ group { transition: DECELERATE 0.2; } + program { + name: "click_emit"; + signal: "mouse,clicked,1"; + source: "*"; + action: SIGNAL_EMIT "clicked" "ecdb"; + } + program { name: "focus_out"; signal: "ecdb,focus,out"; diff --git a/experimental/ecdb/trunk/src/ecdb_widgets.c b/experimental/ecdb/trunk/src/ecdb_widgets.c index ae82b7de..06fb521a 100644 --- a/experimental/ecdb/trunk/src/ecdb_widgets.c +++ b/experimental/ecdb/trunk/src/ecdb_widgets.c @@ -37,7 +37,7 @@ ecdb_button_add(Evas_Object *parent, const char *name) b = ecdb_widget_add(parent, name); edje_object_file_set(b, em->theme_path, "ecdb/button"); - edje_object_signal_callback_add(b, "ecdb,button,clicked", "ecdb", + edje_object_signal_callback_add(b, "clicked", "ecdb", _button_click_cb_call, b); return b; @@ -375,7 +375,7 @@ _combo_hide(void *data, Evas *e, Evas_Object *obj, void *event_info) static void _combo_clicked(void *data, Evas_Object *obj, void *event_info) { - printf("object clicked..."); + printf("object clicked...\n"); } static void