diff options
author | Tim Janik <timj@gtk.org> | 1998-08-18 03:59:41 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 1998-08-18 03:59:41 +0000 |
commit | 7f2909bbab8294c98338ee5512db520c48ced929 (patch) | |
tree | 86bc09d36566944710fc7dd6c1ea5e2cbd59ede9 /gtk/gtkpreview.c | |
parent | fdc36ada3f64bb1e9f2afa4c4cfe6c4a56565109 (diff) | |
download | gdk-pixbuf-7f2909bbab8294c98338ee5512db520c48ced929.tar.gz |
restricted the --g*fatal-* arguments to --g-fatal-warnings again. this
Tue Aug 18 03:54:43 1998 Tim Janik <timj@gtk.org>
* 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.
Diffstat (limited to 'gtk/gtkpreview.c')
-rw-r--r-- | gtk/gtkpreview.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/gtk/gtkpreview.c b/gtk/gtkpreview.c index 713db2b57..9a323ff32 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; |