diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2002-01-28 18:52:49 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2002-01-28 18:52:49 +0000 |
commit | e2b730ac43a27e91217a0d5602eff948f29533f5 (patch) | |
tree | 415cc297ea4c01e4c6d889dd14c4b4cf43603b01 /gtk/gtkcurve.c | |
parent | 929c8ed53e821f3f48dafc2757cb6b7cdc16cd7c (diff) | |
download | gdk-pixbuf-e2b730ac43a27e91217a0d5602eff948f29533f5.tar.gz |
General property notification cleanup.
Diffstat (limited to 'gtk/gtkcurve.c')
-rw-r--r-- | gtk/gtkcurve.c | 10 |
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); } |