From bfdcfc7949e01f47ee4d39de425a993033c413b0 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Fri, 30 Mar 2001 16:39:46 +0000 Subject: add a "debug" method to tell a component to output debugging messages to a * Evolution-ShellComponent.idl: add a "debug" method to tell a component to output debugging messages to a given file. * main.c (main): Add a "--debug filename" argument, to direct debugging output for all components to a file. Redirect the shell's stdout/stderr to that file if this argument is used. * evolution-shell-component-client.c (evolution_shell_component_client_set_owner): If debug_log is set, call the component's debug method as well. * evolution-shell-component.c (impl_ShellComponent_debug): redirect stdout/stderr to the named file and emit a "debug" signal. svn path=/trunk/; revision=9046 --- shell/evolution-shell-component.h | 1 + 1 file changed, 1 insertion(+) (limited to 'shell/evolution-shell-component.h') diff --git a/shell/evolution-shell-component.h b/shell/evolution-shell-component.h index 3248ca9e36..2b98b623ce 100644 --- a/shell/evolution-shell-component.h +++ b/shell/evolution-shell-component.h @@ -129,6 +129,7 @@ struct _EvolutionShellComponentClass { EvolutionShellClient *shell_client, const char *evolution_homedir); void (* owner_unset) (EvolutionShellComponent *shell_component); + void (* debug) (EvolutionShellComponent *shell_component); }; -- cgit v1.2.3