core: Add function to test if image map is busy

This commit is contained in:
Alexia Death 2010-08-15 02:27:09 +03:00
parent f92b01d233
commit c06ed13a14
2 changed files with 12 additions and 0 deletions

View File

@ -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)
{

View File

@ -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__ */