Re: [gtkmm] Treeview help needed
- From: bart <gtkmm hakvoort be>
- To: "Andreas B. Thun" <abt gmx de>
- Cc: Simon Fuhrmann <NightSlayer gmx de>, Christer Palm <palm nogui se>, David Kinyanjui <david i2software com>, gtkmm-list gnome org
- Subject: Re: [gtkmm] Treeview help needed
- Date: Thu, 15 Apr 2004 22:53:49 +0200
I don't think it'll wors by just passing "1" as an argument. Try passing
a Gtk::TreeViewColumn.
-------------------------------------------------------
Gtk::TreeViewColumn *column = get_column(0);
m_list_store_ref->set_sort_column_id(column, Gtk::SORT_ASCENDING);
-----------------------------------------------------------
Bart
On Thu, 2004-04-15 at 22:47, Andreas B. Thun wrote:
> *Bingo!* Thx Bart! Finally, they are reacting.
>
> > Don't know in which order you do things. But to make the headers
> > clickable you need to call set_headers_clickable() *AFTER* you've
> > appended the columns.
>
> Sorting is not working, though.
> What must I do to get this nice behaviour that every column is sorted
> by the column header when I click the header?
>
>
> I append cols with:
>
> m_tree_view.append_column(gettext("Active"), m_columns.m_col_active);
> m_tree_view.append_column(gettext("Type"), m_columns.m_col_type);
> m_tree_view.append_column(gettext("ID"), m_columns.m_col_id);
> m_tree_view.append_column(gettext("Elements"), m_columns.m_col_elements);
> m_tree_view.append_column(gettext("Description"), m_columns.m_col_description);
>
>
>
> m_list_store_ref->set_sort_column_id(1, Gtk::SORT_ASCENDING);
>
> does not do anything for me ...
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]