summaryrefslogtreecommitdiff
path: root/gtk/gtkcurve.c
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2002-01-28 18:52:49 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2002-01-28 18:52:49 +0000
commite2b730ac43a27e91217a0d5602eff948f29533f5 (patch)
tree415cc297ea4c01e4c6d889dd14c4b4cf43603b01 /gtk/gtkcurve.c
parent929c8ed53e821f3f48dafc2757cb6b7cdc16cd7c (diff)
downloadgdk-pixbuf-e2b730ac43a27e91217a0d5602eff948f29533f5.tar.gz
General property notification cleanup.
Diffstat (limited to 'gtk/gtkcurve.c')
-rw-r--r--gtk/gtkcurve.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/gtk/gtkcurve.c b/gtk/gtkcurve.c
index 71d47f523..69db45bde 100644
--- a/gtk/gtkcurve.c
+++ b/gtk/gtkcurve.c
@@ -782,7 +782,10 @@ gtk_curve_reset (GtkCurve *c)
gtk_curve_reset_vector (c);
if (old_type != GTK_CURVE_TYPE_SPLINE)
- gtk_signal_emit (GTK_OBJECT (c), curve_type_changed_signal);
+ {
+ gtk_signal_emit (GTK_OBJECT (c), curve_type_changed_signal);
+ g_object_notify (G_OBJECT (c), "curve_type");
+ }
}
void
@@ -883,7 +886,10 @@ gtk_curve_set_vector (GtkCurve *c, int veclen, gfloat vector[])
RADIUS + height - project (ry, c->min_y, c->max_y, height);
}
if (old_type != GTK_CURVE_TYPE_FREE)
- gtk_signal_emit (GTK_OBJECT (c), curve_type_changed_signal);
+ {
+ gtk_signal_emit (GTK_OBJECT (c), curve_type_changed_signal);
+ g_object_notify (G_OBJECT (curve), "curve_type");
+ }
gtk_curve_draw (c, c->num_points, height);
}