Spanish translation of AppInfo (Nicol��s de la Torre).
[rox-edit.git] / AppRun
blob98920b00b275278785cf055a5d95482d71b4157b
1 #!/usr/bin/env python
3 import findrox; findrox.version(1, 9, 8)
5 import sys, os
6 import rox
8 __builtins__._ = rox.i18n.translation(os.path.join(rox.app_dir, 'Messages'))
10 rox.g.rc_parse_string('style "edit-text-area" { GtkWidget::cursor-color = "#e00"\n'
11 'GtkWidget::cursor-aspect-ratio = 0.1}\n'
12 'style "edit-scrolled" { GtkScrolledWindow::scrollbar-spacing = 0}\n'
13 'class "GtkScrolledWindow" style : gtk "edit-scrolled"\n'
14 'class "GtkTextView" style : gtk "edit-text-area"\n')
16 rox.setup_app_options('Edit')
18 # Register options...
19 import EditWindow
21 # All options must be registered by the time we get here
22 rox.app_options.notify()
24 if len(sys.argv) > 1:
25 for file in sys.argv[1:]:
26 try:
27 EditWindow.EditWindow(file)
28 except EditWindow.Abort:
29 pass
30 else:
31 EditWindow.EditWindow()
33 rox.mainloop()