[elm] Forgotten cleanups and comments on gengrid.
authorGustavo Lima Chaves <glima@profusion.mobi>
Mon, 16 Jul 2012 21:56:18 +0000 (21:56 +0000)
committerGustavo Lima Chaves <glima@profusion.mobi>
Mon, 16 Jul 2012 21:56:18 +0000 (21:56 +0000)
SVN revision: 73940

src/lib/elm_gengrid.c
src/lib/elm_gengrid.h

index 0251f3a..e8da041 100644 (file)
@@ -1,5 +1,3 @@
-//fixme deprecate calls which deserve it
-
 #include <Elementary.h>
 #include <Elementary_Cursor.h>
 #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);
index 587caa4..d12f66a 100644 (file)
@@ -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.
  *
  * @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.