mirror of https://github.com/GNOME/gimp.git
core: Add function to test if image map is busy
This commit is contained in:
parent
f92b01d233
commit
c06ed13a14
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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__ */
|
||||
|
|
Loading…
Reference in New Issue