#!/usr/bin/env python

import findrox

import sys
import rox

#rox.g.rc_parse_string('style "edit-text-area" { cursor-color = "red" }\n'
#		      'class "GtkTextView" style : gtk "edit-text-area"\n')

rox.setup_app_options('Edit')

# Register options...
import EditWindow

# All options must be registered by the time we get here
rox.app_options.notify()

if len(sys.argv) > 1:
	for file in sys.argv[1:]:
		try:
			EditWindow.EditWindow(file)
		except EditWindow.Abort:
			pass
else:
	EditWindow.EditWindow()

rox.mainloop()
