# Path: sunflower/plugin_base/provider.py
# class FileType:
# 	INVALID = -1
# 	REGULAR = 0
# 	DIRECTORY = 1
# 	LINK = 2
# 	SOCKET = 3
# 	DEVICE_CHARACTER = 4
# 	DEVICE_BLOCK = 5
# 
# class Mode:
# 	READ = 0
# 	WRITE = 1
# 	APPEND = 2
# 	READ_APPEND = 3
# 
# Path: sunflower/plugin_base/find_extension.py
# class FindExtension:
# 	"""Base class for extending find files tool.
# 
# 	Use this class to provide find files tool with additional
# 	options. Objects are created every time tool is created!
# 
# 	"""
# 
# 	def __init__(self, parent, always_on=False):
# 		self._parent = parent
# 		self._active = always_on
# 
# 		# create and configure title widget
# 		self.title = TitleRow(self, always_on)
# 		self.title.check.connect('state-set', self.__handle_state_set)
# 
# 		# create and configure container
# 		self.container = Gtk.VBox.new(False, 5)
# 		self.container.set_border_width(10)
# 		self.container.extension = self
# 
# 	def __handle_state_set(self, widget, state):
# 		"""Update extension active."""
# 		self._active = state
# 
# 	def __get_active(self):
# 		"""Get state of the extension."""
# 		return self._active
# 
# 	def __set_active(self, value):
# 		"""Set state of the extension."""
# 		self._active = value
# 		self.title.set_active(value)
# 
# 	def get_title(self):
# 		"""Return name of the extension."""
# 		return None
# 
# 	def get_title_widget(self):
# 		"""Return title widget for extension."""
# 		return self.title
# 
# 	def get_container(self):
# 		"""Return widget container."""
# 		return self.container
# 
# 	def is_path_ok(self, provider, path):
# 		"""Check is specified path fits the cirteria."""
# 		return True
# 
# 	active = property(__get_active, __set_active)


from gi.repository import Gtk
from sunflower.plugin_base.provider import FileType, Mode
from sunflower.plugin_base.find_extension import FindExtension
		vbox = Gtk.VBox(False, 0)

		viewport = Gtk.ScrolledWindow()
		viewport.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC)
		viewport.set_shadow_type(Gtk.ShadowType.IN)

		# create entry widget
		label_content = Gtk.Label(label=_('Search for:'))
		label_content.set_alignment(0, 0.5)

		self._buffer = Gtk.TextBuffer()
		self._text_view = Gtk.TextView(buffer=self._buffer)

		# pack interface
		viewport.add(self._text_view)

		vbox.pack_start(label_content, False, False, 0)
		vbox.pack_start(viewport, True, True, 0)

		self.container.pack_start(vbox, True, True, 0)

	def get_title(self):
		"""Return i18n title for extension"""
		return _('Content')

	def is_path_ok(self, provider, path):
		"""Check if specified path fits the criteria"""
		result = False
		file_type = provider.get_stat(path).type


# Path: sunflower/plugin_base/provider.py
# class FileType:
# 	INVALID = -1
# 	REGULAR = 0
# 	DIRECTORY = 1
# 	LINK = 2
# 	SOCKET = 3
# 	DEVICE_CHARACTER = 4
# 	DEVICE_BLOCK = 5
# 
# class Mode:
# 	READ = 0
# 	WRITE = 1
# 	APPEND = 2
# 	READ_APPEND = 3
# 
# Path: sunflower/plugin_base/find_extension.py
# class FindExtension:
# 	"""Base class for extending find files tool.
# 
# 	Use this class to provide find files tool with additional
# 	options. Objects are created every time tool is created!
# 
# 	"""
# 
# 	def __init__(self, parent, always_on=False):
# 		self._parent = parent
# 		self._active = always_on
# 
# 		# create and configure title widget
# 		self.title = TitleRow(self, always_on)
# 		self.title.check.connect('state-set', self.__handle_state_set)
# 
# 		# create and configure container
# 		self.container = Gtk.VBox.new(False, 5)
# 		self.container.set_border_width(10)
# 		self.container.extension = self
# 
# 	def __handle_state_set(self, widget, state):
# 		"""Update extension active."""
# 		self._active = state
# 
# 	def __get_active(self):
# 		"""Get state of the extension."""
# 		return self._active
# 
# 	def __set_active(self, value):
# 		"""Set state of the extension."""
# 		self._active = value
# 		self.title.set_active(value)
# 
# 	def get_title(self):
# 		"""Return name of the extension."""
# 		return None
# 
# 	def get_title_widget(self):
# 		"""Return title widget for extension."""
# 		return self.title
# 
# 	def get_container(self):
# 		"""Return widget container."""
# 		return self.container
# 
# 	def is_path_ok(self, provider, path):
# 		"""Check is specified path fits the cirteria."""
# 		return True
# 
# 	active = property(__get_active, __set_active)


# Path: sunflower/plugins/find_file_extensions/contents.py
from gi.repository import Gtk
from sunflower.plugin_base.provider import FileType, Mode
from sunflower.plugin_base.find_extension import FindExtension

		vbox = Gtk.VBox(False, 0)

		viewport = Gtk.ScrolledWindow()
		viewport.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC)
		viewport.set_shadow_type(Gtk.ShadowType.IN)

		# create entry widget
		label_content = Gtk.Label(label=_('Search for:'))
		label_content.set_alignment(0, 0.5)

		self._buffer = Gtk.TextBuffer()
		self._text_view = Gtk.TextView(buffer=self._buffer)

		# pack interface
		viewport.add(self._text_view)

		vbox.pack_start(label_content, False, False, 0)
		vbox.pack_start(viewport, True, True, 0)

		self.container.pack_start(vbox, True, True, 0)

	def get_title(self):
		"""Return i18n title for extension"""
		return _('Content')

	def is_path_ok(self, provider, path):
		"""Check if specified path fits the criteria"""
		result = False
		file_type = provider.get_stat(path).type


		if file_type is FileType.REGULAR: