/[ascend]/branches/adrian/pygtk/canvas/contextmenutool.py
ViewVC logotype

Diff of /branches/adrian/pygtk/canvas/contextmenutool.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2005 by jpye, Mon Apr 20 08:39:46 2009 UTC revision 2007 by jpye, Mon Apr 27 06:09:29 2009 UTC
# Line 24  class ContextMenuTool(Tool): Line 24  class ContextMenuTool(Tool):
24              menu = gtk.Menu()              menu = gtk.Menu()
25              menu.connect("deactivate",self.deactivate,context)              menu.connect("deactivate",self.deactivate,context)
26              menurename = gtk.MenuItem("Re_name",True)              menurename = gtk.MenuItem("Re_name",True)
27              window = context.view.get_parent_window()              window = context.view.parent.parent.parent.parent
             print window.__class__  
28              menurename.connect("activate",self.rename,context.view.hovered_item,window)              menurename.connect("activate",self.rename,context.view.hovered_item,window)
29              menu.add(menurename)              menu.add(menurename)
30              menudelete = gtk.MenuItem("_Delete",True)              menudelete = gtk.MenuItem("_Delete",True)

Legend:
Removed from v.2005  
changed lines
  Added in v.2007

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22