Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
GIMP
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2,640
Issues
2,640
List
Boards
Labels
Service Desk
Milestones
Merge Requests
39
Merge Requests
39
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
External Wiki
External Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GNOME
GIMP
Commits
a8387604
Commit
a8387604
authored
Apr 06, 2011
by
Michael Natterer
😴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app: make GimpBrushCache debug spew depend on GIMP_LOG=brush-cache
parent
0315f483
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
app/core/gimpbrushcache.c
app/core/gimpbrushcache.c
+5
-2
app/gimp-log.c
app/gimp-log.c
+2
-1
app/gimp-log.h
app/gimp-log.h
+3
-1
No files found.
app/core/gimpbrushcache.c
View file @
a8387604
...
...
@@ -26,6 +26,7 @@
#include "gimpbrushcache.h"
#include "gimp-log.h"
#include "gimp-intl.h"
...
...
@@ -193,12 +194,14 @@ gimp_brush_cache_get (GimpBrushCache *cache,
cache
->
last_angle
==
angle
&&
cache
->
last_hardness
==
hardness
)
{
g_printerr
(
"%c"
,
cache
->
debug_hit
);
if
(
gimp_log_flags
&
GIMP_LOG_BRUSH_CACHE
)
g_printerr
(
"%c"
,
cache
->
debug_hit
);
return
(
gconstpointer
)
cache
->
last_data
;
}
g_printerr
(
"%c"
,
cache
->
debug_miss
);
if
(
gimp_log_flags
&
GIMP_LOG_BRUSH_CACHE
)
g_printerr
(
"%c"
,
cache
->
debug_miss
);
return
NULL
;
}
...
...
app/gimp-log.c
View file @
a8387604
...
...
@@ -55,7 +55,8 @@ gimp_log_init (void)
{
"key-events"
,
GIMP_LOG_KEY_EVENTS
},
{
"auto-tab-style"
,
GIMP_LOG_AUTO_TAB_STYLE
},
{
"instances"
,
GIMP_LOG_INSTANCES
},
{
"rectangle-tool"
,
GIMP_LOG_RECTANGLE_TOOL
}
{
"rectangle-tool"
,
GIMP_LOG_RECTANGLE_TOOL
},
{
"brush-cache"
,
GIMP_LOG_BRUSH_CACHE
}
};
/* g_parse_debug_string() has special treatment of the string 'help',
...
...
app/gimp-log.h
View file @
a8387604
...
...
@@ -38,7 +38,8 @@ typedef enum
GIMP_LOG_KEY_EVENTS
=
1
<<
14
,
GIMP_LOG_AUTO_TAB_STYLE
=
1
<<
15
,
GIMP_LOG_INSTANCES
=
1
<<
16
,
GIMP_LOG_RECTANGLE_TOOL
=
1
<<
17
GIMP_LOG_RECTANGLE_TOOL
=
1
<<
17
,
GIMP_LOG_BRUSH_CACHE
=
1
<<
18
}
GimpLogFlags
;
...
...
@@ -97,6 +98,7 @@ void gimp_logv (const gchar *function,
#define AUTO_TAB_STYLE GIMP_LOG_AUTO_TAB_STYLE
#define INSTANCES GIMP_LOG_INSTANCES
#define RECTANGLE_TOOL GIMP_LOG_RECTANGLE_TOOL
#define BRUSH_CACHE GIMP_LOG_BRUSH_CACHE
#if 0 /* last resort */
# define GIMP_LOG /* nothing => no varargs, no log */
...
...
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