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
a8259996
Commit
a8259996
authored
Sep 30, 2010
by
Michael Natterer
😴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app: simplify the drawing code
by using gimp_draw_tool_add_guide_line() for the active guide too.
parent
d3e2db88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
app/tools/gimpmovetool.c
app/tools/gimpmovetool.c
+4
-6
No files found.
app/tools/gimpmovetool.c
View file @
a8259996
...
...
@@ -45,7 +45,7 @@
#include "widgets/gimphelp-ids.h"
#include "display/gimpcanvas
guide
.h"
#include "display/gimpcanvas
item
.h"
#include "display/gimpdisplay.h"
#include "display/gimpdisplayshell.h"
#include "display/gimpdisplayshell-appearance.h"
...
...
@@ -775,14 +775,12 @@ gimp_move_tool_draw (GimpDrawTool *draw_tool)
{
GimpCanvasItem
*
item
;
item
=
gimp_canvas_guide_new
(
gimp_guide_get_orientation
(
move
->
guide
),
gimp_guide_get_position
(
move
->
guide
));
item
=
gimp_draw_tool_add_guide_line
(
draw_tool
,
gimp_guide_get_orientation
(
move
->
guide
),
gimp_guide_get_position
(
move
->
guide
));
g_object_set
(
item
,
"guide-style"
,
TRUE
,
NULL
);
gimp_canvas_item_set_highlight
(
item
,
TRUE
);
gimp_draw_tool_add_item
(
draw_tool
,
item
);
g_object_unref
(
item
);
}
if
(
move
->
moving_guide
&&
move
->
guide_position
!=
-
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