tweak path to icon

This commit is contained in:
Marcos Pinto 2007-12-14 01:02:42 +00:00
parent 71cf5198d4
commit 3fd1434b04
1 changed files with 2 additions and 1 deletions

View File

@ -1145,9 +1145,10 @@ class plugin_FlexRSS:
def configure_ui_show_toolbar_button(self): def configure_ui_show_toolbar_button(self):
if self.toolbar_button == None: if self.toolbar_button == None:
import gtk import gtk
import os
icon = gtk.Image() icon = gtk.Image()
icon.set_from_file(self.path + "/FlexRSS.png") icon.set_from_file(os.path.join(self.path, "FlexRSS.png"))
self.toolbar_button = gtk.ToolButton(icon_widget=icon, label="FlexRSS") self.toolbar_button = gtk.ToolButton(icon_widget=icon, label="FlexRSS")
self.toolbar_button.connect("clicked", self.configure_cb_toolbar_clicked) self.toolbar_button.connect("clicked", self.configure_cb_toolbar_clicked)
self.interface.toolbar.add(self.toolbar_button) self.interface.toolbar.add(self.toolbar_button)