summaryrefslogtreecommitdiff
path: root/invest-applet/invest/mate-invest-chart
diff options
context:
space:
mode:
Diffstat (limited to 'invest-applet/invest/mate-invest-chart')
-rwxr-xr-xinvest-applet/invest/mate-invest-chart10
1 files changed, 7 insertions, 3 deletions
diff --git a/invest-applet/invest/mate-invest-chart b/invest-applet/invest/mate-invest-chart
index ea025de8..5c8ed9d3 100755
--- a/invest-applet/invest/mate-invest-chart
+++ b/invest-applet/invest/mate-invest-chart
@@ -1,6 +1,10 @@
#!/usr/bin/env python
-import sys, mate_invest.chart, gtk
+import sys, mate_invest.chart
+
+import gi
+gi.require_version("Gtk", "2.0")
+from gi.repository import Gtk
# Prepare i18n
import gettext, locale
@@ -11,5 +15,5 @@ locale.textdomain(mate_invest.defs.GETTEXT_PACKAGE)
if __name__ == "__main__":
win = mate_invest.chart.show_chart(sys.argv[1:])
- win.connect("destroy", lambda x: gtk.main_quit())
- gtk.main()
+ win.connect("destroy", lambda x: Gtk.main_quit())
+ Gtk.main()