Show icon for right click storage path copy option.

This commit is contained in:
Cole Robinson 2008-09-30 11:37:52 -04:00
parent 223626157b
commit b9ed921a7c
1 changed files with 4 additions and 1 deletions

View File

@ -77,7 +77,10 @@ class vmmHost(gobject.GObject):
self.window.get_widget("vol-list").set_model(volListModel)
self.volmenu = gtk.Menu()
volCopyPath = gtk.MenuItem("Copy Volume Path")
volCopyPath = gtk.ImageMenuItem(_("Copy Volume Path"))
volCopyImage = gtk.Image()
volCopyImage.set_from_stock(gtk.STOCK_COPY, gtk.ICON_SIZE_MENU)
volCopyPath.set_image(volCopyImage)
volCopyPath.show()
volCopyPath.connect("activate", self.copy_vol_path)
self.volmenu.add(volCopyPath)