Commit 697efcd4 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

x11: Strip newlines from g_warning and g_error

g_logv adds one for us already.
parent 94342300
...@@ -2627,7 +2627,7 @@ _gdk_x11_display_error_event (GdkDisplay *display, ...@@ -2627,7 +2627,7 @@ _gdk_x11_display_error_event (GdkDisplay *display,
#ifdef G_ENABLE_DEBUG #ifdef G_ENABLE_DEBUG
g_error ("%s", msg); g_error ("%s", msg);
#else /* !G_ENABLE_DEBUG */ #else /* !G_ENABLE_DEBUG */
g_warning ("%s\n", msg); g_warning ("%s", msg);
_exit (1); _exit (1);
#endif /* G_ENABLE_DEBUG */ #endif /* G_ENABLE_DEBUG */
......
...@@ -990,7 +990,7 @@ xdnd_status_filter (GdkXEvent *xev, ...@@ -990,7 +990,7 @@ xdnd_status_filter (GdkXEvent *xev,
if (!(action != 0) != !(flags & 1)) if (!(action != 0) != !(flags & 1))
{ {
GDK_NOTE (DND, GDK_NOTE (DND,
g_warning ("Received status event with flags not corresponding to action!\n")); g_warning ("Received status event with flags not corresponding to action!"));
action = 0; action = 0;
} }
...@@ -1424,8 +1424,7 @@ xdnd_check_dest (GdkDisplay *display, ...@@ -1424,8 +1424,7 @@ xdnd_check_dest (GdkDisplay *display,
else else
{ {
GDK_NOTE (DND, GDK_NOTE (DND,
g_warning ("Invalid XdndProxy " g_warning ("Invalid XdndProxy property on window %ld", win));
"property on window %ld\n", win));
} }
XFree (proxy_data); XFree (proxy_data);
...@@ -1450,8 +1449,7 @@ xdnd_check_dest (GdkDisplay *display, ...@@ -1450,8 +1449,7 @@ xdnd_check_dest (GdkDisplay *display,
else else
{ {
GDK_NOTE (DND, GDK_NOTE (DND,
g_warning ("Invalid XdndAware " g_warning ("Invalid XdndAware property on window %ld", win));
"property on window %ld\n", win));
} }
XFree (version); XFree (version);
......
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