Caja.LocationWidgetProvider — Caja.LocationWidgetProvider Reference
If subclassed, Caja will request a widget to be displayed at the top of the directory listing.
Example 4. Caja.LocationWidgetProvider Example
from gi.repository import Caja, GObject, Gtk
class ColumnExtension(GObject.GObject, Caja.LocationWidgetProvider):
def __init__(self):
pass
def get_widget(self, uri, window):
entry = Gtk.Entry()
entry.set_text(uri)
entry.show()
return entry
def get_widget(uri, window)
| the current folder uri |
| the current gtk.Window instance |
Returns : | a gtk.Widget object |
This function is called by Caja when it wants a location widget from the extension. It is called in the main thread before a directory listing is shown, so it should return quickly.