Re: How to get the real selection order in a tree view?
- From: Jérôme Couderc <j couderc ifrance com>
- To: Tim Müller <zen18864 zen co uk>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: How to get the real selection order in a tree view?
- Date: Wed, 15 Sep 2004 00:56:31 +0200
Hi Tim,
I suppose that you are speaking about the function :
void gtk_tree_selection_set_select_function(GtkTreeSelection *selection,
GtkTreeSelectionFunc func,
gpointer data,
GtkDestroyNotify destroy);
This doesn't seems to be easy to use as it also use the function when
unselecting a line.
The last line selected must be stored somewhere as when using "the shift
kek + the mouse" it select the line from the *last selected line+ to the
newer one...
Regards,
Jerome
Tim Müller wrote:
On Monday 13 September 2004 21:46, Jérôme Couderc wrote:
In my case, I need to get the real order of the selection of lines in a
list (created with gtk_tree_view_with_model).
For example, if were selected the line 3 and then the line 1, by using
the function "gtk_tree_selection_get_selected_rows" I get a list of
lines ordered : 1, then 3. Instead of 3, then 1.
So anyone has an idea to get the real order of the selection?
Set up your own select function (note that it is called _before_ the selection
state of the row is toggled!), and keep your own list around.
Cheers
-Tim
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]