Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm testing my app in Natty 2nd beta, in which most applications are showing the new overlay scroolbars, I guess only non-native GTK apps can't show it (like LibreOffice or Firefox).

My app is coded using Python and pygtk so I thought the overlay scrollbars should be enabled by default but I was wrong. I tried to set the environment variable LIBOVERLAY_SCROLLBAR to 1 in both terminal (previously to the app command) and inside the python code via os.putenv(), but it's still showing the old-fashioned scrollbars.

What am I doing wrong?

share|improve this question
This question is quite old -- do you still have this problem with the final Natty release? – Marcel Stimberg Aug 31 '11 at 20:17
Maybe you want to use PyGI instead of PyGTK. – fitojb Sep 6 '11 at 23:44
Are you using the gtk_scrolled_window widget? Or in PyGTK terms, gtk.ScrolledWindow? – falstaff Sep 9 '11 at 13:23

You should use gtk_scrolled_window widget because is the only widget that support overlay scrollbars.


If it doesn't work try with:

sudo su
echo "export LIBOVERLAY_SCROLLBAR=1" > /etc/X11/Xsession.d/80overlayscrollbars
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.