libepc r147 - in trunk: . libepc libepc-ui tests



Author: hasselmm
Date: 2007-11-29 11:52:30 +0000 (Thu, 29 Nov 2007)
New Revision: 147
ViewCVS link: http://svn.gnome.org/viewcvs/libepc?rev=147&view=rev

Modified:
   trunk/ChangeLog
   trunk/libepc-ui/progress-window.c
   trunk/libepc/shell.c
   trunk/libepc/shell.h
   trunk/libepc/tls.c
   trunk/tests/test-progress-hooks.c
Log:
Sanitize the progress-hook model by using just user_data.

* libepc/shell.c: Move epc_shell_default_progress_hooks into
epc_shell_set_progress_hooks functions. Update signatures of
epc_shell_progress_begin, epc_shell_progress_update and
epc_shell_progress_end. Change default progress hooks to deal
with the new data model. Add epc_shell_progress_end_default.
Call epc_shell_progress_update with a progress of -1 from
epc_shell_progress_begin to make the epc_shell_progress_begin
hook optional.
* libepc/shell.h: Remove return value of epc_shell_progress_begin.
Remove context argument for epc_shell_progress_update and
epc_shell_progress_end. Update EpcShellProgressHooks signatures
to match those changes and remove message argument from
EpcShellProgressHooks::begin hook.
* libepc-ui/progress-window.c: Update progress hooks for new
model. Add EpcProgressWindowContext, epc_progress_window_context_new
and epc_progress_window_context_free. Allow NULL as message argument
for epc_progress_window_new.
* libepc/tls.c, tests/test-progress-hooks.c: Use new progress-hooks.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]