Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
G
gtk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dorota Czaplejewicz
gtk
Commits
697efcd4
Commit
697efcd4
authored
Feb 28, 2016
by
Matthias Clasen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x11: Strip newlines from g_warning and g_error
g_logv adds one for us already.
parent
94342300
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
gdk/x11/gdkdisplay-x11.c
gdk/x11/gdkdisplay-x11.c
+1
-1
gdk/x11/gdkdnd-x11.c
gdk/x11/gdkdnd-x11.c
+3
-5
No files found.
gdk/x11/gdkdisplay-x11.c
View file @
697efcd4
...
...
@@ -2627,7 +2627,7 @@ _gdk_x11_display_error_event (GdkDisplay *display,
#ifdef G_ENABLE_DEBUG
g_error
(
"%s"
,
msg
);
#else
/* !G_ENABLE_DEBUG */
g_warning
(
"%s
\n
"
,
msg
);
g_warning
(
"%s"
,
msg
);
_exit
(
1
);
#endif
/* G_ENABLE_DEBUG */
...
...
gdk/x11/gdkdnd-x11.c
View file @
697efcd4
...
...
@@ -990,7 +990,7 @@ xdnd_status_filter (GdkXEvent *xev,
if
(
!
(
action
!=
0
)
!=
!
(
flags
&
1
))
{
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
;
}
...
...
@@ -1424,8 +1424,7 @@ xdnd_check_dest (GdkDisplay *display,
else
{
GDK_NOTE
(
DND
,
g_warning
(
"Invalid XdndProxy "
"property on window %ld
\n
"
,
win
));
g_warning
(
"Invalid XdndProxy property on window %ld"
,
win
));
}
XFree
(
proxy_data
);
...
...
@@ -1450,8 +1449,7 @@ xdnd_check_dest (GdkDisplay *display,
else
{
GDK_NOTE
(
DND
,
g_warning
(
"Invalid XdndAware "
"property on window %ld
\n
"
,
win
));
g_warning
(
"Invalid XdndAware property on window %ld"
,
win
));
}
XFree
(
version
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment