Commit 1c887b22 authored by Matthias Clasen's avatar Matthias Clasen

gdk: Strip newlines from g_warning and g_error

g_logv adds one for us already.
parent 697efcd4
......@@ -1665,7 +1665,7 @@ gdk_event_get_device (const GdkEvent *event)
GdkSeat *seat;
g_warning ("Event with type %d not holding a GdkDevice. "
"It is most likely synthesized outside Gdk/GTK+\n",
"It is most likely synthesized outside Gdk/GTK+",
event->type);
display = gdk_window_get_display (event->any.window);
......@@ -2373,7 +2373,7 @@ gdk_event_get_seat (const GdkEvent *event)
GdkDevice *device;
g_warning ("Event with type %d not holding a GdkSeat. "
"It is most likely synthesized outside Gdk/GTK+\n",
"It is most likely synthesized outside Gdk/GTK+",
event->type);
device = gdk_event_get_device (event);
......
......@@ -73,7 +73,7 @@ create_shader (int type,
buffer = g_malloc (log_len + 1);
glGetShaderInfoLog (shader, log_len, NULL, buffer);
g_warning ("Compile failure in %s shader:\n%s\n", get_vertex_type_name (type), buffer);
g_warning ("Compile failure in %s shader:\n%s", get_vertex_type_name (type), buffer);
g_free (buffer);
glDeleteShader (shader);
......
......@@ -181,7 +181,7 @@ gdk_seat_default_get_master (GdkSeat *seat,
case GDK_SEAT_CAPABILITY_KEYBOARD:
return priv->master_keyboard;
default:
g_warning ("Unhandled capability %x\n", capability);
g_warning ("Unhandled capability %x", capability);
break;
}
......
......@@ -503,7 +503,7 @@ gdk_window_finalize (GObject *object)
{
if (GDK_WINDOW_TYPE (window) != GDK_WINDOW_FOREIGN)
{
g_warning ("losing last reference to undestroyed window\n");
g_warning ("losing last reference to undestroyed window");
_gdk_window_destroy (window, FALSE);
}
else
......@@ -1303,7 +1303,7 @@ gdk_window_new (GdkWindow *parent,
if (GDK_WINDOW_DESTROYED (parent))
{
g_warning ("gdk_window_new(): parent is destroyed\n");
g_warning ("gdk_window_new(): parent is destroyed");
return NULL;
}
......@@ -1460,7 +1460,7 @@ gdk_window_new (GdkWindow *parent,
if (gdk_window_get_paint_gl_context (window, &error) == NULL)
{
g_warning ("Unable to force GL enabled: %s\n", error->message);
g_warning ("Unable to force GL enabled: %s", error->message);
g_error_free (error);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment