Re: Signal to stop reordering a treeview
- From: Micah Carrick <micah greentackle com>
- To: andrew solvo ru
- Cc: gtk-list gnome org
- Subject: Re: Signal to stop reordering a treeview
- Date: Wed, 11 May 2011 08:37:05 -0700
I'm actually trying to use the treeview's "reorderable" property (with
no sorting), but now I see in the manual:
This function does not give you any degree of control over the order
-- any reordering is allowed. If more control is needed, you should
probably handle drag and drop manually.
So, I guess I'll have to go with the manual drag and drop route.
On Wed, May 11, 2011 at 12:19 AM, Andrew E. Makeev <andrew solvo ru> wrote:
>
> I guess, you would to use these functions with your model:
> gtk_tree_sortable_set_sort_func()
> gtk_tree_sortable_set_default_sort_func()
>
> In sorting_callback() you should to return -1 if left TreeIter (a)
> represents folder and right TreeIter (b) represents file, and return 1
> when reversed.
>
> В Втр, 10/05/2011 в 21:56 -0700, Micah Carrick пишет:
> > Is there a way I can stop an automatic treeview reorder based on the
> > target row? Basically, I have files and folders.... folders cannot be
> > dropped onto files (or it they are, the reorder should be ignored).
> >
> >
> > - Micah
> >
> >
> >
> > _______________________________________________
> > gtk-list mailing list
> > gtk-list gnome org
> > http://mail.gnome.org/mailman/listinfo/gtk-list
> --
> Andrew E. Makeev <andrew solvo ru>
> Solvo Logistic
>
--
Green Tackle - Environmentally Friendly Fishing Tackle
www.GreenTackle.com
Email: micah greentackle com
Phone: 971.270.2206
Toll Free: 877.580.9165
Fax: 503.946.3106
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]