[gimp/soc-2010-cage-2] core: Add function to test if image map is busy
- From: Alexia Death <alexiade src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/soc-2010-cage-2] core: Add function to test if image map is busy
- Date: Sat, 14 Aug 2010 23:32:57 +0000 (UTC)
commit c06ed13a144787469e9945e19355ba736a6c0893
Author: Alexia Death <alexiadeath gmail com>
Date: Sun Aug 15 02:27:09 2010 +0300
core: Add function to test if image map is busy
app/core/gimpimagemap.c | 9 +++++++++
app/core/gimpimagemap.h | 3 +++
2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/app/core/gimpimagemap.c b/app/core/gimpimagemap.c
index cc6a58c..ae0beb3 100644
--- a/app/core/gimpimagemap.c
+++ b/app/core/gimpimagemap.c
@@ -657,6 +657,15 @@ gimp_image_map_update_undo_tiles (GimpImageMap *image_map,
}
}
+gboolean
+gimp_image_map_is_busy (GimpImageMap *image_map)
+{
+ if (image_map->idle_id > 0)
+ return TRUE;
+
+ return FALSE;
+}
+
static gboolean
gimp_image_map_do (GimpImageMap *image_map)
{
diff --git a/app/core/gimpimagemap.h b/app/core/gimpimagemap.h
index ca3d7b4..de2f3b4 100644
--- a/app/core/gimpimagemap.h
+++ b/app/core/gimpimagemap.h
@@ -62,4 +62,7 @@ void gimp_image_map_clear (GimpImageMap *image_map);
void gimp_image_map_abort (GimpImageMap *image_map);
+gboolean gimp_image_map_is_busy (GimpImageMap *image_map);
+
+
#endif /* __GIMP_IMAGE_MAP_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]