diff options
author | Tim Janik <timj@gimp.org> | 1998-03-07 20:32:59 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 1998-03-07 20:32:59 +0000 |
commit | 124d1e5caae190e620307a69f92bd5b93664bf75 (patch) | |
tree | f30e71f7ce04660e4056d5bcf0bf476c196b4aa8 /gdk/x11/gdkmain-x11.c | |
parent | 640c75216d1545e7633ba5653a141c58ebbc53a6 (diff) | |
download | gtk+-124d1e5caae190e620307a69f92bd5b93664bf75.tar.gz |
made the object/class cast checks much more descriptive, based on
Sat Mar 7 20:20:53 1998 Tim Janik <timj@gimp.org>
* gtk/gtkobject.c:
(gtk_object_check_cast):
(gtk_object_check_class_cast):
made the object/class cast checks much more descriptive, based on
gtk-draco-980305-2.patch.gz and gtk-draco-980306-1.patch.gz but
optimized for common code path.
* gtk/gtkpreview.c: added a few extra checks for the visual
(gtk-draco-980305-0.patch.gz).
* gdk/gdk.c (gdk_signal): abort() on a signal if G_ENABLE_DEBUG
is defined, so we dump core (gtk-draco-980305-0.patch.gz).
Diffstat (limited to 'gdk/x11/gdkmain-x11.c')
-rw-r--r-- | gdk/x11/gdkmain-x11.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdk/x11/gdkmain-x11.c b/gdk/x11/gdkmain-x11.c index fe94fbe49e..b778d3d795 100644 --- a/gdk/x11/gdkmain-x11.c +++ b/gdk/x11/gdkmain-x11.c @@ -3116,7 +3116,11 @@ gdk_signal (int sig_num) } g_print ("\n** ERROR **: %s caught\n", sig); +#ifdef G_ENABLE_DEBUG + abort (); +#else /* !G_ENABLE_DEBUG */ gdk_exit (1); +#endif /* !G_ENABLE_DEBUG */ } static void |