GNOME Bugzilla – Bug 318332
ScrolledWindow::get_(v/h)scrollbar_visible() are inverted
Last modified: 2005-10-10 06:46:05 UTC
Distribution/Version: gentoo Compile and run the following program: #include <iostream> #include <gtkmm.h> using namespace Gtk; using namespace std; class MainWindow : public Window { public: MainWindow() : _label("Some text ... \n" "..................................................................\n" "..................................................................\n" "..................................................................\n" "..................................................................\n" "..................................................................\n" "..................................................................\n" "..................................................................\n" "..................................................................\n" "..................................................................\n"), _bVisible("Query") { set_title("ScrolledWindowBug"); set_size_request(200, 200); set_border_width(5); _vBox.set_spacing(5); _scroll.set_policy(POLICY_AUTOMATIC, POLICY_AUTOMATIC); add(_vBox); _vBox.add(_scroll); _scroll.add(_label); _vBox.pack_start(_bVisible, PACK_SHRINK); show_all_children(); _bVisible.signal_clicked().connect (mem_fun(*this, &MainWindow::cb_visible)); } private: void cb_visible() { cout << "-------------------------------------" << endl; cout << "_scroll.get_hscrollbar_visible() == " << _scroll.get_hscrollbar_visible() << endl; cout << "_scroll.get_vscrollbar_visible() == " << _scroll.get_vscrollbar_visible() << endl; } ScrolledWindow _scroll; VBox _vBox; Label _label; Button _bVisible; }; int main(int argc, char **argv) { Main kit(argc, argv); MainWindow win; Main::run(win); }
I'll try to do a new release after a week or so. *** This bug has been marked as a duplicate of 317309 ***