From 2b97764cb7fcddb77998c3cc3bbf71f6c8e18ab2 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Tue, 27 Mar 2007 04:29:20 +0000 Subject: [PATCH] make horizontal scrollbar automatic --- src/ui/previewholder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/previewholder.cpp b/src/ui/previewholder.cpp index 5d87eb4f5..1717e5053 100644 --- a/src/ui/previewholder.cpp +++ b/src/ui/previewholder.cpp @@ -143,7 +143,7 @@ void PreviewHolder::setOrientation( Gtk::AnchorType how ) case Gtk::ANCHOR_NORTH: case Gtk::ANCHOR_SOUTH: { - dynamic_cast(_scroller)->set_policy( Gtk::POLICY_ALWAYS, _wrap ? Gtk::POLICY_AUTOMATIC : Gtk::POLICY_NEVER ); + dynamic_cast(_scroller)->set_policy( Gtk::POLICY_AUTOMATIC, _wrap ? Gtk::POLICY_AUTOMATIC : Gtk::POLICY_NEVER ); } break; @@ -172,7 +172,7 @@ void PreviewHolder::setWrap( bool b ) case Gtk::ANCHOR_NORTH: case Gtk::ANCHOR_SOUTH: { - dynamic_cast(_scroller)->set_policy( Gtk::POLICY_ALWAYS, _wrap ? Gtk::POLICY_AUTOMATIC : Gtk::POLICY_NEVER ); + dynamic_cast(_scroller)->set_policy( Gtk::POLICY_AUTOMATIC, _wrap ? Gtk::POLICY_AUTOMATIC : Gtk::POLICY_NEVER ); } break; default: -- 2.30.2