PDA

View Full Version : Gtkmm sorcery



cl333r
February 24th, 2009, 02:44 AM
Hi folks,
I found out that both

Gtk::TreeView::Column *pColumn=m_TreeView.get_column(cols_count-1);
and

Gtk::TreeViewColumn *pColumn=m_TreeView.get_column(cols_count-1);
compile and execute well.
Does anyone know of a link where I can read about why one can write both Gtk::TreeView::Column and Gtk::TreeViewColumn with same success?

cabalas
February 24th, 2009, 03:46 AM
Not as much sorcery as you might think, the second is just a typedef of the first, it mentions it somewhere in the docs.

On the chance you haven't run across typedef before http://en.wikipedia.org/wiki/Typedef

cl333r
February 24th, 2009, 04:45 AM
thanks