summaryrefslogtreecommitdiff
path: root/examples/location-widget-provider.py
diff options
context:
space:
mode:
authorYaakov Selkowitz <[email protected]>2012-12-20 00:41:24 -0600
committerStefano Karapetsas <[email protected]>2013-01-22 14:10:00 +0100
commit825c1dd01981c159368a1a7a99931146fbbe60f1 (patch)
tree13a781b2b2023d06a1d8fb52d600e71ff40f911a /examples/location-widget-provider.py
parent29149f504a4e5e28a19b92d9ebb831bb53100a01 (diff)
downloadpython-caja-825c1dd01981c159368a1a7a99931146fbbe60f1.tar.bz2
python-caja-825c1dd01981c159368a1a7a99931146fbbe60f1.tar.xz
Port examples to g-i and gsettings
Diffstat (limited to 'examples/location-widget-provider.py')
-rw-r--r--examples/location-widget-provider.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/location-widget-provider.py b/examples/location-widget-provider.py
index 0e7504c..c12301c 100644
--- a/examples/location-widget-provider.py
+++ b/examples/location-widget-provider.py
@@ -1,12 +1,11 @@
-import caja
-import gtk
+from gi.repository import Caja, Gtk, GObject
-class LocationProviderExample(caja.LocationWidgetProvider):
+class LocationProviderExample(GObject.GObject, Caja.LocationWidgetProvider):
def __init__(self):
pass
def get_widget(self, uri, window):
- entry = gtk.Entry()
+ entry = Gtk.Entry()
entry.set_text(uri)
entry.show()
return entry