[gimp] app: fix gimp_curve_view_remove_all_backgrounds()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: fix gimp_curve_view_remove_all_backgrounds()
- Date: Sun, 28 Feb 2010 17:37:30 +0000 (UTC)
commit 3f816cbc29e8c94b5b07d2b8d87bbbca35e42eb2
Author: Michael Natterer <mitch gimp org>
Date: Sun Feb 28 18:28:00 2010 +0100
app: fix gimp_curve_view_remove_all_backgrounds()
app/widgets/gimpcurveview.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/app/widgets/gimpcurveview.c b/app/widgets/gimpcurveview.c
index 2e31dc1..d2dfc2f 100644
--- a/app/widgets/gimpcurveview.c
+++ b/app/widgets/gimpcurveview.c
@@ -1129,6 +1129,8 @@ gimp_curve_view_set_curve (GimpCurveView *view,
G_CALLBACK (gimp_curve_view_curve_dirty),
view);
}
+
+ gtk_widget_queue_draw (GTK_WIDGET (view));
}
GimpCurve *
@@ -1191,13 +1193,11 @@ gimp_curve_view_remove_background (GimpCurveView *view,
void
gimp_curve_view_remove_all_backgrounds (GimpCurveView *view)
{
- GList *list;
-
g_return_if_fail (GIMP_IS_CURVE_VIEW (view));
- for (list = view->bg_curves; list; list = g_list_next (list))
+ while (view->bg_curves)
{
- BGCurve *bg = list->data;
+ BGCurve *bg = view->bg_curves->data;
g_object_unref (bg->curve);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]