// Compile with:
// g++ listbox_placeholder.cc $(pkg-config --cflags --libs gtkmm-3.0) -o listbox_placeholder

#include <gtkmm/application.h>
#include <gtkmm/label.h>
#include <gtkmm/listbox.h>
#include <gtkmm/window.h>

class TestWindow : public Gtk::Window
{
public:
	TestWindow();
private:
	Gtk::ListBox m_listbox;
	Gtk::Label m_label;
};

TestWindow::TestWindow()
{
	m_listbox.set_placeholder(m_label);
	add(m_listbox);
	show_all_children();
}

int main(int argc, char *argv[])
{
	auto application = Gtk::Application::create(
		argc, argv, "org.gtkmm.example");
	TestWindow window;
}
