summaryrefslogtreecommitdiff
path: root/invest-applet/invest/applet.py
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-01-27 14:37:19 +0100
committerStefano Karapetsas <[email protected]>2012-01-27 14:37:19 +0100
commitbf8f363ef056cee972185e18b3793b5d5551a1a3 (patch)
tree9cbfb5bd6b4ea3b81220c1a66598c5f2d7851523 /invest-applet/invest/applet.py
parentc7b2e180e6cfb4aec22f8ab3e0aebc6773032216 (diff)
downloadmate-applets-bf8f363ef056cee972185e18b3793b5d5551a1a3.tar.bz2
mate-applets-bf8f363ef056cee972185e18b3793b5d5551a1a3.tar.xz
'mate-invest' => 'mate_invest'
Diffstat (limited to 'invest-applet/invest/applet.py')
-rw-r--r--invest-applet/invest/applet.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/invest-applet/invest/applet.py b/invest-applet/invest/applet.py
index 3bbffef2..8b134e67 100644
--- a/invest-applet/invest/applet.py
+++ b/invest-applet/invest/applet.py
@@ -5,11 +5,11 @@ gobject.threads_init()
from gettext import gettext as _
import mateconf
-import mate-invest, mate-invest.about, mate-invest.chart, mate-invest.preferences, mate-invest.defs
-from mate-invest.quotes import QuoteUpdater
-from mate-invest.widgets import *
+import mate_invest, mate_invest.about, mate_invest.chart, mate_invest.preferences, mate_invest.defs
+from mate_invest.quotes import QuoteUpdater
+from mate_invest.widgets import *
-gtk.window_set_default_icon_from_file(join(mate-invest.ART_DATA_DIR, "invest_neutral.svg"))
+gtk.window_set_default_icon_from_file(join(mate_invest.ART_DATA_DIR, "invest_neutral.svg"))
class InvestApplet:
def __init__(self, applet):
@@ -45,9 +45,9 @@ class InvestApplet:
def button_clicked(self, widget,event):
if event.type == gtk.gdk.BUTTON_PRESS and event.button == 1:
# Three cases...
- if len (mate-invest.STOCKS) == 0:
+ if len (mate_invest.STOCKS) == 0:
# a) We aren't configured yet
- mate-invest.preferences.show_preferences(self, _("<b>You have not entered any stock information yet</b>"))
+ mate_invest.preferences.show_preferences(self, _("<b>You have not entered any stock information yet</b>"))
self.reload_ilw()
elif not self.quotes_updater.quotes_valid:
# b) We can't get the data (e.g. offline)
@@ -61,13 +61,13 @@ class InvestApplet:
self.ilw.toggle_show()
def on_about(self, component, verb):
- mate-invest.about.show_about()
+ mate_invest.about.show_about()
def on_help(self, component, verb):
- mate-invest.help.show_help()
+ mate_invest.help.show_help()
def on_preferences(self, component, verb):
- mate-invest.preferences.show_preferences(self)
+ mate_invest.preferences.show_preferences(self)
self.reload_ilw()
def on_refresh(self, component, verb):
@@ -75,11 +75,11 @@ class InvestApplet:
def set_applet_icon(self, change):
if change == 1:
- pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(join(mate-invest.ART_DATA_DIR, "invest-22_up.png"), -1,-1)
+ pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(join(mate_invest.ART_DATA_DIR, "invest-22_up.png"), -1,-1)
elif change == 0:
- pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(join(mate-invest.ART_DATA_DIR, "invest-22_neutral.png"), -1,-1)
+ pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(join(mate_invest.ART_DATA_DIR, "invest-22_neutral.png"), -1,-1)
else:
- pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(join(mate-invest.ART_DATA_DIR, "invest-22_down.png"), -1,-1)
+ pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(join(mate_invest.ART_DATA_DIR, "invest-22_down.png"), -1,-1)
self.applet_icon.set_from_pixbuf(pixbuf)
def set_applet_tooltip(self, text):