Commit 94342300 authored by Matthias Clasen's avatar Matthias Clasen

broadway: Strip newlines from g_warning and g_error

g_logv adds one for us already.
parent 492ea596
...@@ -318,7 +318,7 @@ broadway_output_put_buffer (BroadwayOutput *output, ...@@ -318,7 +318,7 @@ broadway_output_put_buffer (BroadwayOutput *output,
if (!g_output_stream_write_all (out, encoded->str, encoded->len, if (!g_output_stream_write_all (out, encoded->str, encoded->len,
NULL, NULL, NULL) || NULL, NULL, NULL) ||
!g_output_stream_close (out, 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)); len = g_memory_output_stream_get_data_size (G_MEMORY_OUTPUT_STREAM (out_mem));
......
...@@ -302,7 +302,7 @@ client_handle_request (BroadwayClient *client, ...@@ -302,7 +302,7 @@ client_handle_request (BroadwayClient *client,
broadway_server_set_show_keyboard (server, request->set_show_keyboard.show_keyboard); broadway_server_set_show_keyboard (server, request->set_show_keyboard.show_keyboard);
break; break;
default: default:
g_warning ("Unknown request of type %d\n", request->base.type); g_warning ("Unknown request of type %d", request->base.type);
} }
......
...@@ -320,7 +320,7 @@ process_input_messages (GdkBroadwayServer *server) ...@@ -320,7 +320,7 @@ process_input_messages (GdkBroadwayServer *server)
if (reply->base.type == BROADWAY_REPLY_EVENT) if (reply->base.type == BROADWAY_REPLY_EVENT)
_gdk_broadway_events_got_input (&reply->event.msg); _gdk_broadway_events_got_input (&reply->event.msg);
else else
g_warning ("Unhandled reply type %d\n", reply->base.type); g_warning ("Unhandled reply type %d", reply->base.type);
g_free (reply); g_free (reply);
} }
} }
......
...@@ -136,7 +136,7 @@ _gdk_broadway_display_convert_selection (GdkDisplay *display, ...@@ -136,7 +136,7 @@ _gdk_broadway_display_convert_selection (GdkDisplay *display,
GdkAtom target, GdkAtom target,
guint32 time) guint32 time)
{ {
g_warning ("convert_selection not implemented\n"); g_warning ("convert_selection not implemented");
} }
gint gint
...@@ -153,7 +153,7 @@ _gdk_broadway_display_get_selection_property (GdkDisplay *display, ...@@ -153,7 +153,7 @@ _gdk_broadway_display_get_selection_property (GdkDisplay *display,
if (data) if (data)
*data = NULL; *data = NULL;
g_warning ("get_selection_property not implemented\n"); g_warning ("get_selection_property not implemented");
return 0; return 0;
} }
...@@ -168,7 +168,7 @@ _gdk_broadway_display_send_selection_notify (GdkDisplay *display, ...@@ -168,7 +168,7 @@ _gdk_broadway_display_send_selection_notify (GdkDisplay *display,
{ {
g_return_if_fail (GDK_IS_DISPLAY (display)); g_return_if_fail (GDK_IS_DISPLAY (display));
g_warning ("send_selection_notify not implemented\n"); g_warning ("send_selection_notify not implemented");
} }
......
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