[gimp] app: make GimpImageMap setters update the drawable by itself
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: make GimpImageMap setters update the drawable by itself
- Date: Sun, 8 May 2016 23:42:31 +0000 (UTC)
commit 143a2bcb95ded27df76d74cda3bab15a72ee5eac
Author: Michael Natterer <mitch gimp org>
Date: Mon May 9 01:40:01 2016 +0200
app: make GimpImageMap setters update the drawable by itself
As in, don't require a call to gimp_image_map_apply() after setting.
app/core/gimpimagemap.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/app/core/gimpimagemap.c b/app/core/gimpimagemap.c
index 23c97bf..03a283c 100644
--- a/app/core/gimpimagemap.c
+++ b/app/core/gimpimagemap.c
@@ -235,6 +235,9 @@ gimp_image_map_set_region (GimpImageMap *image_map,
image_map->region = region;
gimp_image_map_sync_region (image_map);
+
+ if (gimp_image_map_is_filtering (image_map))
+ gimp_image_map_update_drawable (image_map, &image_map->filter_area);
}
}
@@ -283,6 +286,9 @@ gimp_image_map_set_mode (GimpImageMap *image_map,
image_map->paint_mode = paint_mode;
gimp_image_map_sync_mode (image_map);
+
+ if (gimp_image_map_is_filtering (image_map))
+ gimp_image_map_update_drawable (image_map, &image_map->filter_area);
}
}
@@ -297,6 +303,9 @@ gimp_image_map_set_gamma_hack (GimpImageMap *image_map,
image_map->gamma_hack = gamma_hack;
gimp_image_map_sync_gamma_hack (image_map);
+
+ if (gimp_image_map_is_filtering (image_map))
+ gimp_image_map_update_drawable (image_map, &image_map->filter_area);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]