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,644
Issues
2,644
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
07051535
Commit
07051535
authored
Oct 01, 2010
by
Michael Natterer
😴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app: remove GimpImage signal "update-sample-point"
parent
6a278517
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
47 deletions
+0
-47
app/core/gimpimage-sample-points.c
app/core/gimpimage-sample-points.c
+0
-16
app/core/gimpimage.c
app/core/gimpimage.c
+0
-23
app/core/gimpimage.h
app/core/gimpimage.h
+0
-4
app/core/gimpsamplepointundo.c
app/core/gimpsamplepointundo.c
+0
-4
No files found.
app/core/gimpimage-sample-points.c
View file @
07051535
...
...
@@ -79,7 +79,6 @@ gimp_image_add_sample_point (GimpImage *image,
gimp_sample_point_ref
(
sample_point
);
gimp_image_sample_point_added
(
image
,
sample_point
);
gimp_image_update_sample_point
(
image
,
sample_point
);
}
void
...
...
@@ -88,24 +87,17 @@ gimp_image_remove_sample_point (GimpImage *image,
gboolean
push_undo
)
{
GimpImagePrivate
*
private
;
GList
*
list
;
g_return_if_fail
(
GIMP_IS_IMAGE
(
image
));
g_return_if_fail
(
sample_point
!=
NULL
);
private
=
GIMP_IMAGE_GET_PRIVATE
(
image
);
gimp_image_update_sample_point
(
image
,
sample_point
);
if
(
push_undo
)
gimp_image_undo_push_sample_point
(
image
,
C_
(
"undo-type"
,
"Remove Sample Point"
),
sample_point
);
list
=
g_list_find
(
private
->
sample_points
,
sample_point
);
if
(
list
)
list
=
g_list_next
(
list
);
private
->
sample_points
=
g_list_remove
(
private
->
sample_points
,
sample_point
);
gimp_image_sample_point_removed
(
image
,
sample_point
);
...
...
@@ -113,12 +105,6 @@ gimp_image_remove_sample_point (GimpImage *image,
sample_point
->
x
=
-
1
;
sample_point
->
y
=
-
1
;
gimp_sample_point_unref
(
sample_point
);
while
(
list
)
{
gimp_image_update_sample_point
(
image
,
list
->
data
);
list
=
g_list_next
(
list
);
}
}
void
...
...
@@ -140,10 +126,8 @@ gimp_image_move_sample_point (GimpImage *image,
C_
(
"undo-type"
,
"Move Sample Point"
),
sample_point
);
gimp_image_update_sample_point
(
image
,
sample_point
);
sample_point
->
x
=
x
;
sample_point
->
y
=
y
;
gimp_image_update_sample_point
(
image
,
sample_point
);
gimp_image_sample_point_moved
(
image
,
sample_point
);
}
...
...
app/core/gimpimage.c
View file @
07051535
...
...
@@ -101,7 +101,6 @@ enum
SAVED
,
EXPORTED
,
UPDATE_GUIDE
,
UPDATE_SAMPLE_POINT
,
UPDATE_VECTORS
,
SAMPLE_POINT_ADDED
,
SAMPLE_POINT_REMOVED
,
...
...
@@ -433,16 +432,6 @@ gimp_image_class_init (GimpImageClass *klass)
G_TYPE_NONE
,
1
,
G_TYPE_POINTER
);
gimp_image_signals
[
UPDATE_SAMPLE_POINT
]
=
g_signal_new
(
"update-sample-point"
,
G_TYPE_FROM_CLASS
(
klass
),
G_SIGNAL_RUN_FIRST
,
G_STRUCT_OFFSET
(
GimpImageClass
,
update_sample_point
),
NULL
,
NULL
,
gimp_marshal_VOID__POINTER
,
G_TYPE_NONE
,
1
,
G_TYPE_POINTER
);
gimp_image_signals
[
UPDATE_VECTORS
]
=
g_signal_new
(
"update-vectors"
,
G_TYPE_FROM_CLASS
(
klass
),
...
...
@@ -563,7 +552,6 @@ gimp_image_class_init (GimpImageClass *klass)
klass
->
saved
=
NULL
;
klass
->
exported
=
NULL
;
klass
->
update_guide
=
NULL
;
klass
->
update_sample_point
=
NULL
;
klass
->
update_vectors
=
NULL
;
klass
->
sample_point_added
=
NULL
;
klass
->
sample_point_removed
=
NULL
;
...
...
@@ -2111,17 +2099,6 @@ gimp_image_update_guide (GimpImage *image,
g_signal_emit
(
image
,
gimp_image_signals
[
UPDATE_GUIDE
],
0
,
guide
);
}
void
gimp_image_update_sample_point
(
GimpImage
*
image
,
GimpSamplePoint
*
sample_point
)
{
g_return_if_fail
(
GIMP_IS_IMAGE
(
image
));
g_return_if_fail
(
sample_point
!=
NULL
);
g_signal_emit
(
image
,
gimp_image_signals
[
UPDATE_SAMPLE_POINT
],
0
,
sample_point
);
}
void
gimp_image_update_vectors
(
GimpImage
*
image
,
GimpVectors
*
vectors
)
...
...
app/core/gimpimage.h
View file @
07051535
...
...
@@ -133,8 +133,6 @@ struct _GimpImageClass
void
(
*
update_guide
)
(
GimpImage
*
image
,
GimpGuide
*
guide
);
void
(
*
update_sample_point
)
(
GimpImage
*
image
,
GimpSamplePoint
*
sample_point
);
void
(
*
update_vectors
)
(
GimpImage
*
image
,
GimpVectors
*
vectors
);
void
(
*
sample_point_added
)
(
GimpImage
*
image
,
...
...
@@ -253,8 +251,6 @@ void gimp_image_invalidate (GimpImage *image,
gint
height
);
void
gimp_image_update_guide
(
GimpImage
*
image
,
GimpGuide
*
guide
);
void
gimp_image_update_sample_point
(
GimpImage
*
image
,
GimpSamplePoint
*
sample_point
);
void
gimp_image_update_vectors
(
GimpImage
*
image
,
GimpVectors
*
vectors
);
...
...
app/core/gimpsamplepointundo.c
View file @
07051535
...
...
@@ -171,12 +171,8 @@ gimp_sample_point_undo_pop (GimpUndo *undo,
}
else
{
gimp_image_update_sample_point
(
undo
->
image
,
sample_point_undo
->
sample_point
);
sample_point_undo
->
sample_point
->
x
=
sample_point_undo
->
x
;
sample_point_undo
->
sample_point
->
y
=
sample_point_undo
->
y
;
gimp_image_update_sample_point
(
undo
->
image
,
sample_point_undo
->
sample_point
);
gimp_image_sample_point_moved
(
undo
->
image
,
sample_point_undo
->
sample_point
);
...
...
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