From 540e2e460c8155a22b10c1712eec71c9bf25aea9 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Mon, 3 Dec 2012 23:48:48 +0100 Subject: invest-applet: port to gobject introspection there is an issue to fix with self.applet.window.get_origin in applet.py --- invest-applet/invest/mate-invest-chart | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'invest-applet/invest/mate-invest-chart') 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() -- cgit v1.2.1