Author: mordante
Date: Sun May 18 09:18:06 2008
New Revision: 26683

URL: http://svn.gna.org/viewcvs/wesnoth?rev=26683&view=rev
Log:
The scrollbar now is also deactivate when nothing to scroll.
set_size() also should call set_scrollbar_button_status(), which is now done.

Modified:
    trunk/src/gui/widgets/listbox.cpp

Modified: trunk/src/gui/widgets/listbox.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/widgets/listbox.cpp?rev=26683&r1=26682&r2=26683&view=diff
==============================================================================
--- trunk/src/gui/widgets/listbox.cpp (original)
+++ trunk/src/gui/widgets/listbox.cpp Sun May 18 09:18:06 2008
@@ -235,6 +235,9 @@
                        button->set_active(!scrollbar()->at_end());
                }
        }
+
+       // Set the scrollbar itself
+       scrollbar()->set_active(!(scrollbar()->at_begin() && 
scrollbar()->at_end()));
 }
 
 /**
@@ -375,6 +378,7 @@
        } else {
                scrollbar()->set_visible_items(1);
        }
+       set_scrollbar_button_status();
 }
 
 twidget* tlistbox::find_widget(const tpoint& coordinate, const bool 
must_be_active) 


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to