summaryrefslogtreecommitdiff
path: root/invest-applet/invest/help.py
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/help.py
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/help.py')
-rw-r--r--invest-applet/invest/help.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/invest-applet/invest/help.py b/invest-applet/invest/help.py
index 7dfaabf0..a283a230 100644
--- a/invest-applet/invest/help.py
+++ b/invest-applet/invest/help.py
@@ -1,8 +1,12 @@
# -*- coding: utf-8 -*-
-import gtk, gtk.gdk
+
+import gi
+gi.require_version("Gtk", "2.0")
+from gi.repository import Gtk
+from gi.repository import Gdk
def show_help():
- gtk.show_uri(None, "ghelp:invest-applet", gtk.gdk.CURRENT_TIME)
+ Gtk.show_uri(None, "ghelp:invest-applet", Gdk.CURRENT_TIME)
def show_help_section(id):
- gtk.show_uri(None, "ghelp:invest-applet?%s" % id, gtk.gdk.CURRENT_TIME)
+ Gtk.show_uri(None, "ghelp:invest-applet?%s" % id, Gdk.CURRENT_TIME)