Re: Signal to stop reordering a treeview

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxx> 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@xxxxxxxxx
> > http://mail.gnome.org/mailman/listinfo/gtk-list
> --
> Andrew E. Makeev <andrew@xxxxxxxx>
> Solvo Logistic
>



--
    Green Tackle - Environmentally Friendly Fishing Tackle
    www.GreenTackle.com

     Email: micah@xxxxxxxxxxxxxxx
     Phone: 971.270.2206
     Toll Free: 877.580.9165
     Fax: 503.946.3106
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list



[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux