From 7f2909bbab8294c98338ee5512db520c48ced929 Mon Sep 17 00:00:00 2001 From: Tim Janik Date: Tue, 18 Aug 1998 03:59:41 +0000 Subject: restricted the --g*fatal-* arguments to --g-fatal-warnings again. this Tue Aug 18 03:54:43 1998 Tim Janik * gtk/gtkmain.c (gtk_init): restricted the --g*fatal-* arguments to --g-fatal-warnings again. this option now causes log levels of WARNING and CRITICAL to abort(). * gdk/gdk.c: * gdk/gdkdnd.c: * gdk/gdkcc.c: * gdk/gdkfont.c: * gdk/gdkwindow.c: * gdk/gdkvisual.c: * gtk/gtkwidget.c: * gtk/gtktypeutils.c: * gtk/gtktree.c: * gtk/gtkfontsel.c: * gtk/gtkmain.c: * gtk/gtkobject.c: * gtk/gtkpreview.c: * gtk/gtkselection.c: * gtk/gtktext.c: * gtk/gtktree.c: * gtk/gtktreeitem.c: did a global search&replace to substitute g_print() calls with g_message(). libraries shouldn't use printf(), g_print() or g_printerr() at all. a bunch of the replacements should probably be wrapped into the G{D|T}K_NOTE() macros, so they are special cased for debugging purposes in a sane way, avoiding all the nasty #ifdef DEBUG_MY_TEDDY things. * gdk/gdkrgb.c: left this out currently. * gdk/gdkdnd.c: added copyright notice. --- gtk/gtkpreview.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'gtk/gtkpreview.c') diff --git a/gtk/gtkpreview.c b/gtk/gtkpreview.c index 713db2b570..9a323ff32f 100644 --- a/gtk/gtkpreview.c +++ b/gtk/gtkpreview.c @@ -1252,28 +1252,28 @@ gtk_trim_cmap (GtkPreviewClass *klass) } } } - + if ((nred < 2) || (ngreen < 2) || (nblue < 2) || (ngray < 2)) { - g_print ("Unable to allocate sufficient colormap entries.\n"); - g_print ("Try exiting other color intensive applications.\n"); + g_message ("Unable to allocate sufficient colormap entries.\n"); + g_message ("Try exiting other color intensive applications.\n"); return; } - + /* If any of the shade values has changed, issue a warning */ if ((nred != klass->info.nred_shades) || (ngreen != klass->info.ngreen_shades) || (nblue != klass->info.nblue_shades) || (ngray != klass->info.ngray_shades)) { - g_print ("Not enough colors to satisfy requested color cube.\n"); - g_print ("Reduced color cube shades from\n"); - g_print ("[%d of Red, %d of Green, %d of Blue, %d of Gray] ==> [%d of Red, %d of Green, %d of Blue, %d of Gray]\n", - klass->info.nred_shades, klass->info.ngreen_shades, - klass->info.nblue_shades, klass->info.ngray_shades, - nred, ngreen, nblue, ngray); + g_message ("Not enough colors to satisfy requested color cube.\n"); + g_message ("Reduced color cube shades from\n"); + g_message ("[%d of Red, %d of Green, %d of Blue, %d of Gray] ==> [%d of Red, %d of Green, %d of Blue, %d of Gray]\n", + klass->info.nred_shades, klass->info.ngreen_shades, + klass->info.nblue_shades, klass->info.ngray_shades, + nred, ngreen, nblue, ngray); } - + klass->info.nred_shades = nred; klass->info.ngreen_shades = ngreen; klass->info.nblue_shades = nblue; -- cgit v1.2.1