Re: Signal to stop reordering a treeview

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

 



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

_______________________________________________
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