Hello all,with the new year I wanted to contributed small patches for dt and here the first. It disables the autoscale for the a and b channel in the tonecurve plugin. I just didn't like to click so much...
Only drawback is that the initial curve has not 7 points like if you switch the bauhaus widget, only 3 like after a reset of the curve.
But because I did some changes to the noiseprofile scripts the attached patch might give troubles, but the changes are only a few lines.
Any more good ideas welcome. hal
>From 74bdc6fd676159ebb02d3980d5e9df41957d1be9 Mon Sep 17 00:00:00 2001 From: Matthias <max@xhost2.U> Date: Tue, 1 Jan 2013 17:32:06 +0100 Subject: [PATCH] Committer: hal On branch master Changes to be committed: modified: src/iop/tonecurve.c --- src/iop/tonecurve.c | 11 +++++++++++ 1 file changed, 11 insertions(+), 0 deletions(-) diff --git a/src/iop/tonecurve.c b/src/iop/tonecurve.c index 1884433..5895cc5 100644 --- a/src/iop/tonecurve.c +++ b/src/iop/tonecurve.c @@ -942,6 +942,17 @@ static gboolean dt_iop_tonecurve_button_press(GtkWidget *widget, GdkEventButton c->selected = -2; // avoid motion notify re-inserting immediately. dt_dev_add_history_item(darktable.develop, self, TRUE); gtk_widget_queue_draw(self->widget); + } + else + { + if (ch != ch_L) + { + p->tonecurve_autoscale_ab = 0; + c->selected = -2; // avoid motion notify re-inserting immediately. + dt_bauhaus_combobox_set(c->autoscale_ab, 1-p->tonecurve_autoscale_ab); + dt_dev_add_history_item(darktable.develop, self, TRUE); + gtk_widget_queue_draw(self->widget); + } } return TRUE; }
------------------------------------------------------------------------------ Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS and more. Get SQL Server skills now (including 2012) with LearnDevNow - 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only - learn more at: http://p.sf.net/sfu/learnmore_122512
_______________________________________________ darktable-devel mailing list darktable-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/darktable-devel