broadway: 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:19:31 -05:00
parent 492ea59698
commit 94342300a8
4 changed files with 6 additions and 6 deletions

View File

@ -318,7 +318,7 @@ broadway_output_put_buffer (BroadwayOutput *output,
if (!g_output_stream_write_all (out, encoded->str, encoded->len,
NULL, NULL, NULL) ||
!g_output_stream_close (out, NULL, NULL))
g_warning ("compression failed\n");
g_warning ("compression failed");
len = g_memory_output_stream_get_data_size (G_MEMORY_OUTPUT_STREAM (out_mem));

View File

@ -302,7 +302,7 @@ client_handle_request (BroadwayClient *client,
broadway_server_set_show_keyboard (server, request->set_show_keyboard.show_keyboard);
break;
default:
g_warning ("Unknown request of type %d\n", request->base.type);
g_warning ("Unknown request of type %d", request->base.type);
}

View File

@ -320,7 +320,7 @@ process_input_messages (GdkBroadwayServer *server)
if (reply->base.type == BROADWAY_REPLY_EVENT)
_gdk_broadway_events_got_input (&reply->event.msg);
else
g_warning ("Unhandled reply type %d\n", reply->base.type);
g_warning ("Unhandled reply type %d", reply->base.type);
g_free (reply);
}
}

View File

@ -136,7 +136,7 @@ _gdk_broadway_display_convert_selection (GdkDisplay *display,
GdkAtom target,
guint32 time)
{
g_warning ("convert_selection not implemented\n");
g_warning ("convert_selection not implemented");
}
gint
@ -153,7 +153,7 @@ _gdk_broadway_display_get_selection_property (GdkDisplay *display,
if (data)
*data = NULL;
g_warning ("get_selection_property not implemented\n");
g_warning ("get_selection_property not implemented");
return 0;
}
@ -168,7 +168,7 @@ _gdk_broadway_display_send_selection_notify (GdkDisplay *display,
{
g_return_if_fail (GDK_IS_DISPLAY (display));
g_warning ("send_selection_notify not implemented\n");
g_warning ("send_selection_notify not implemented");
}