From: ChunEon Park Date: Fri, 1 Jul 2011 08:27:11 +0000 (+0900) Subject: Merge branch 'master' of 165.213.180.234:/slp/pkgs/e/elementary X-Git-Tag: 1.0.0+svn.58393slp2+build40~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2e288b4c54f3192762116a37371c48b3b16857f6;hp=531edbd4e49e3aa40ff13a264fcdaf4913bf94e4;p=framework%2Fuifw%2Felementary.git Merge branch 'master' of 165.213.180.234:/slp/pkgs/e/elementary --- diff --git a/src/lib/elm_button.c b/src/lib/elm_button.c index 4476c04..4a5c4cf 100644 --- a/src/lib/elm_button.c +++ b/src/lib/elm_button.c @@ -12,6 +12,7 @@ * * "clicked" - the user clicked the button * "repeated" - the user pressed the button without releasing it + * "pressed" - when the button is pressed * "unpressed" - when the button is unpressed (released) */ @@ -59,10 +60,12 @@ static void _signal_default_text_set(void *data, Evas_Object *obj, const char *e static const char SIG_CLICKED[] = "clicked"; static const char SIG_REPEATED[] = "repeated"; +static const char SIG_PRESSED[] = "pressed"; static const char SIG_UNPRESSED[] = "unpressed"; static const Evas_Smart_Cb_Description _signals[] = { {SIG_CLICKED, ""}, {SIG_REPEATED, ""}, + {SIG_PRESSED, ""}, {SIG_UNPRESSED, ""}, {NULL, NULL} }; @@ -333,6 +336,8 @@ _signal_pressed(void *data, Evas_Object *obj __UNUSED__, const char *emission __ else wd->timer = ecore_timer_add(wd->ar_threshold, _autorepeat_initial_send, data); } + + evas_object_smart_callback_call(data, SIG_PRESSED, NULL); } static void