[gtkmm] TreeView::append_column API question
- From: "Daniel Evison" <devison pacificit co nz>
- To: "gtkmm mailing list" <gtkmm-list gnome org>
- Subject: [gtkmm] TreeView::append_column API question
- Date: Thu, 18 Jul 2002 19:49:57 +1200
Hi,
As a very minor point, I was wondering if it would make more sense for the
TreeView::append_column to return the column instead of the column count.
Then instead of this (from example_treeview_editable_cells.cc):
gint cols_count = m_TreeView.append_column("Number", *pRenderer);
Gtk::TreeViewColumn* pColumn = m_TreeView.get_column(cols_count-1);
You could say:
Gtk::TreeViewColumn* pColumn = m_TreeView.append_column("Number",
*pRenderer);
Would that often be more useful?
Dan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]