After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 318332 - ScrolledWindow::get_(v/h)scrollbar_visible() are inverted
ScrolledWindow::get_(v/h)scrollbar_visible() are inverted
Status: RESOLVED DUPLICATE of bug 317309
Product: gtkmm
Classification: Bindings
Component: general
2.6.x
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2005-10-09 12:05 UTC by noche.suapie
Modified: 2005-10-10 06:46 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10



Description noche.suapie 2005-10-09 12:05:03 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);
}
Comment 1 Murray Cumming 2005-10-10 06:46:05 UTC
I'll try to do a new release after a week or so.

*** This bug has been marked as a duplicate of 317309 ***