Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
GNOME
GIMP
Commits
5b9e2776
Commit
5b9e2776
authored
Dec 21, 2017
by
Jehan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app, plug-ins: clean up previous commit by using g_error_set()...
... instead of g_message().
parent
657a754f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
app/core/gimpbrush-load.c
app/core/gimpbrush-load.c
+2
-1
plug-ins/common/file-gbr.c
plug-ins/common/file-gbr.c
+2
-1
No files found.
app/core/gimpbrush-load.c
View file @
5b9e2776
...
...
@@ -228,7 +228,8 @@ gimp_brush_load_brush (GimpContext *context,
if
(
header
.
header_size
<
sizeof
(
BrushHeader
))
{
g_message
(
_
(
"Unsupported brush format"
));
g_set_error
(
error
,
GIMP_DATA_ERROR
,
GIMP_DATA_ERROR_READ
,
_
(
"Unsupported brush format"
));
return
NULL
;
}
...
...
plug-ins/common/file-gbr.c
View file @
5b9e2776
...
...
@@ -408,7 +408,8 @@ load_image (GFile *file,
bh
.
header_size
+=
8
;
if
(
bh
.
header_size
<
sizeof
(
BrushHeader
))
{
g_message
(
_
(
"Unsupported brush format"
));
g_set_error
(
error
,
G_FILE_ERROR
,
G_FILE_ERROR_FAILED
,
_
(
"Unsupported brush format"
));
g_object_unref
(
input
);
return
-
1
;
}
...
...
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