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,774
Issues
2,774
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
3b4f2ec9
Commit
3b4f2ec9
authored
Oct 01, 2010
by
Michael Natterer
😴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app: add a GimpCanvasProxyGroup that will be used for guides
parent
07051535
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
app/display/gimpdisplayshell.c
app/display/gimpdisplayshell.c
+6
-0
app/display/gimpdisplayshell.h
app/display/gimpdisplayshell.h
+1
-0
No files found.
app/display/gimpdisplayshell.c
View file @
3b4f2ec9
...
...
@@ -293,6 +293,11 @@ gimp_display_shell_init (GimpDisplayShell *shell)
shell
->
canvas_item
=
gimp_canvas_group_new
();
shell
->
guides
=
gimp_canvas_proxy_group_new
();
gimp_canvas_group_add_item
(
GIMP_CANVAS_GROUP
(
shell
->
canvas_item
),
shell
->
guides
);
g_object_unref
(
shell
->
guides
);
shell
->
sample_points
=
gimp_canvas_proxy_group_new
();
gimp_canvas_group_add_item
(
GIMP_CANVAS_GROUP
(
shell
->
canvas_item
),
shell
->
sample_points
);
...
...
@@ -805,6 +810,7 @@ gimp_display_shell_dispose (GObject *object)
{
g_object_unref
(
shell
->
canvas_item
);
shell
->
canvas_item
=
NULL
;
shell
->
guides
=
NULL
;
shell
->
sample_points
=
NULL
;
}
...
...
app/display/gimpdisplayshell.h
View file @
3b4f2ec9
...
...
@@ -136,6 +136,7 @@ struct _GimpDisplayShell
cairo_pattern_t
*
checkerboard
;
/* checkerboard pattern */
GimpCanvasItem
*
canvas_item
;
/* items drawn on the canvas */
GimpCanvasItem
*
guides
;
/* item proxies of guides */
GimpCanvasItem
*
sample_points
;
/* item proxies of sample points */
guint
title_idle_id
;
/* title update idle ID */
...
...
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