Commit 07051535 authored by Michael Natterer's avatar Michael Natterer 😴

app: remove GimpImage signal "update-sample-point"

parent 6a278517
......@@ -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);
}
......
......@@ -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)
......
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment