grrr ²
The extension is required >.<
2009/8/25 Gustavo Sverzut Barbieri <barbi...@profusion.mobi>
> you need to have your firefox to recognize *.patch *.diff as text/*,
> otherwise it will send as octet-stream and will be removed by source
> forge mail list. Add that to /etc/mime.types
>
> On Tue, Aug 25, 2009 at 6:56 PM, Atton Jonathan<jonathan.at...@gmail.com>
> wrote:
> > grrr
> >
> > 2009/8/25 Nicolas Aguirre <aguirre.nico...@gmail.com>
> >
> >>
> >>
> >> 2009/8/25 Atton Jonathan <jonathan.at...@gmail.com>
> >>
> >> hey,
> >>>
> >>> I have made a patch which allow an application to deactivate/activate
> the
> >>> thumbscroll. I need to do something like that in my application. I am
> not
> >>> sure this is really clean.
> >>>
> >>>
> >>>
> >> Where is the patch ?
> >>
> >> --
> >> Nicolas Aguirre
> >> Mail: aguirre.nico...@gmail.com
> >> Web: http://www.digital-corner.org
> >>
> >
> >
> >
> > --
> > Regards.
> >
> >
> ------------------------------------------------------------------------------
> > Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day
> > trial. Simplify your report design, integration and deployment - and
> focus on
> > what you do best, core application coding. Discover what's new with
> > Crystal Reports now. http://p.sf.net/sfu/bobj-july
> > _______________________________________________
> > enlightenment-devel mailing list
> > enlightenment-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> >
> >
>
>
>
> --
> Gustavo Sverzut Barbieri
> http://profusion.mobi embedded systems
> --------------------------------------
> MSN: barbi...@gmail.com
> Skype: gsbarbieri
> Mobile: +55 (19) 9225-2202
>
--
Regards.
Index: src/lib/elm_scroller.c
===================================================================
--- src/lib/elm_scroller.c (revision 41910)
+++ src/lib/elm_scroller.c (working copy)
@@ -286,3 +286,11 @@
if (!wd) return;
elm_smart_scroller_bounce_allow_set(wd->scr, h_bounce, v_bounce);
}
+
+EAPI void
+elm_scroller_thumbscroll_set(Evas_Object *obj, Eina_Bool thumbscroll)
+{
+ Widget_Data *wd = elm_widget_data_get(obj);
+ if (!wd) return;
+ elm_smart_scroller_thumbscroll_allow_set(wd->scr, thumbscroll);
+}
Index: src/lib/els_scroller.c
===================================================================
--- src/lib/els_scroller.c (revision 41910)
+++ src/lib/els_scroller.c (working copy)
@@ -77,6 +77,7 @@
unsigned char bouncemey : 1;
unsigned char bounce_horiz : 1;
unsigned char bounce_vert : 1;
+ unsigned char thumbscroll : 1;
};
/* local subsystem functions */
@@ -660,6 +661,14 @@
sd->bounce_vert = vert;
}
+void
+elm_smart_scroller_thumbscroll_allow_set(Evas_Object *obj, Eina_Bool thumbscroll)
+{
+ API_ENTRY return;
+ sd->thumbscroll = thumbscroll;
+ sd->down.now = 0;
+}
+
/* local subsystem functions */
static void
_smart_edje_drag_v(void *data, Evas_Object *obj, const char *emission, const char *source)
@@ -786,7 +795,7 @@
sd = data;
ev = event_info;
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return ;
- if (_elm_config->thumbscroll_enable)
+ if (_elm_config->thumbscroll_enable && sd->thumbscroll)
{
if (sd->down.bounce_x_animator)
{
@@ -857,7 +866,7 @@
ev = event_info;
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return ;
// FIXME: respect elm_widget_scroll_hold_get of parent container
- if (_elm_config->thumbscroll_enable)
+ if (_elm_config->thumbscroll_enable && sd->thumbscroll)
{
if (ev->button == 1)
{
@@ -969,7 +978,7 @@
ev = event_info;
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return ;
// FIXME: respect elm_widget_scroll_hold_get of parent container
- if (_elm_config->thumbscroll_enable)
+ if (_elm_config->thumbscroll_enable && sd->thumbscroll)
{
if (sd->down.now)
{
@@ -1478,6 +1487,7 @@
sd->bounce_horiz = 1;
sd->bounce_vert = 1;
+ sd->thumbscroll = 1;
sd->one_dir_at_a_time = 1;
Index: src/lib/Elementary.h.in
===================================================================
--- src/lib/Elementary.h.in (revision 41910)
+++ src/lib/Elementary.h.in (working copy)
@@ -316,6 +316,7 @@
EAPI void elm_scroller_region_get(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h);
EAPI void elm_scroller_child_size_get(Evas_Object *obj, Evas_Coord *w, Evas_Coord *h);
EAPI void elm_scroller_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce);
+ EAPI void elm_scroller_thumbscroll_set(Evas_Object *obj, Eina_Bool thumbscroll);
/* smart callbacks called:
* "edge_left"
* "edge_right"
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel