diff options
author | 16:19:16 Tim Janik <timj@imendio.com> | 2008-08-07 14:23:07 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 2008-08-07 14:23:07 +0000 |
commit | 83269a5ae7ae5cb4f722f2df7f29af231691b116 (patch) | |
tree | ff0ea157663baecb3451af9606d37561137c3003 /gdk | |
parent | 81934ca8c6fc1827ff260428216823a3f8dd0461 (diff) | |
download | gdk-pixbuf-83269a5ae7ae5cb4f722f2df7f29af231691b116.tar.gz |
use g_error() instead of a combination of g_warning+exit to avoid
2008-08-07 16:19:16 Tim Janik <timj@imendio.com>
* gdk/gdkrgb.c (gdk_rgb_select_conv): use g_error() instead of a
combination of g_warning+exit to avoid misleading the user.
svn path=/trunk/; revision=21037
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/gdkrgb.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/gdk/gdkrgb.c b/gdk/gdkrgb.c index 9b6a1b11f..347ff59e0 100644 --- a/gdk/gdkrgb.c +++ b/gdk/gdkrgb.c @@ -3265,15 +3265,12 @@ gdk_rgb_select_conv (GdkRgbInfo *image_info) conv = gdk_rgb_convert_4_pack; if (!conv) - { - g_warning ("Visual type=%d depth=%d, image bpp=%d, %s first\n" - "is not supported by GdkRGB. Please submit a bug report\n" - "with the above values to bugzilla.gnome.org", - vtype, depth, bpp, - byte_order == GDK_LSB_FIRST ? "lsb" : "msb"); - exit (1); - } - + g_error ("Visual type=%d depth=%d, image bpp=%d, %s first\n" + "is not supported by GdkRGB. Please submit a bug report\n" + "with the above values to bugzilla.gnome.org", + vtype, depth, bpp, + byte_order == GDK_LSB_FIRST ? "lsb" : "msb"); + if (conv_d == NULL) conv_d = conv; |