wayland: Strip newlines from g_warning and g_error
g_logv adds one for us already.
This commit is contained in:
@ -814,7 +814,7 @@ gdk_wayland_display_set_cursor_theme (GdkDisplay *display,
|
|||||||
theme = wl_cursor_theme_load (name, size, wayland_display->shm);
|
theme = wl_cursor_theme_load (name, size, wayland_display->shm);
|
||||||
if (theme == NULL)
|
if (theme == NULL)
|
||||||
{
|
{
|
||||||
g_warning ("Failed to load cursor theme %s\n", name);
|
g_warning ("Failed to load cursor theme %s", name);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -853,7 +853,7 @@ _gdk_wayland_display_get_scaled_cursor_theme (GdkWaylandDisplay *wayland_display
|
|||||||
wayland_display->shm);
|
wayland_display->shm);
|
||||||
if (theme == NULL)
|
if (theme == NULL)
|
||||||
{
|
{
|
||||||
g_warning ("Failed to load cursor theme %s with scale %u\n",
|
g_warning ("Failed to load cursor theme %s with scale %u",
|
||||||
wayland_display->cursor_theme_name, scale);
|
wayland_display->cursor_theme_name, scale);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -258,7 +258,7 @@ selection_buffer_read_cb (GObject *object,
|
|||||||
{
|
{
|
||||||
if (error)
|
if (error)
|
||||||
{
|
{
|
||||||
g_warning (G_STRLOC ": error reading selection buffer: %s\n", error->message);
|
g_warning (G_STRLOC ": error reading selection buffer: %s", error->message);
|
||||||
g_error_free (error);
|
g_error_free (error);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user