/[ascend]/trunk/pygtk/modelview.py
ViewVC logotype

Diff of /trunk/pygtk/modelview.py

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

revision 893 by johnpye, Mon Sep 11 08:31:21 2006 UTC revision 894 by johnpye, Mon Oct 23 01:07:58 2006 UTC
# Line 63  class ModelView: Line 63  class ModelView:
63    
64          # TODO import this menu from Glade (this code is a PITA)          # TODO import this menu from Glade (this code is a PITA)
65    
66            print "'free' ICON IS AT %s" % (self.browser.options.assets_dir+'/unlocked.png')
67          self.treecontext = gtk.Menu();          self.treecontext = gtk.Menu();
68          self.fixmenuitem = gtk.ImageMenuItem("_Fix",True);          self.fixmenuitem = gtk.ImageMenuItem("_Fix",True);
69          self.fixmenuitem.set_image(self.browser.fixedimg)          self.fixmenuitem.set_image(self.browser.fixedimg)
70    
71          self.freemenuitem = gtk.ImageMenuItem("F_ree",True);          self.freemenuitem = gtk.ImageMenuItem("F_ree",True);
72          _img = gtk.Image()          _img = gtk.Image()
73          _img.set_from_file(self.browser.options.assets_dir+'unlocked.png')          _img.set_from_file(self.browser.options.assets_dir+'/unlocked.png')
74          self.freemenuitem.set_image(_img)          self.freemenuitem.set_image(_img)
75    
76          self.propsmenuitem = gtk.ImageMenuItem("_Properties",True);          self.propsmenuitem = gtk.ImageMenuItem("_Properties",True);
77          _img = gtk.Image()          _img = gtk.Image()
78          _img.set_from_file(self.browser.options.assets_dir+'properties.png')          _img.set_from_file(self.browser.options.assets_dir+'/properties.png')
79          self.propsmenuitem.set_image(_img)          self.propsmenuitem.set_image(_img)
80    
81          self.observemenuitem = gtk.ImageMenuItem("_Observe",True);          self.observemenuitem = gtk.ImageMenuItem("_Observe",True);
82          _img = gtk.Image()          _img = gtk.Image()
83          _img.set_from_file(self.browser.options.assets_dir+'observe.png')          _img.set_from_file(self.browser.options.assets_dir+'/observe.png')
84          self.observemenuitem.set_image(_img)          self.observemenuitem.set_image(_img)
85    
86          self.fixmenuitem.show(); self.fixmenuitem.set_sensitive(False)          self.fixmenuitem.show(); self.fixmenuitem.set_sensitive(False)

Legend:
Removed from v.893  
changed lines
  Added in v.894

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