summaryrefslogtreecommitdiff
path: root/examples/location-widget-provider.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/location-widget-provider.py')
-rw-r--r--examples/location-widget-provider.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/location-widget-provider.py b/examples/location-widget-provider.py
new file mode 100644
index 0000000..0e7504c
--- /dev/null
+++ b/examples/location-widget-provider.py
@@ -0,0 +1,12 @@
+import caja
+import gtk
+
+class LocationProviderExample(caja.LocationWidgetProvider):
+ def __init__(self):
+ pass
+
+ def get_widget(self, uri, window):
+ entry = gtk.Entry()
+ entry.set_text(uri)
+ entry.show()
+ return entry