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,643
Issues
2,643
List
Boards
Labels
Service Desk
Milestones
Merge Requests
36
Merge Requests
36
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
75b4c809
Commit
75b4c809
authored
Oct 01, 2010
by
Michael Natterer
😴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app: add a proxy group which will keep sample point canvas items
parent
f6314b48
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
app/display/gimpdisplayshell.c
app/display/gimpdisplayshell.c
+7
-1
app/display/gimpdisplayshell.h
app/display/gimpdisplayshell.h
+1
-0
No files found.
app/display/gimpdisplayshell.c
View file @
75b4c809
...
...
@@ -53,7 +53,7 @@
#include "tools/tool_manager.h"
#include "gimpcanvas.h"
#include "gimpcanvasgroup.h"
#include "gimpcanvas
proxy
group.h"
#include "gimpdisplay.h"
#include "gimpdisplayshell.h"
#include "gimpdisplayshell-appearance.h"
...
...
@@ -293,6 +293,11 @@ gimp_display_shell_init (GimpDisplayShell *shell)
shell
->
canvas_item
=
gimp_canvas_group_new
();
shell
->
sample_points
=
gimp_canvas_proxy_group_new
();
gimp_canvas_group_add_item
(
GIMP_CANVAS_GROUP
(
shell
->
canvas_item
),
shell
->
sample_points
);
g_object_unref
(
shell
->
sample_points
);
shell
->
icon_size
=
32
;
shell
->
cursor_format
=
GIMP_CURSOR_FORMAT_BITMAP
;
...
...
@@ -800,6 +805,7 @@ gimp_display_shell_dispose (GObject *object)
{
g_object_unref
(
shell
->
canvas_item
);
shell
->
canvas_item
=
NULL
;
shell
->
sample_points
=
NULL
;
}
if
(
shell
->
event_history
)
...
...
app/display/gimpdisplayshell.h
View file @
75b4c809
...
...
@@ -136,6 +136,7 @@ struct _GimpDisplayShell
cairo_pattern_t
*
checkerboard
;
/* checkerboard pattern */
GimpCanvasItem
*
canvas_item
;
/* items drawn on the canvas */
GimpCanvasItem
*
sample_points
;
/* item proxies of sample points */
guint
title_idle_id
;
/* title update idle ID */
gchar
*
title
;
/* current title */
...
...
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