diff options
author | Ramiro Estrugo <ramiro@src.gnome.org> | 2001-04-20 01:19:23 +0000 |
---|---|---|
committer | Ramiro Estrugo <ramiro@src.gnome.org> | 2001-04-20 01:19:23 +0000 |
commit | e1a79e2f6033e2c20a04fef911fb327cac50ea92 (patch) | |
tree | 3d6badfface54bb63ed8eb4cc3d27ac83f4c5b58 /components/image-viewer | |
parent | 7245763900b5b466e93fd4accd1d59ef19120048 (diff) | |
download | nautilus-e1a79e2f6033e2c20a04fef911fb327cac50ea92.tar.gz |
Make all standard components call the eel function to stop in the debugger
* components/hardware/main.c: (main):
* components/help/hyperbola-main.c: (main):
* components/history/nautilus-history-view.c: (main):
* components/image-viewer/nautilus-image-view.c: (main):
* components/music/main.c: (main):
* components/notes/Makefile.am:
* components/notes/nautilus-notes.c: (main):
* components/text/main.c: (main):
* components/throbber/main.c: (main):
Make all standard components call the eel function to stop in the
debugger after warnings and criticals. This also makes then spew
nicer messages that include the process id and program name.
Diffstat (limited to 'components/image-viewer')
-rw-r--r-- | components/image-viewer/nautilus-image-view.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/components/image-viewer/nautilus-image-view.c b/components/image-viewer/nautilus-image-view.c index d3352d603..6bbf8032a 100644 --- a/components/image-viewer/nautilus-image-view.c +++ b/components/image-viewer/nautilus-image-view.c @@ -31,6 +31,7 @@ #include <bonobo.h> +#include <eel/eel-debug.h> #include <gdk-pixbuf/gdk-pixbuf.h> #include <gdk-pixbuf/gdk-pixbuf-loader.h> #include <libart_lgpl/art_misc.h> @@ -844,6 +845,13 @@ main (int argc, char *argv []) textdomain (PACKAGE); #endif + /* Make criticals and warnings stop in the debugger if NAUTILUS_DEBUG is set. + * Unfortunately, this has to be done explicitly for each domain. + */ + if (g_getenv ("NAUTILUS_DEBUG") != NULL) { + eel_make_warnings_and_criticals_stop_in_debugger (G_LOG_DOMAIN, NULL); + } + init_server_factory (argc, argv); init_bonobo_image_generic_factory (); |