[gimp] app: in GimpHistogramEditor, clear update timeout after validating
- From: N/A <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: in GimpHistogramEditor, clear update timeout after validating
- Date: Sun, 13 May 2018 19:22:08 +0000 (UTC)
commit 5b7806e13c73b3fd1047bf0203740da5229d70a5
Author: Ell <ell_se yahoo com>
Date: Sun May 13 15:12:23 2018 -0400
app: in GimpHistogramEditor, clear update timeout after validating
In gimp_histogram_editor_validate(), clear the update timeout, so
that if we validate the histogram before the timeout (in
particular, if editor->histogram itself is clear) we don't end up
unnecessarily re-validating it at the timeout.
app/widgets/gimphistogrameditor.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/app/widgets/gimphistogrameditor.c b/app/widgets/gimphistogrameditor.c
index d303e23..595111a 100644
--- a/app/widgets/gimphistogrameditor.c
+++ b/app/widgets/gimphistogrameditor.c
@@ -512,6 +512,12 @@ gimp_histogram_editor_validate (GimpHistogramEditor *editor)
}
editor->recompute = FALSE;
+
+ if (editor->idle_id)
+ {
+ g_source_remove (editor->idle_id);
+ editor->idle_id = 0;
+ }
}
return (editor->histogram != NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]