2 Shared code for ROX applications
4 http://rox.sourceforge.net
8 Added launch module, which allows running programs easily using the injector,
9 and made filer.py use 0launch if available (Thomas Leonard; requested by
14 If pygtk is found, but not gtk, give a better error (Thomas Leonard; reported
19 If 'xterm' isn't available, give a sensible error message when using the
20 su module (Thomas Leonard; reported by Vincent Lefevre).
24 Added ROX-Lib.xml file, which makes it easy to register a CVS copy of ROX-Lib
25 with the 0launch, using '0launch --add-feed' (Thomas Leonard).
27 25-Jul-2005 (Release 2.0.2)
29 Bugfix: Installing MIME handlers under the XDG base dir system didn't
30 work (Stephen Watson).
32 17-Jun-2005 (Release 2.0.1)
34 Send deprecation warnings to stdout, not stderr, so only developers will
35 see them (Thomas Leonard).
39 Fixed deprecation warning in processes.py (Thomas Leonard).
43 Avoid apparent PyGTK bug related to icon themes, may result in a
44 memory leak but probably won't (Stephen Watson).
48 Clean up of icon theme handling (Stephen Watson).
52 Compatability with PyGTK 2.4 retaining backwards compatability with
53 2.2 at least (Ken Hayber, Stephen Watson).
57 Updated Chinese translation (Babyfai Cheung).
61 Added Portuguese translation (José Carlos do Nascimento).
65 Don't try to get pygtk through Zero Install. The injector can be used to
66 choose the implementation of pygtk to use, including a version in Zero
67 Install if desired (Thomas Leonard).
71 MIME handler install now uses basedir (Stephen Watson).
72 Tests use gtk.main() instead of the deprecated gtk.mainloop() (Stephen Watson).
76 Some versions of GTK silently remove '-' from sys.argv (GTK bug #303166).
77 Added a work-around (Thomas Leonard).
81 Put "root" back in su command, but detect what the exact string should be, as
82 Solaris needs something here (reported by Stephen Watson).
86 The default SaveArea.confirm_new_path() now shows an error if the target
87 exists as a directory, instead of asking if you want to overwrite it (Thomas
88 Leonard; reported by Jonatan Liljedahl).
89 Remove "root" from the su command, as some systems call user 0 something else
90 (Thomas Leonard; reported by Jonatan Liljedahl).
94 When getting an icon for saving, specify the size if PyGTK is recent enough.
95 This prevents SVG icons from appearing in huge sizes (Thomas Leonard;
96 requested by John Pettigrew).
97 Bugfix: Theme index parser failed to cope with comments at the start of the
98 file (Thomas Leonard).
102 Compatability fixes for the su module (Stephen Watson).
106 Fixed Zero Install version test in findrox.py (Thomas Leonard).
108 16-Apr-2005 (Release 2.0.0)
110 Run unit tests in alphabetical order as it fixes a strange interaction between them (Stephen Watson).
114 Added unit tests for processes module, based on old tests in Archive (Thomas
119 Changed MakeDist to allow use of other SourceForge accounts (Stephen Watson).
123 Added 'testall' script to run all the unit tests together (Thomas Leonard).
125 23-Mar-2005 (Release 1.9.18)
127 German translation (Guido Schimmels).
131 Added TODO file to track bugs and changes needed for 2.0.0 release.
135 Bugfix: Set default in Options box to OK to avoid triggering a GTK bug
136 (Thomas Leonard, reported by Guido Schimmels).
138 16-Jan-2005 (Release 1.9.17)
140 Added OutputBlocker, which works in a similar way to InputBlocker (Thomas
145 Be consistent about URI escaping. set_uri() is now always passed an unescaped
146 UTF-8 string (Thomas Leonard).
150 Added fixedlist and varlist widgets to OptionsBox (Stephen Watson).
154 Added MIME type matching by file contents (Stephen Watson).
158 If a 'rox' module is in PYTHONPATH, use that without any searching (Thomas
163 Added Chinese translation (Babyfai Cheung).
167 Suppress warning when we use GtkItemFactory under pygtk 2.4 (Stephen Watson).
171 Added tasks.InputBlocker, which triggers when an input source becomes
172 readable (Thomas Leonard).
176 Bugfix: Use only text nodes when getting the tool tip from the Options.xml
177 file (Stephen Watson).
181 Bugfix: Theme subdirectories are separated by ',' not ';' (reported by
186 Bugfix: When a menu has more than one toggle item, only one is updated
187 correctly (Ken Hayber).
191 Replace g.mainloop() and g.mainquit() with g.main() and g.main_quit() as
192 recommended since pygtk 2.0.0 to avoid warnings with pygtk 2.4.0 (Stephen
197 Added options.ListOption to support multi-valued option widgets, such as
198 lists (Stephen Watson).
200 02-Oct-2004 (Release 1.9.16)
202 Cope better with user cancelling su operation. New interface to replace
203 create_su_proxy (Thomas Leonard).
207 The choices module is now deprecated. You can use choices.migrate() to move
208 settings over to the basedir system (Thomas Leonard). Also added
209 basedir.load_first_config(), which works like the old choices.load().
213 Several incompatible changes to the experimental proxy API to make it simpler
216 - Create_su_proxy now returns the MasterObject directly, not the MasterProxy.
217 - You can call finish on the MasterObject (so the MasterProxy isn't needed).
218 - Slave methods no longer take a 'request' argument. Instead, the return
219 value of the function is returned.
220 - Methods can only return one value. dequeue and dequeue_last have been
221 replaced with a 'result' property.
222 - Methods on MasterObject now return a RequestBlocker, not a Queue. This
223 means you just yield the object itself, not object.blocker.
225 Tasks API is no longer experimental, but proxy API is.
229 Added a Help button to the exception dialog, which opens the new Help/Errors
230 file (Thomas Leonard).
234 Bugfix: Failed to call the parent constructor to AbortSave correctly.
238 Simplified su code and interface.
239 New suchild methods: open, close, read, write, chmod and rename, which work
240 just like their normal Python counterparts (Thomas Leonard).
244 Removed code to turn off the separator in the debug dialog. GTK 2.4 doesn't
245 need it, and generates a warning if you use it (Thomas Leonard).
247 27-Aug-2004 (Release 1.9.15)
249 Added spawnvpe and waitpid methods to suchild.
253 If the unit field for a <numentry> option is blank, don't try to translate it
254 (reported by Guido Schimmels).
258 Added 'su' module for performing operations as root.
262 Allow "" as a valid value in a OptionsBox menu (reported by Guido Schimmels).
266 Added 'proxy' module. This allows one Python process to invoke methods on
267 another asynchronously.
268 Added rox.UserAbort exception, to be raised when users cancel something
273 Fix syntax error I caused when I added a docstring (Stephen Watson).
277 Get update-mime-database command through Zero Install, if possible.
281 mime_handler can now uninstall (Stephen Watson).
285 Translate menu items in options (Guido Schimmels).
289 Added <slider> widget to options.
293 Added 'size-group' attribute to Options.xml elements. This allows grouping
294 elements so that their labels all appear the same width.
298 Bugfix: Colour buttons in the Options boxes didn't work with some themes
301 17-Apr-2004 (Release 1.9.14)
303 Added ToggleItem (based on a patch from Ken Hayber).
307 Better <label> widgets (wrapping and icon). Taken from LookAndFeel.
311 Stop themes from overriding the display of the colour-picker buttons in
312 the options box (Rene Ejury).
316 Warn about old versions of findrox.py.
317 Bugfix: Bug in new menu API prevented submenus from working.
319 16-Mar-2004 (Release 1.9.13)
321 Bugfix: Icon themes didn't work with python versions older than 2.2.2
322 (reported by Thomas Zajic).
326 Bugfix: Use filer module to show ROX-Lib help, rather than using os.system,
327 so that it works with Zero Install (reported by Keith Hopper).
331 Added widget_registry to OptionsBox, to provide an easy way to register
332 new option types. Removed build_button in favour of this method.
334 Bugfix: If an error occurred loading the ROX theme at startup it could not
335 be reported, because icon_theme wants debug, debug wants saving, and
336 saving wants icon_theme (reported by Thomas Zajic).
340 Cope with pygtk2.2 API change (Stephen Watson, reported by Guido Schimmels).
344 Added secretentry and button options to the OptionsBox (Stephen Watson).
348 Cope with option values split into multiple DOM text nodes (Rene Ejury).
352 Allow a list of values to be stored in each menu Action. These are used as
353 the arguments to the callback function.
354 If a file's details were recorded (in document.save_last_stat) when it was
355 loaded, make sure they haven't changed when saving. Saving also updates this
356 variable (requested by Arnaud Calvo).
360 Updated examples in documentation for new findrox (Yuri Bongiorno).
364 New API for menus. Instead of passing tuples for menu items, python classes
365 can be used. The old tuple interface is still supported.
369 Don't stop DnD working in the savebox just because no icon can be found
370 (reported by Martin Lucina).
374 Added French translation (Vincent Lefèvre).
378 Also translate <label> elements in the Options box (reported by Arnaud Calvo).
382 Also translate section names in the Options box (reported by Arnaud Calvo).
384 22-Jan-2004 (Release 1.9.12)
386 Added 'tasks' module to provide a light-weight alternative to threads.
387 Bugfix: On non-zero-install systems, the sense of the version check in findrox
392 Added method to MIMEtype to fetch its icon. Install list window for
393 the MIME handler installation uses it (Stephen Watson).
397 Translate text in Options box.
401 Allow ROXLIB_DISABLE_ZEROINSTALL to override looking for ROX-Lib in Zero
402 Install (useful for ROX-Lib developers). Prefer a locally installed version
403 of ROX-Filer to the Zero Install version; this also allows users to select
404 which Zero Install version they want (eg, stable or developer).
405 Moved MIME handler installation into a separate module (mime_handler) and
406 made a few changes to the XML syntax.
410 Added <menu> OptionMenu widget for Options box (Chris Shaffer).
414 Fixed bug in findrox when not using Zero Install (Lionel Bringuier).
418 Escape and unescape URIs, as required by ROX-Filer 2.1.0 (reported by
420 Note that the xds_load_uris() method is now called with escaped URIs.
421 Try to run the filer through Zero Install, if possible.
425 If we can't get pygtk through Zero Install, try the local copy.
429 Added support in mime.py for an application to set MIME-type run
430 actions and thumbnail programs (Stephen Watson).
434 Simplified implementation of saving.SaveFilter by using the new
435 processes.PipeThroughCommand class. The child_run() method of SaveFilter
436 is no longer supported.
437 In processes.PipeThroughCommand, a None input stream gets /dev/null instead
438 of inheriting its parent's stream. The class has a new run_child_with_streams
439 to make overriding the behaviour easier.
440 findrox.py script now warns if ROX-Lib2 version is too old (unless requesting
441 a version too old to have a version number).
445 Changed 'Dismiss' to 'Close' (Chris Shaffer).
446 Bugfix: Error reporting in mime.py failed to import the _ function (reported
447 by Christopher Haines).
448 New AppInfo.py for parsing AppInfo.xml files (Christopher Arndt), InfoWin
449 converted to use it (Stephen Watson).
451 15-Oct-2003 (Release 1.9.11)
453 Bugfix: Python 2.3's new bool type broke options saving (reported by Lars
458 Added PipeThroughCommand class (copied from Archive, with some minor
463 Allow event to be None for Menu.popup. This allows the menu to be activated
464 from the keyboard, using the 'popup-menu' signal.
468 Added French translation in AppInfo.xml (Vincent Lefèvre).
470 03-Oct-2003 (Release 1.9.10)
472 Added support for icon themes (doesn't do inheritance yet).
476 Added some version information to the dialog you get when you run ROX-Lib
481 New bug() function to quickly bring up a debugging prompt.
485 The glob patterns in mime.py are now sorted longest first. Fix for setting
486 icon in the old way when there was no icon (Stephen Watson).
490 Try to cope better with bad hostname setup (reported by Nathan Howell).
494 Added InfoWin.py to provide standardized information window (Stephen Watson).
498 Fall back to old way of setting default icon for older pygtk's (Stephen
503 Added Italian translation (Yuri Bongiorno).
507 Better way to set the default icon.
509 16-Aug-2003 (Release 1.9.9)
511 Give windows a default icon from .DirIcon (Chris Shaffer).
515 Try to get pygtk through ZeroInstall.
519 Updated findrox to use ZeroInstall, if possible.
523 Work out correct application name even if invoked via a symlink. This stops
524 applications from calling themselves 'text_plain', etc (reported by Joe Hill).
526 19-Jul-2003 (Release 1.9.8)
528 Make default menu positioning function keep the pointer inside the menu.
529 Allow stock icons in menus.
533 Added position_fn argument to rox.Menu.popup.
537 Cope with % escaped URIs.
541 Added italian translation in AppInfo.xml (Yuri Bongiorno)
545 When loading data from another application, pass the suggested leafname to
546 xds_load_from_stream().
550 Code tidying, thanks to pychecker.
554 Added fileutils module, which provides an interactive makedirs() function
556 Changed savebox module to use it.
558 16-May-2003 (Release 1.9.7)
560 New icon (Geoff Youngs).
561 Added 'basedir' module for freedesktop.org Base Directory specification.
565 Added functions to read MIME database (Stephen Watson).
567 27-Jan-2003 (Release 1.9.6)
569 Make the default window class the name of the application directory, not
570 'AppRun' (suggested by Albert Wagner).
571 Bugfix: With pygtk-1.99.14, only the first error message from a process
572 would be detected; this meant that ROX-Lib wouldn't detect when the
573 process quit (reported by joehill).
574 Bugfix: <hbox> and <vbox> layouts didn't work in the options box (Allen
579 If python is too old, raise SystemExit instead of quitting.
580 Ensure that True and False are defined.
584 Work around bug in some versions of pygtk that stopped the options window
587 12-Dec-2002 (Release 1.9.5)
589 Upgrade Options box to new style.
593 Bugfix: If an option had an empty value, an exception was thrown on loading
594 (reported by Stephen Watson).
598 Cope with missing input_add_full.
602 Pygtk 1.99.12 seems to more-or-less work now (according to Alastair Porter), so
603 remove the warning for that so we can support RedHat 8.0.
605 20-Oct-2002 (Release 1.9.4)
607 More warnings about old pygtk versions.
608 Added Dialog class (does ref-counting, like Window).
612 Trying to use ROX-Lib2 with earlier versions of python now gives a sensible
617 Make clicking on ROX-Lib itself work again (Christopher Arndt).
621 Updated findrox.py to use pygtk 1.99.13 -- update your programs!
623 25-Aug-2002 (Release 1.9.3)
625 Switch to use new pygtk versioning system (requires pygtk 1.99.13).
629 Added 'processes' module, based on code in Archive, which makes controlling
634 Bugfix: Changing the keys lost any builtin shortcuts (Gtk behaviour has
639 Trap exceptions when activating menu items and report nicely.
643 Bugfix: Remember to call drop_finish() after a drag-and-drop operation.
645 05-Aug-2002 (Release 1.9.2)
647 Renamed XDSLoader module to 'loading' (like 'saving').
648 Added 'mime' module for installing extra MIME information.
649 Bugfix: XDSLoader didn't handle the drag-drop signal, and so only worked for
650 widgets with their own implementation!
654 Show local variables in report_exception, and allow expressions to be
655 evaluated in the context of any frame.
656 Added StringSaver class.
660 Added applet module for creating ROX panel applets.
664 Bugfix: saving code didn't cope with missing images (reported by Musus Umbra).
668 If 'gtk2' isn't available, see if 'gtk' is actually the 2.0 version.
669 Added save_set_permissions to Saveable interface, allowing the default
670 save_to_file to preserve file permissions.
671 Changes to XDSLoader: xds_load_from_stream(name, type, stream)
672 replaces the old xds_load_data(data).
673 Loading files from remote filers works now.
674 Added much improved exception reporting system.
676 19-Jul-2002 (Release 1.9.1)
678 Added support for translations.
682 License change to the LGPL (allows commercial programs to use this library).
683 Added AbortSave exception.
687 Saveable.save_to_file() should raise an exception when saving fails, rather
688 than returning 0. The return value is now ignored (note that raising an
689 exception will still work with 1.9.0).
690 toplevel_unref() ignores any arguments, so it is easier to use as a signal
693 12-Jul-2002 (Release 1.9.0)
695 First release for Gtk+-2.0.