From 7462b4464411f169e3b4cc8fa2ed52bcdc2f2b8a Mon Sep 17 00:00:00 2001 From: fgerlits Date: Mon, 13 Aug 2007 10:33:49 +0000 Subject: [PATCH] fixed a bug with the paging buttons --- campcaster/src/products/gLiveSupport/src/SearchWindow.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/campcaster/src/products/gLiveSupport/src/SearchWindow.cxx b/campcaster/src/products/gLiveSupport/src/SearchWindow.cxx index 4949d8881..2c6b517c9 100644 --- a/campcaster/src/products/gLiveSupport/src/SearchWindow.cxx +++ b/campcaster/src/products/gLiveSupport/src/SearchWindow.cxx @@ -247,6 +247,8 @@ SearchWindow :: constructSearchResultsView(void) throw () &SearchWindow::onBackwardButtonClicked)); forwardButton->signal_clicked().connect(sigc::mem_fun(*this, &SearchWindow::onForwardButtonClicked)); + + updatePagingToolbar(); } @@ -1126,8 +1128,8 @@ SearchWindow :: updatePagingToolbar(void) throw () std::cerr << e.what() << std::endl; std::exit(1); } - backwardButton->set_sensitive(offset == 0); - forwardButton->set_sensitive(offset + getSearchResultsSize() >= count); + backwardButton->set_sensitive(offset != 0); + forwardButton->set_sensitive(offset + getSearchResultsSize() < count); } else { searchResultsCountLabel->set_text(""); backwardButton->set_sensitive(false);