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
This commit is contained in:
committed by
Tim Janik
parent
81934ca8c6
commit
83269a5ae7
@@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
||||
2008-08-07 Michael Natterer <mitch@imendio.com>
|
||||
|
||||
* gtk/gtkactiongroup.c
|
||||
|
||||
15
gdk/gdkrgb.c
15
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user