Code

make horizontal scrollbar automatic
authorbuliabyak <buliabyak@users.sourceforge.net>
Tue, 27 Mar 2007 04:29:20 +0000 (04:29 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Tue, 27 Mar 2007 04:29:20 +0000 (04:29 +0000)
src/ui/previewholder.cpp

index 5d87eb4f5665cbaa83ad77fa6096c9c2601d3f90..1717e5053c0cc2b5f1d5fe2e6254a7abc24b7433 100644 (file)
@@ -143,7 +143,7 @@ void PreviewHolder::setOrientation( Gtk::AnchorType how )
             case Gtk::ANCHOR_NORTH:
             case Gtk::ANCHOR_SOUTH:
             {
-                dynamic_cast<Gtk::ScrolledWindow*>(_scroller)->set_policy( Gtk::POLICY_ALWAYS, _wrap ? Gtk::POLICY_AUTOMATIC : Gtk::POLICY_NEVER );
+                dynamic_cast<Gtk::ScrolledWindow*>(_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<Gtk::ScrolledWindow*>(_scroller)->set_policy( Gtk::POLICY_ALWAYS, _wrap ? Gtk::POLICY_AUTOMATIC : Gtk::POLICY_NEVER );
+                dynamic_cast<Gtk::ScrolledWindow*>(_scroller)->set_policy( Gtk::POLICY_AUTOMATIC, _wrap ? Gtk::POLICY_AUTOMATIC : Gtk::POLICY_NEVER );
             }
             break;
             default: