add a stock icon for urls
This commit is contained in:
parent
8349b32498
commit
0d1f5ce4ff
|
@ -681,6 +681,10 @@ text/plain
|
||||||
address = url[0]
|
address = url[0]
|
||||||
nameopen = _("_Open Link")
|
nameopen = _("_Open Link")
|
||||||
namecopy = _("_Copy Link Address")
|
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:
|
else:
|
||||||
if url[0][0:7] != "mailto:":
|
if url[0][0:7] != "mailto:":
|
||||||
address = "mailto:" + url[0]
|
address = "mailto:" + url[0]
|
||||||
|
@ -690,6 +694,7 @@ text/plain
|
||||||
namecopy = _("_Copy Email Address")
|
namecopy = _("_Copy Email Address")
|
||||||
|
|
||||||
item = gtk.MenuItem (nameopen)
|
item = gtk.MenuItem (nameopen)
|
||||||
|
|
||||||
item.connect ("activate", lambda menu_item: openurl (address))
|
item.connect ("activate", lambda menu_item: openurl (address))
|
||||||
menu.append (item)
|
menu.append (item)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue