[nautilus-python/0.5: 9/11] Added the location widget provider example plugin from 0.6
- From: Adam Plumb <adamplumb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-python/0.5: 9/11] Added the location widget provider example plugin from 0.6
- Date: Fri, 26 Feb 2010 21:39:35 +0000 (UTC)
commit 86ed5fe8e93839431c42165c47bd90bd3b7f8c7f
Author: Adam Plumb <adamplumb gmail com>
Date: Fri Feb 26 16:35:50 2010 -0500
Added the location widget provider example plugin from 0.6
examples/location-widget-provider.py | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/examples/location-widget-provider.py b/examples/location-widget-provider.py
new file mode 100644
index 0000000..e89358a
--- /dev/null
+++ b/examples/location-widget-provider.py
@@ -0,0 +1,13 @@
+import nautilus
+import gtk
+
+class LocationProviderExample(nautilus.LocationWidgetProvider):
+ def __init__(self):
+ pass
+
+ def get_widget(self, uri, window):
+ entry = gtk.Entry()
+ entry.set_text(uri)
+ entry.show()
+ return entry
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]