
#include <gtkmm.h>

class ShowBug : public Gtk::Window
{
public:
	ShowBug();

private:
	Gtk::VPaned paned;
	Gtk::VSeparator separator;

	Gtk::ScrolledWindow win;
	Gtk::TextView text;
	Glib::RefPtr<Gtk::TextBuffer> buf;
};

ShowBug::ShowBug()
{
	separator.set_size_request(-1, 50);

	buf = Gtk::TextBuffer::create();
	buf->set_text("First line.\nSecond line.\nThird line.");

	text.set_buffer(buf);

	win.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_ALWAYS);
	win.add(text);

	paned.pack1(separator);
	paned.pack2(win);

	add(paned);

	set_size_request(300, 300);
	show_all();
}

int
main(int argc, char **argv)
{
	Gtk::Main main_instance(&argc, &argv);

	class ShowBug window;
	Gtk::Main::run(window);

	return 0;
}
