Re: custom model rows-reordered marshal




On Jul 6, 2008, at 8:09 PM, Kevin Ryde wrote:

I wonder if it might be something like

        * xs/GtkTreeModel.xs (gtk2perl_tree_model_rows_reordered_marshal):
Call gtk_tree_model_iter_n_children before building the stack, in case
        it's a Perl class and calls out to ITER_N_CHILDREN.  This fixes
        clobbering of instance and treepath args to a Perl rows-reordered
        handler connected on a Perl model.
        * t/GtkTreeModelIface.t: Exercise rows-reordered marshalling.

< reordered .pl > < customlist .pl .reorder .diff><GtkTreeModel.xs.reorder.diff><GtkTreeModelIface.t.reorder.diff>


While i'm mildly surprised that this happens (suggesting that POPi doesn't clean up like you'd expect), i think your changes avoid the issue quite nicely. Torsten?


--
It's all very complicated and would take a scientist to explain it.
  -- MST3K





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