TreeView::Sort
- From: Andy Ma <khma sfu ca>
- To: bart hakvoort be, gtkmm-list gnome org
- Cc:
- Subject: TreeView::Sort
- Date: Fri, 22 Oct 2004 12:32:42 -0700
Thanks Bart,
The click signal works~
I have another question.
Using a Glib::RefPtr<Gtk::ListStore> pListStore,
I can do a sort on a column, (I'm using gtkmm-2.2)
i.e. pListStore->set_sort_column_id(columns.integerID, Gtk::SORT_ASCENDING);
but if I have the same integer in a few rows and I want to do a subsequent
sort based on another column (i.e. integer too),
any idea how to do that?
i.e I have data like:
Col1 Col2
-------------
41 6
32 4
32 2
32 1
32 3
55 5
Want sorting based on Col1 then Col2, sorted rows become:
Col1 Col2
-------------
32 1
32 2
32 3
32 4
41 6
55 5
Any hints are appreciated.
Andy
On Fri, 22 Oct 2004 20:45:04 +0200 bart hakvoort be wrote:
> Hi Andy,
>
> Quick guess... Are you looking for
> Glib::SignalProxy0<void> signal_clicked () ?
>
>
> regards,
>
> Bart
>
> On Fri, 2004-10-22 at 11:39 -0700, Andy Ma wrote:
> > Hi,
> >
> > Just a quick question related to the column headers on a TreeView,
> > After I set the headers clickable,
> > how can I attach a signal handler to respond to the user clicking on a
> > column header?
> >
> > I can't seem to find an example function that does that.
> > Any quick hints are greatly appreciated.
> >
> > Andy
> >
> > _______________________________________________
> > gtkmm-list mailing list
> > gtkmm-list gnome org
> > http://mail.gnome.org/mailman/listinfo/gtkmm-list
> --
> www.titanium-it.nl --- Open Minded Open Source
> www.heavenisopen.com <-----Another Source
>
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
(http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1TreeVie
wColumn.html#a66)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]