Update of /cvsroot/freevo/freevo/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3017

Modified Files:
        menu.py 
Log Message:
make it possible to create a submenu inside a plugin

Index: menu.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/menu.py,v
retrieving revision 1.90
retrieving revision 1.91
diff -C2 -d -r1.90 -r1.91
*** menu.py     25 Feb 2004 17:44:30 -0000      1.90
--- menu.py     14 Mar 2004 19:43:27 -0000      1.91
***************
*** 10,13 ****
--- 10,16 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.91  2004/03/14 19:43:27  dischi
+ # make it possible to create a submenu inside a plugin
+ #
  # Revision 1.90  2004/02/25 17:44:30  dischi
  # add special event mapping for tvmenu
***************
*** 599,603 ****
                      else:
                          actions.append(a[:2])
! 
              if actions and (len(actions) > 1 or force):
                  self.make_submenu(menu.selected.name, actions, menu.selected)
--- 602,609 ----
                      else:
                          actions.append(a[:2])
!                         if len(a) == 3 and a[2] == 'MENU_SUBMENU':
!                             a[0](menuw=self)
!                             return
!                         
              if actions and (len(actions) > 1 or force):
                  self.make_submenu(menu.selected.name, actions, menu.selected)
***************
*** 606,610 ****
  
          elif event == MENU_CALL_ITEM_ACTION:
!             _debug_('calling action %s', event.arg)
  
              for a in menu.selected.actions():
--- 612,616 ----
  
          elif event == MENU_CALL_ITEM_ACTION:
!             _debug_('calling action %s' % event.arg)
  
              for a in menu.selected.actions():



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to