As the name implies, I have gtk.TreeView , whose model is sorted and filtered. According to the documentation : "Reordering row reordering only works with unsorted repositories." The only other information relates to the use of external sources, which in this case I do not need.
I tried to implement it anyway by providing handlers for the received drag and drop signals, but still get the following error:
Gtk Warning. When using models that do not support the GtkTreeDragDest interface, you can override the default "drag_data_received" handler in GtkTreeView and enable drag and drop. The easiest way to do this is to connect to drag_data_received and call g_signal_stop_emission_by_name () in the signal handler to prevent the default handler from starting. Look at the source code of the default handler in gtktreeview.c to see what your handler should do. (gtktreeview.c is in the GTK source code.) If you use GTK from a language other than C, it might be a more natural way to override the default handlers, for example. through derivation.
Despite this, although I have not yet implemented it, it looks like I could make it work, since it does not crash. However, this is a warning that I would rather not do.
So, is there a python equivalent for g_signal_stop_emission_by_name , or am I wrong about that?
source share