[gimp] app: remove GimpImage signal "update-sample-point"
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: remove GimpImage signal "update-sample-point"
- Date: Fri, 1 Oct 2010 07:29:01 +0000 (UTC)
commit 07051535da0f05351680f561043d3a476165e9e4
Author: Michael Natterer <mitch gimp org>
Date: Fri Oct 1 09:27:10 2010 +0200
app: remove GimpImage signal "update-sample-point"
app/core/gimpimage-sample-points.c | 16 ----------------
app/core/gimpimage.c | 23 -----------------------
app/core/gimpimage.h | 4 ----
app/core/gimpsamplepointundo.c | 4 ----
4 files changed, 0 insertions(+), 47 deletions(-)
---
diff --git a/app/core/gimpimage-sample-points.c b/app/core/gimpimage-sample-points.c
index 9bb8e0d..3fef887 100644
--- a/app/core/gimpimage-sample-points.c
+++ b/app/core/gimpimage-sample-points.c
@@ -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);
}
diff --git a/app/core/gimpimage.c b/app/core/gimpimage.c
index cd7cdb2..2b94cbe 100644
--- a/app/core/gimpimage.c
+++ b/app/core/gimpimage.c
@@ -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;
@@ -2112,17 +2100,6 @@ gimp_image_update_guide (GimpImage *image,
}
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)
{
diff --git a/app/core/gimpimage.h b/app/core/gimpimage.h
index 5133997..4a83c59 100644
--- a/app/core/gimpimage.h
+++ b/app/core/gimpimage.h
@@ -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);
diff --git a/app/core/gimpsamplepointundo.c b/app/core/gimpsamplepointundo.c
index bfb5736..a2a426a 100644
--- a/app/core/gimpsamplepointundo.c
+++ b/app/core/gimpsamplepointundo.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]