Commit e1a79e2f authored by Ramiro Estrugo's avatar Ramiro Estrugo
Browse files

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.
parent 72457639
2001-04-19 Ramiro Estrugo <ramiro@eazel.com>
* 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.
2001-04-19 Seth Nickell <snickell@stanford.edu>
 
reviewed by: Darin Adler <darin@eazel.com>
......
......@@ -26,10 +26,11 @@
#include "nautilus-hardware-view.h"
#include <bonobo.h>
#include <eel/eel-debug.h>
#include <gnome.h>
#include <libgnomevfs/gnome-vfs.h>
#include <liboaf/liboaf.h>
#include <bonobo.h>
static int object_count = 0;
......@@ -75,6 +76,13 @@ int main(int argc, char *argv[])
bindtextdomain (PACKAGE, GNOMELOCALEDIR);
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);
}
CORBA_exception_init(&ev);
......
......@@ -23,9 +23,10 @@
#include <config.h>
#include <bonobo.h>
#include <eel/eel-debug.h>
#include <gnome.h>
#include <liboaf/liboaf.h>
#include <libnautilus-extensions/nautilus-global-preferences.h>
#include <liboaf/liboaf.h>
#include "hyperbola-nav.h"
......@@ -83,6 +84,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);
}
/* Disable session manager connection */
gnome_client_disable_master_connection ();
......
......@@ -28,6 +28,7 @@
#include <config.h>
#include <bonobo/bonobo-ui-util.h>
#include <eel/eel-debug.h>
#include <eel/eel-gdk-pixbuf-extensions.h>
#include <eel/eel-gtk-macros.h>
#include <gtk/gtkclist.h>
......@@ -333,6 +334,13 @@ nautilus_history_view_destroy (GtkObject *object)
int
main (int argc, char *argv[])
{
/* 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);
}
return nautilus_view_standard_main ("nautilus_history-view",
VERSION,
PACKAGE,
......
......@@ -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 ();
......
......@@ -30,6 +30,7 @@
#include "nautilus-music-view.h"
#include <libnautilus/nautilus-view-standard-main.h>
#include <libnautilus-extensions/nautilus-global-preferences.h>
#include <eel/eel-debug.h>
#define FACTORY_IID "OAFIID:nautilus_music_view_factory:1be0c129-87cd-4daa-9d3a-94397de9bce2"
#define VIEW_IID "OAFIID:nautilus_music_view:9456b5d2-60a8-407f-a56e-d561e1821391"
......@@ -37,6 +38,13 @@
int
main (int argc, char *argv[])
{
/* 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);
}
return nautilus_view_standard_main ("nautilus-music-view",
VERSION,
PACKAGE,
......
......@@ -3,6 +3,7 @@ NULL =
bin_PROGRAMS=nautilus-notes
INCLUDES=\
-DG_LOG_DOMAIN=\"Nautilus-Notes\" \
-I$(top_srcdir) \
-I$(top_builddir) \
-I$(top_builddir)/libnautilus \
......
......@@ -423,9 +423,8 @@ main(int argc, char *argv[])
/* 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, g_log_domain_glib, "Gdk", "Gtk", "GnomeVFS", "GnomeUI", "Bonobo", NULL);
if (g_getenv ("NAUTILUS_DEBUG") != NULL) {
eel_make_warnings_and_criticals_stop_in_debugger (G_LOG_DOMAIN, NULL);
}
return nautilus_view_standard_main ("nautilus-notes",
......
......@@ -30,6 +30,7 @@
#include "nautilus-text-view.h"
#include <libnautilus-extensions/nautilus-global-preferences.h>
#include <libnautilus/nautilus-view-standard-main.h>
#include <eel/eel-debug.h>
#define FACTORY_IID "OAFIID:nautilus_text_view_factory:124ae209-d356-418f-8757-54e071cb3a21"
#define VIEW_IID "OAFIID:nautilus_text_view:fa466311-17c1-435c-8231-c9fc434b6437"
......@@ -37,6 +38,13 @@
int
main (int argc, char *argv[])
{
/* 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);
}
return nautilus_view_standard_main ("nautilus-text-view",
VERSION,
PACKAGE,
......
......@@ -31,6 +31,7 @@
#include <eel/eel-debug.h>
#include <libnautilus-extensions/nautilus-global-preferences.h>
#include <liboaf/liboaf.h>
#include <eel/eel-debug.h>
static int object_count = 0;
......@@ -72,26 +73,11 @@ main (int argc, char *argv[])
CORBA_ORB orb;
char *registration_id;
/* Make criticals and warnings stop in the debugger if
* NAUTILUS_DEBUG is set. Unfortunately, this has to be done
* explicitly for each domain.
/* 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, g_log_domain_glib,
"Bonobo",
"Gdk",
"GnomeUI",
"GnomeVFS",
"GnomeVFS-CORBA",
"GnomeVFS-pthread",
"Gtk",
"Gdk-Pixbuf",
"Nautilus",
"Nautilus-Authenticate",
"Nautilus-Tree",
"ORBit",
NULL);
eel_make_warnings_and_criticals_stop_in_debugger (G_LOG_DOMAIN, NULL);
}
/* Disable session manager connection */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment