Add tooltip to New Torrent tool button

This commit is contained in:
Andrew Resch 2007-06-26 22:56:43 +00:00
parent 2a646d91c0
commit 999a4d31c7
1 changed files with 2 additions and 0 deletions

View File

@ -58,6 +58,8 @@ class TorrentCreator:
self.toolbutton_image.set_from_stock(gtk.STOCK_NEW, gtk.ICON_SIZE_MENU) self.toolbutton_image.set_from_stock(gtk.STOCK_NEW, gtk.ICON_SIZE_MENU)
self.toolbutton = gtk.ToolButton(self.toolbutton_image, _("New Torrent")) self.toolbutton = gtk.ToolButton(self.toolbutton_image, _("New Torrent"))
self.toolbutton_tip = gtk.Tooltips()
self.toolbutton.set_tooltip(self.toolbutton_tip, _("Create a new torrent"))
self.toolbutton.connect("clicked", self.new_torrent_clicked) self.toolbutton.connect("clicked", self.new_torrent_clicked)
self.interface.wtree.get_widget("tb_left").insert(self.toolbutton, 0) self.interface.wtree.get_widget("tb_left").insert(self.toolbutton, 0)
self.toolbutton.show_all() self.toolbutton.show_all()