summaryrefslogtreecommitdiff
path: root/invest-applet/invest/mate-invest-chart
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-12-03 23:48:48 +0100
committerStefano Karapetsas <[email protected]>2012-12-03 23:48:48 +0100
commit540e2e460c8155a22b10c1712eec71c9bf25aea9 (patch)
treefedf92ae6b47340fc4155319c5c978124a17df9e /invest-applet/invest/mate-invest-chart
parentba7f835eb79762dd65356a0722aa3e64ad03decb (diff)
downloadmate-applets-540e2e460c8155a22b10c1712eec71c9bf25aea9.tar.bz2
mate-applets-540e2e460c8155a22b10c1712eec71c9bf25aea9.tar.xz
invest-applet: port to gobject introspection
there is an issue to fix with self.applet.window.get_origin in applet.py
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()