Hi Dan,

Could you also export this callback in the introspection? See the other
widgets for callback description.

On Saturday, March 3, 2012, Enlightenment SVN <no-re...@enlightenment.org>
wrote:
> Log:
> elm multibuttonentry: Revised codes.
>  1. fixed formatting.
>  2. renamed smart callback "shrank" -> "contracted"
>  I just renamed this smart callback without backport because
multibuttonentry committed recently and backport will be removed in a
couple of days (elm 1.0 api freeze)
>  Signed-off-by: Daniel Juyung Seo <seojuy...@gmail.com>
>
> Author:       seoz
> Date:         2012-03-02 22:11:50 -0800 (Fri, 02 Mar 2012)
> New Revision: 68639
> Trac:         http://trac.enlightenment.org/e/changeset/68639
>
> Modified:
>  trunk/elementary/src/bin/test_multibuttonentry.c
trunk/elementary/src/lib/elc_multibuttonentry.c
trunk/elementary/src/lib/elc_multibuttonentry.h
>
> Modified: trunk/elementary/src/bin/test_multibuttonentry.c
> ===================================================================
> --- trunk/elementary/src/bin/test_multibuttonentry.c    2012-03-03
06:11:45 UTC (rev 68638)
> +++ trunk/elementary/src/bin/test_multibuttonentry.c    2012-03-03
06:11:50 UTC (rev 68639)
> @@ -94,11 +94,11 @@
>
>  // "contracted" smart callback
>  static void
> -_shrank_cb(void *data __UNUSED__,
> +_contracted_cb(void *data __UNUSED__,
>            Evas_Object *obj __UNUSED__,
>            void *event_info __UNUSED__)
>  {
> -   printf("shrank!\n");
> +   printf("contracted!\n");
>  }
>
>  // "contracted,state,changed" smart callback
> @@ -164,7 +164,7 @@
>    evas_object_smart_callback_add(mbe, "unfocused", _mbe_unfocused_cb,
NULL);
>
>    evas_object_smart_callback_add(mbe, "expanded", _expanded_cb, NULL);
> -   evas_object_smart_callback_add(mbe, "shrank", _shrank_cb, NULL);
> +   evas_object_smart_callback_add(mbe, "contracted", _contracted_cb,
NULL);
>    evas_object_smart_callback_add(mbe, "shrink,state,changed",
_shrink_state_changed_cb, NULL);
>
>    evas_object_resize(mbe, 220, 300);
>
> Modified: trunk/elementary/src/lib/elc_multibuttonentry.c
> ===================================================================
> --- trunk/elementary/src/lib/elc_multibuttonentry.c     2012-03-03
06:11:45 UTC (rev 68638)
> +++ trunk/elementary/src/lib/elc_multibuttonentry.c     2012-03-03
06:11:50 UTC (rev 68639)
> @@ -113,10 +113,10 @@
>  static Evas_Coord _calculate_item_max_height(Evas_Object *box,
Evas_Object_Box_Data *priv, int obj_index);
>  static void _box_layout_cb(Evas_Object *o, Evas_Object_Box_Data *priv,
void *data);
>  static void _item_text_set_hook(Elm_Object_Item *it,
> -                               const char *part,
> -                               const char *label);
> -static const char * _item_text_get_hook(const Elm_Object_Item *it,
> -                                        const char *part);
> +                                const char *part,
> +                                const char *label);
> +static const char *_item_text_get_hook(const Elm_Object_Item *it,
> +                                       const char *part);
>
>  // XXX: use evas_object_smart_callback_descriptions_set for smart
callbacks.
>
> @@ -254,7 +254,7 @@
>    evas_object_geometry_get(wd->box, NULL, NULL, &w, &h);
>
>    if (wd->h_box < h) evas_object_smart_callback_call (data, "expanded",
NULL);
> -   else if (wd->h_box > h) evas_object_smart_callback_call (data,
"shrank", NULL);
> +   else if (wd->h_box > h) evas_object_smart_callback_call (data,
"contracted", NULL);
>
>    wd->w_box = w;
>    wd->h_box = h;
> @@ -534,7 +534,7 @@
>  }
>
>  static void
> -_set_label(Evas_Object *obj, const char* str)
> +_set_label(Evas_Object *obj, const char *str)
>  {
>    Widget_Data *wd = elm_widget_data_get(obj);
>
> @@ -573,7 +573,7 @@
>  }
>
>  static void
> -_set_guidetext(Evas_Object *obj, const char* str)
> +_set_guidetext(Evas_Object *obj, const char *str)
>  {
>    Widget_Data *wd = elm_widget_data_get(obj);
>
>
> Modified: trunk/elementary/src/lib/elc_multibuttonentry.h
> ===================================================================
> --- trunk/elementary/src/lib/elc_multibuttonentry.h     2012-03-03
06:11:45 UTC (rev 68638)
> +++ trunk/elementary/src/lib/elc_multibuttonentry.h     2012-03-03
06:11:50 UTC (rev 68639)
> @@ -16,9 +16,8 @@
>  * - @c "focused" - when multibuttonentry is focused.
>  * - @c "unfocused" - when multibuttonentry is unfocused.
>  * - @c "expanded" - when multibuttonentry is expanded.
> - * XXX: shrank -> contracted
> - * - @c "shrank" - when multibuttonentry is shrank.
> - * - @c "shrank,state,changed" - when shrink mode state of
multibuttonentry is
> + * - @c "contracted" - when multibuttonentry is contracted.
> + * - @c "shrink,state,changed" - when shrink mode state of
multibuttonentry is
>  *                               changed.
>  *
>  * Default text parts of the multibuttonentry widget that you can use for
are:
>
>
>
------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> enlightenment-svn mailing list
> enlightenment-...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to