add a stock icon for urls

This commit is contained in:
Chris Jones 2008-06-04 00:52:19 +01:00
parent 8349b32498
commit 0d1f5ce4ff
1 changed files with 6 additions and 1 deletions

View File

@ -681,6 +681,10 @@ text/plain
address = url[0]
nameopen = _("_Open Link")
namecopy = _("_Copy Link Address")
iconopen = gtk.image_new_from_stock(gtk.STOCK_JUMP_TO, gtk.ICON_SIZE_MENU)
item = gtk.ImageMenuItem (nameopen)
item.set_property('image', iconopen)
else:
if url[0][0:7] != "mailto:":
address = "mailto:" + url[0]
@ -689,7 +693,8 @@ text/plain
nameopen = _("_Send Mail To...")
namecopy = _("_Copy Email Address")
item = gtk.MenuItem (nameopen)
item = gtk.MenuItem (nameopen)
item.connect ("activate", lambda menu_item: openurl (address))
menu.append (item)