From 5ab5748191a2ce7250e1a6716d704fba79fa3e75 Mon Sep 17 00:00:00 2001 From: Kevin Turner Date: Thu, 12 Oct 2000 09:38:15 +0000 Subject: [PATCH] use double callback for double data. Why repeat count is a double, we'll * plug-ins/common/blur.c: use double callback for double data. Why repeat count is a double, we'll never know. * plug-ins/perl/examples/xachshadow * plug-ins/perl/examples/xachlego: set non-zero limits on some parameters. This patch brought to you by the NT Administators Guild of Austria, and Marduk the Creator. Go bravely with Anhur! --- ChangeLog | 12 ++++++++++++ plug-ins/common/blur.c | 4 ++-- plug-ins/perl/examples/xachlego | 4 ++-- plug-ins/perl/examples/xachshadow | 2 +- 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index e2e81dd516..877c669e25 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2000-10-12 Kevin Turner + + (applying patch from maru) + + * plug-ins/common/blur.c: use double callback for double data. + Why repeat count is a double, we'll never know. + + * plug-ins/perl/examples/xachshadow + * plug-ins/perl/examples/xachlego: set non-zero limits on some + parameters. + + 2000-10-09 Michael Natterer * gimp_splash.ppm: A nicer one (this time without diff --git a/plug-ins/common/blur.c b/plug-ins/common/blur.c index af9ea14f58..35626fbbbf 100644 --- a/plug-ins/common/blur.c +++ b/plug-ins/common/blur.c @@ -657,7 +657,7 @@ blur_dialog (void) TRUE, 0, 0, _("Percentage of pixels to be filtered"), NULL); gtk_signal_connect (GTK_OBJECT (adj), "value_changed", - GTK_SIGNAL_FUNC (gimp_int_adjustment_update), + GTK_SIGNAL_FUNC (gimp_double_adjustment_update), &pivals.blur_pct); /* @@ -669,7 +669,7 @@ blur_dialog (void) TRUE, 0, 0, _("Number of times to apply filter"), NULL); gtk_signal_connect (GTK_OBJECT (adj), "value_changed", - GTK_SIGNAL_FUNC (gimp_int_adjustment_update), + GTK_SIGNAL_FUNC (gimp_double_adjustment_update), &pivals.blur_rcount); gtk_widget_show (frame); diff --git a/plug-ins/perl/examples/xachlego b/plug-ins/perl/examples/xachlego index d13d710ee8..4834e6cee4 100755 --- a/plug-ins/perl/examples/xachlego +++ b/plug-ins/perl/examples/xachlego @@ -45,8 +45,8 @@ register "xach_blocks", N_"/Filters/Map/Xach Blocks...", "*", [ - [PF_SLIDER, "block_size", "The size of the blocks", 10, [0, 255, 1]], - [PF_SLIDER, "knob_factor", "The size of your knob", 40, [0, 100, 5]], + [PF_SLIDER, "block_size", "The size of the blocks", 10, [2, 255, 1]], + [PF_SLIDER, "knob_factor", "The size of your knob", 40, [10, 100, 5]], ], sub { my($img,$drawable,$blocksize, $knobfactor)=@_; diff --git a/plug-ins/perl/examples/xachshadow b/plug-ins/perl/examples/xachshadow index f87d97df77..f9736b9e2d 100755 --- a/plug-ins/perl/examples/xachshadow +++ b/plug-ins/perl/examples/xachshadow @@ -40,7 +40,7 @@ register "xach_shadows", N_"/Filters/Map/Xach Shadows...", "RGB*, GRAY*", [ - [PF_SLIDER, "block_size", "The size of the blocks...", 10, [0, 255, 1]], + [PF_SLIDER, "block_size", "The size of the blocks...", 10, [4, 255, 1]], ], sub { my($img,$drawable,$blocksize) =@_;