Hello,

Thanks a lot, that worked like a charm !
BTW 'xthickness' is part of finger scroll properties and not vscroll or hscroll.
So no need to get those using tidy_scroll_view_get_[hv]scroll_bar().
It directly applies to finger scroll.
  ClutterActor *finger_scroll = tidy_finger_scroll_new 
(TIDY_FINGER_SCROLL_MODE_KINETIC);
  tidy_stylable_set (TIDY_STYLABLE (finger_scroll), "xthickness", 0, NULL);

Thanks for your help.

- kiran

-----Original Message-----
From: Chris Lord [mailto:[email protected]]
Sent: Friday, 20. February 2009 4:32 PM
To: Mike Massonnet
Cc: [email protected]
Subject: Re: [clutter] Tidy finger scroll

Hi,

On Fri, 2009-02-20 at 09:07 +0100, Mike Massonnet wrote:
> Le Fri, 20 Feb 2009 16:03:05 +0800,
> "Kiran Bhide (RBEI/ECG3)" <[email protected]> a écrit :
>
> > Hello,
> >
> > I am using tidy-finger-scroll in kinetic mode in a particular
> > application. Using: tidy-1.0 with Clutter 0.8
> >
> > Does anybody have an idea how to always hide the scrollbar, even
> > while scrolling ?
> >
> > Thanks !
> >
> > Kiran
>
> I don't know how it changed lately, but the scrollbar you see is
> hardcoded in tidy, so it displays always.  The only solution is to
> modify the source and remove the calls to (off my head)
> scrollbars_show.  I don't remember which object exactly, but one
> related from the viewport to the finger_scroll_view.
>
> Mike

TidyFingerScroll is an extension of TidyScrollView. To hide the
scroll-bars permanently, you can set the size of the scroll-bars to zero
by using tidy_scroll_view_get_[hv]scroll_bar() and setting the
'xthickness' and 'ythickness' stylable values using:

tidy_stylable_set (TIDY_STYLABLE (vscrollbar), "xthickness", 0, NULL);
tidy_stylable_set (TIDY_STYLABLE (hscrollbar), "ythickness", 0, NULL);

I'd recommend doing it this way rather than changing the Tidy code.

Other tricks, if you set the scroll-bars reactive, they'll remain
visible permanently too (and will be interactive).

--
Chris Lord, Intel Open Source Technology Centre

--
To unsubscribe send a mail to [email protected]

--
To unsubscribe send a mail to [email protected]

Reply via email to