diff options
Diffstat (limited to 'examples/location-widget-provider.py')
-rw-r--r-- | examples/location-widget-provider.py | 7 |
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 |