Hiding scrollbars for GtkScrolledWindow
- From: Felix Möller <kontakt felix-moeller net>
- To: gtk-list gnome org
- Subject: Hiding scrollbars for GtkScrolledWindow
- Date: Tue, 11 Jun 2013 15:03:32 +0200
Hey there,
I'm trying to use a GtkScrolledWindow with the capability of scrolling,
but not displaying scroll bars (so the content has the appropriate
height). I need this behaviour, because I am using a small touch display
and handle the scrolled with bigger and easier to push buttons.
If I set the scrollbars' policy to never, the scrollbar is not
displayed, but the window is not as small as I want it, but as big as
its content. I want it to have the same size as with scrollbars, but
without displaying them.
This C code for GTK3 is what I come up with, besides several other
failed tests, but it does not work:
gtk_widget_hide(gtk_scrolled_window_get_vscrollbar(scrolledwindow));
I tried emulating this code [1] that seems to have worked for someone
working with PyGTK.
Somebody has a clue on how to achieve this?
Thanks
Felix Möller
[1] http://python.6.x6.nabble.com/Hide-scrollbar-tp1941146p1941149.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]