Re: CTree feature request



On Wed, Aug 12, 1998 at 12:18:58PM -0400, John Ellis wrote:
> I am interested in using the ctree's drag and drop functions
> to reorder items.
> 
> For reference, the program is gmenu from GNOME.
> 
> I see that the "tree_move" signal passes the new parent and sibling,
> but how do I get the old parent and sibling (where it came from).
> 
> May I propose the signal as follows:
> 
>   void (*tree_move)         (GtkCTree     *ctree,
>                              GtkCTreeNode *node,
>                              GtkCTreeNode *new_parent,
>                              GtkCTreeNode *new_sibling,
> new part starts here ->      GtkCTreeNode *old_parent,
>                              GtkCTreeNode *old_sibling);

I'm guessing that when you bind the signal, that it runs before the default
handler ... then you can get the old stuff from the node structure itself as
the new_parent and new_sibling have not yet been set ...

that might work I guess

George

-- 
------------------------------------------------------------------------------
George Lebl <jirka@5z.com> http://www.5z.com/jirka/
------------------------------------------------------------------------------
  The following implements RSA in perl and is illegal to export from the US:

          #!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
          $/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
          lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)



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