From 708bf9d7a7969beba486c8c849f8f19607b2e890 Mon Sep 17 00:00:00 2001 From: Gustavo Lima Chaves Date: Mon, 16 Jul 2012 21:56:18 +0000 Subject: [PATCH] [elm] Forgotten cleanups and comments on gengrid. SVN revision: 73940 --- src/lib/elm_gengrid.c | 5 ++--- src/lib/elm_gengrid.h | 6 +++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/lib/elm_gengrid.c b/src/lib/elm_gengrid.c index 0251f3a..e8da041 100644 --- a/src/lib/elm_gengrid.c +++ b/src/lib/elm_gengrid.c @@ -1,5 +1,3 @@ -//fixme deprecate calls which deserve it - #include #include #include "elm_priv.h" @@ -234,7 +232,6 @@ ELM_INTERNAL_SMART_SUBCLASS_NEW (GENGRID_PAN_SMART_NAME, _elm_gengrid_pan, Elm_Pan_Smart_Class, Elm_Pan_Smart_Class, elm_pan_smart_class_get, NULL); -//FIXME: remove it typedef struct _Elm_Gengrid_Pan_Smart_Data Elm_Gengrid_Pan_Smart_Data; struct _Elm_Gengrid_Pan_Smart_Data { @@ -2425,6 +2422,8 @@ elm_gengrid_add(Evas_Object *parent) sd->s_iface->objects_set (obj, ELM_WIDGET_DATA(sd)->resize_obj, sd->hit_rect); + sd->old_h_bounce = bounce; + sd->old_v_bounce = bounce; sd->s_iface->bounce_allow_set(obj, bounce, bounce); sd->s_iface->animate_start_cb_set(obj, _scroll_animate_start_cb); diff --git a/src/lib/elm_gengrid.h b/src/lib/elm_gengrid.h index 587caa4..d12f66a 100644 --- a/src/lib/elm_gengrid.h +++ b/src/lib/elm_gengrid.h @@ -16,6 +16,9 @@ * view) or via the keyboard, navigating through item with the * arrow keys. * + * This widget inherits from the @ref Layout one, so that all the + * functions acting on it also work for gengrid objects. + * * This widget implements the @b @ref elm-scrollable-interface * interface, so that all (non-deprecated) functions for the base @ref * Scroller widget also work for gengrids. @@ -158,7 +161,8 @@ * * @section Gengrid_Smart_Events Gengrid smart events * - * Smart events that you can add callbacks for are: + * This widget emits the following signals, besides the ones sent from + * @ref Layout: * - @c "activated" - The user has double-clicked or pressed * (enter|return|spacebar) on an item. The @c event_info parameter * is the gengrid item that was activated. -- 2.7.4