summaryrefslogtreecommitdiff
path: root/examples/location-widget-provider.py
blob: 0e7504c41ef95d6d4f34ed4beba9ad62e12793c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
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