gdk: Strip newlines from g_warning and g_error

g_logv adds one for us already.
This commit is contained in:
Matthias Clasen 2016-02-28 12:20:39 -05:00
parent 697efcd4bc
commit 1c887b2287
4 changed files with 7 additions and 7 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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;
}

View File

@ -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);
}
}