oops, forgot to make fade work again after the gradient stuff. Fixed.

Sun Mar 21 23:11:31 EST 1999  Adrian Likins <adrian@gimp.org>

        * app/paintbrush.c: oops, forgot to make fade work
        again after the gradient stuff. Fixed.

-adrian
This commit is contained in:
EST 1999 Adrian Likins 1999-03-22 04:10:58 +00:00 committed by Adrian Likins
parent 4adf289ed6
commit 1436b4ef77
3 changed files with 23 additions and 4 deletions

View File

@ -1,3 +1,8 @@
Sun Mar 21 23:11:31 EST 1999 Adrian Likins <adrian@gimp.org>
* app/paintbrush.c: oops, forgot to make fade work
again after the gradient stuff. Fixed.
Mon Mar 22 00:38:20 GMT 1999 Andy Thomas <alt@gimp.org>
Changed:-

View File

@ -79,6 +79,13 @@ paintbrush_scale_update (GtkAdjustment *adjustment,
options->incremental = INCREMENTAL;
}
static void
paintbrush_fade_update (GtkAdjustment *adjustment,
PaintOptions *options)
{
options->fade_out = adjustment->value;
}
static PaintOptions *
create_paint_options (void)
{
@ -121,8 +128,8 @@ create_paint_options (void)
gtk_scale_set_value_pos (GTK_SCALE (fade_out_scale), GTK_POS_TOP);
gtk_range_set_update_policy (GTK_RANGE (fade_out_scale), GTK_UPDATE_DELAYED);
gtk_signal_connect (GTK_OBJECT (fade_out_scale_data), "value_changed",
(GtkSignalFunc) paintbrush_scale_update,
&options->fade_out);
(GtkSignalFunc) paintbrush_fade_update,
options);
gtk_widget_show (fade_out_scale);
gtk_widget_show (hbox);

View File

@ -79,6 +79,13 @@ paintbrush_scale_update (GtkAdjustment *adjustment,
options->incremental = INCREMENTAL;
}
static void
paintbrush_fade_update (GtkAdjustment *adjustment,
PaintOptions *options)
{
options->fade_out = adjustment->value;
}
static PaintOptions *
create_paint_options (void)
{
@ -121,8 +128,8 @@ create_paint_options (void)
gtk_scale_set_value_pos (GTK_SCALE (fade_out_scale), GTK_POS_TOP);
gtk_range_set_update_policy (GTK_RANGE (fade_out_scale), GTK_UPDATE_DELAYED);
gtk_signal_connect (GTK_OBJECT (fade_out_scale_data), "value_changed",
(GtkSignalFunc) paintbrush_scale_update,
&options->fade_out);
(GtkSignalFunc) paintbrush_fade_update,
options);
gtk_widget_show (fade_out_scale);
gtk_widget_show (hbox);