Icon for window.
[rox-edit.git] / AppRun
blob45b48030325ebde65dc1652c76c8e6adb5f9cf59
1 #!/usr/bin/env python
3 import findrox; findrox.version(1, 9, 8)
5 import sys
6 import rox
8 rox.g.rc_parse_string('style "edit-text-area" { GtkWidget::cursor-color = "#e00"\n'
9 'GtkWidget::cursor-aspect-ratio = 0.1}\n'
10 'style "edit-scrolled" { GtkScrolledWindow::scrollbar-spacing = 0}\n'
11 'class "GtkScrolledWindow" style : gtk "edit-scrolled"\n'
12 'class "GtkTextView" style : gtk "edit-text-area"\n')
14 rox.setup_app_options('Edit')
16 # Register options...
17 import EditWindow
19 # All options must be registered by the time we get here
20 rox.app_options.notify()
22 if len(sys.argv) > 1:
23 for file in sys.argv[1:]:
24 try:
25 EditWindow.EditWindow(file)
26 except EditWindow.Abort:
27 pass
28 else:
29 EditWindow.EditWindow()
31 rox.mainloop()