[gtkmm] Gtk::TreeView and configure event



Hi, All!
I'm trying to handle events, when my treeview is resized:

class hardw_window : public hardw_window_glade
{
public:
	hardw_window();
	~hardw_window() {};
	AddHardwColumns addhardwColumns;
  	Glib::RefPtr<Gtk::TreeStore> addhardwModel;
private:
	bool on_hardwtree_configure_event(GdkEventConfigure* event);
};
//-------
hardw_window::hardw_window()
{
hardwtree->signal_configure_event().connect(
      SigC::slot(*this, &my_window::on_hardwtree_configure_event));
}
//-----
bool hardw_window::on_hardwtree_configure_event(GdkEventConfigure* event)
{
std::cout << "here" << std::endl;
  return true;
}

But nothing happens when I resize the tree (by dragging the edge of
a window or by expanding tree rows).
So what's wrong? Maybe, TreeView is unable to receive configure event?
	Igor Gorbounov




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]