Commit 64a6d457 authored by GMT 1999 Adam D. Moss's avatar GMT 1999 Adam D. Moss Committed by Adam D. Moss

app/blend.c app/bucket_fill.c app/convert.c app/crop.c app/cursorutil.c

Sun Jan 17 16:56:25 GMT 1999 Adam D. Moss <adam@gimp.org>

        * app/blend.c app/bucket_fill.c app/convert.c app/crop.c
        app/cursorutil.c app/cursorutil.h app/dialog_handler.c
        app/dialog_handler.h app/fuzzy_select.c app/gdisplay.c
        app/gimage_cmds.c app/gimpimage.c app/scroll.c
        app/transform_core.c app/xcf.c

	Hourglasses also apply to all registered dialogs.  Hourglasses
	added in a couple more important places.  New hack lets
	hourglasses be added and automagically removed again when
	gimp/gtk re-enters the idle loop.
parent 1ee01656
Sun Jan 17 16:56:25 GMT 1999 Adam D. Moss <adam@gimp.org>
* app/blend.c app/bucket_fill.c app/convert.c app/crop.c
app/cursorutil.c app/cursorutil.h app/dialog_handler.c
app/dialog_handler.h app/fuzzy_select.c app/gdisplay.c
app/gimage_cmds.c app/gimpimage.c app/scroll.c
app/transform_core.c app/xcf.c
Hourglasses also apply to all registered dialogs. Hourglasses
added in a couple more important places. New hack lets
hourglasses be added and automagically removed again when
gimp/gtk re-enters the idle loop.
Sat Jan 16 18:21:58 GMT 1999 Austin Donnelly <austin@greenend.org.uk>
* plug-ins/jpeg/jpeg.c: re-wrote the gimp-comment stuff so it
......
......@@ -864,7 +864,7 @@ blend (GImage *gimage,
/* free the temporary buffer */
tile_manager_destroy (buf_tiles);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
}
......
......@@ -537,7 +537,7 @@ bucket_fill (gimage, drawable, fill_mode, paint_mode,
if (new_buf)
temp_buf_free (pat_buf);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
}
......
......@@ -919,7 +919,7 @@ convert_image (GImage *gimage,
gimp_image_colormap_changed (gimage, -1);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
}
static void
......
......@@ -864,7 +864,7 @@ blend (GImage *gimage,
/* free the temporary buffer */
tile_manager_destroy (buf_tiles);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
}
......
......@@ -919,7 +919,7 @@ convert_image (GImage *gimage,
gimp_image_colormap_changed (gimage, -1);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
}
static void
......
......@@ -399,7 +399,7 @@ gimp_image_resize (GimpImage *gimage, int new_width, int new_height,
gtk_signal_emit (GTK_OBJECT (gimage), gimp_image_signals[RESIZE]);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
}
......@@ -458,6 +458,8 @@ gimp_image_scale (GimpImage *gimage, int new_width, int new_height)
list = g_slist_next (list);
}
#warning NEED TO SCALE GUIDES ALSO
/* Make sure the projection matches the gimage size */
gimp_image_projection_realloc (gimage);
......@@ -467,7 +469,7 @@ gimp_image_scale (GimpImage *gimage, int new_width, int new_height)
gtk_signal_emit (GTK_OBJECT (gimage), gimp_image_signals[RESIZE]);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
}
......@@ -936,7 +938,8 @@ gimp_image_get_new_tattoo(GimpImage *image)
}
void
gimp_image_colormap_changed (GimpImage *image, gint col){
gimp_image_colormap_changed (GimpImage *image, gint col)
{
g_return_if_fail (image);
g_return_if_fail (col < image->num_cols);
gtk_signal_emit (GTK_OBJECT(image),
......@@ -1302,7 +1305,7 @@ gimp_image_construct (GimpImage *gimage, int x, int y, int w, int h)
* has been written to the gimage raw image yet.
*/
gimage->construct_flag = 0;
/* First, determine if the projection image needs to be
* initialized--this is the case when there are no visible
* layers that cover the entire canvas--either because layers
......@@ -1394,6 +1397,8 @@ gimp_image_validate (TileManager *tm, Tile *tile)
int x, y;
int w, h;
gimp_add_busy_cursors_until_idle();
/* Get the gimage from the tilemanager */
gimage = (GimpImage *) tile_manager_get_user_data (tm);
......@@ -2010,7 +2015,7 @@ gimp_image_merge_visible_layers (GimpImage *gimage, MergeType merge_type)
gimp_add_busy_cursors();
layer = gimp_image_merge_layers (gimage, merge_list, merge_type);
g_slist_free (merge_list);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
return layer;
}
else
......@@ -2044,7 +2049,7 @@ gimp_image_flatten (GimpImage *gimage)
layer = gimp_image_merge_layers (gimage, merge_list, FlattenImage);
g_slist_free (merge_list);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
return layer;
}
......@@ -2088,7 +2093,7 @@ gimp_image_merge_down (GimpImage *gimage,
gimp_add_busy_cursors();
layer = gimp_image_merge_layers (gimage, merge_list, merge_type);
g_slist_free (merge_list);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
return layer;
}
else
......
......@@ -399,7 +399,7 @@ gimp_image_resize (GimpImage *gimage, int new_width, int new_height,
gtk_signal_emit (GTK_OBJECT (gimage), gimp_image_signals[RESIZE]);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
}
......@@ -458,6 +458,8 @@ gimp_image_scale (GimpImage *gimage, int new_width, int new_height)
list = g_slist_next (list);
}
#warning NEED TO SCALE GUIDES ALSO
/* Make sure the projection matches the gimage size */
gimp_image_projection_realloc (gimage);
......@@ -467,7 +469,7 @@ gimp_image_scale (GimpImage *gimage, int new_width, int new_height)
gtk_signal_emit (GTK_OBJECT (gimage), gimp_image_signals[RESIZE]);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
}
......@@ -936,7 +938,8 @@ gimp_image_get_new_tattoo(GimpImage *image)
}
void
gimp_image_colormap_changed (GimpImage *image, gint col){
gimp_image_colormap_changed (GimpImage *image, gint col)
{
g_return_if_fail (image);
g_return_if_fail (col < image->num_cols);
gtk_signal_emit (GTK_OBJECT(image),
......@@ -1302,7 +1305,7 @@ gimp_image_construct (GimpImage *gimage, int x, int y, int w, int h)
* has been written to the gimage raw image yet.
*/
gimage->construct_flag = 0;
/* First, determine if the projection image needs to be
* initialized--this is the case when there are no visible
* layers that cover the entire canvas--either because layers
......@@ -1394,6 +1397,8 @@ gimp_image_validate (TileManager *tm, Tile *tile)
int x, y;
int w, h;
gimp_add_busy_cursors_until_idle();
/* Get the gimage from the tilemanager */
gimage = (GimpImage *) tile_manager_get_user_data (tm);
......@@ -2010,7 +2015,7 @@ gimp_image_merge_visible_layers (GimpImage *gimage, MergeType merge_type)
gimp_add_busy_cursors();
layer = gimp_image_merge_layers (gimage, merge_list, merge_type);
g_slist_free (merge_list);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
return layer;
}
else
......@@ -2044,7 +2049,7 @@ gimp_image_flatten (GimpImage *gimage)
layer = gimp_image_merge_layers (gimage, merge_list, FlattenImage);
g_slist_free (merge_list);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
return layer;
}
......@@ -2088,7 +2093,7 @@ gimp_image_merge_down (GimpImage *gimage,
gimp_add_busy_cursors();
layer = gimp_image_merge_layers (gimage, merge_list, merge_type);
g_slist_free (merge_list);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
return layer;
}
else
......
......@@ -399,7 +399,7 @@ gimp_image_resize (GimpImage *gimage, int new_width, int new_height,
gtk_signal_emit (GTK_OBJECT (gimage), gimp_image_signals[RESIZE]);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
}
......@@ -458,6 +458,8 @@ gimp_image_scale (GimpImage *gimage, int new_width, int new_height)
list = g_slist_next (list);
}
#warning NEED TO SCALE GUIDES ALSO
/* Make sure the projection matches the gimage size */
gimp_image_projection_realloc (gimage);
......@@ -467,7 +469,7 @@ gimp_image_scale (GimpImage *gimage, int new_width, int new_height)
gtk_signal_emit (GTK_OBJECT (gimage), gimp_image_signals[RESIZE]);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
}
......@@ -936,7 +938,8 @@ gimp_image_get_new_tattoo(GimpImage *image)
}
void
gimp_image_colormap_changed (GimpImage *image, gint col){
gimp_image_colormap_changed (GimpImage *image, gint col)
{
g_return_if_fail (image);
g_return_if_fail (col < image->num_cols);
gtk_signal_emit (GTK_OBJECT(image),
......@@ -1302,7 +1305,7 @@ gimp_image_construct (GimpImage *gimage, int x, int y, int w, int h)
* has been written to the gimage raw image yet.
*/
gimage->construct_flag = 0;
/* First, determine if the projection image needs to be
* initialized--this is the case when there are no visible
* layers that cover the entire canvas--either because layers
......@@ -1394,6 +1397,8 @@ gimp_image_validate (TileManager *tm, Tile *tile)
int x, y;
int w, h;
gimp_add_busy_cursors_until_idle();
/* Get the gimage from the tilemanager */
gimage = (GimpImage *) tile_manager_get_user_data (tm);
......@@ -2010,7 +2015,7 @@ gimp_image_merge_visible_layers (GimpImage *gimage, MergeType merge_type)
gimp_add_busy_cursors();
layer = gimp_image_merge_layers (gimage, merge_list, merge_type);
g_slist_free (merge_list);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
return layer;
}
else
......@@ -2044,7 +2049,7 @@ gimp_image_flatten (GimpImage *gimage)
layer = gimp_image_merge_layers (gimage, merge_list, FlattenImage);
g_slist_free (merge_list);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
return layer;
}
......@@ -2088,7 +2093,7 @@ gimp_image_merge_down (GimpImage *gimage,
gimp_add_busy_cursors();
layer = gimp_image_merge_layers (gimage, merge_list, merge_type);
g_slist_free (merge_list);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
return layer;
}
else
......
......@@ -399,7 +399,7 @@ gimp_image_resize (GimpImage *gimage, int new_width, int new_height,
gtk_signal_emit (GTK_OBJECT (gimage), gimp_image_signals[RESIZE]);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
}
......@@ -458,6 +458,8 @@ gimp_image_scale (GimpImage *gimage, int new_width, int new_height)
list = g_slist_next (list);
}
#warning NEED TO SCALE GUIDES ALSO
/* Make sure the projection matches the gimage size */
gimp_image_projection_realloc (gimage);
......@@ -467,7 +469,7 @@ gimp_image_scale (GimpImage *gimage, int new_width, int new_height)
gtk_signal_emit (GTK_OBJECT (gimage), gimp_image_signals[RESIZE]);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
}
......@@ -936,7 +938,8 @@ gimp_image_get_new_tattoo(GimpImage *image)
}
void
gimp_image_colormap_changed (GimpImage *image, gint col){
gimp_image_colormap_changed (GimpImage *image, gint col)
{
g_return_if_fail (image);
g_return_if_fail (col < image->num_cols);
gtk_signal_emit (GTK_OBJECT(image),
......@@ -1302,7 +1305,7 @@ gimp_image_construct (GimpImage *gimage, int x, int y, int w, int h)
* has been written to the gimage raw image yet.
*/
gimage->construct_flag = 0;
/* First, determine if the projection image needs to be
* initialized--this is the case when there are no visible
* layers that cover the entire canvas--either because layers
......@@ -1394,6 +1397,8 @@ gimp_image_validate (TileManager *tm, Tile *tile)
int x, y;
int w, h;
gimp_add_busy_cursors_until_idle();
/* Get the gimage from the tilemanager */
gimage = (GimpImage *) tile_manager_get_user_data (tm);
......@@ -2010,7 +2015,7 @@ gimp_image_merge_visible_layers (GimpImage *gimage, MergeType merge_type)
gimp_add_busy_cursors();
layer = gimp_image_merge_layers (gimage, merge_list, merge_type);
g_slist_free (merge_list);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
return layer;
}
else
......@@ -2044,7 +2049,7 @@ gimp_image_flatten (GimpImage *gimage)
layer = gimp_image_merge_layers (gimage, merge_list, FlattenImage);
g_slist_free (merge_list);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
return layer;
}
......@@ -2088,7 +2093,7 @@ gimp_image_merge_down (GimpImage *gimage,
gimp_add_busy_cursors();
layer = gimp_image_merge_layers (gimage, merge_list, merge_type);
g_slist_free (merge_list);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
return layer;
}
else
......
......@@ -399,7 +399,7 @@ gimp_image_resize (GimpImage *gimage, int new_width, int new_height,
gtk_signal_emit (GTK_OBJECT (gimage), gimp_image_signals[RESIZE]);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
}
......@@ -458,6 +458,8 @@ gimp_image_scale (GimpImage *gimage, int new_width, int new_height)
list = g_slist_next (list);
}
#warning NEED TO SCALE GUIDES ALSO
/* Make sure the projection matches the gimage size */
gimp_image_projection_realloc (gimage);
......@@ -467,7 +469,7 @@ gimp_image_scale (GimpImage *gimage, int new_width, int new_height)
gtk_signal_emit (GTK_OBJECT (gimage), gimp_image_signals[RESIZE]);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
}
......@@ -936,7 +938,8 @@ gimp_image_get_new_tattoo(GimpImage *image)
}
void
gimp_image_colormap_changed (GimpImage *image, gint col){
gimp_image_colormap_changed (GimpImage *image, gint col)
{
g_return_if_fail (image);
g_return_if_fail (col < image->num_cols);
gtk_signal_emit (GTK_OBJECT(image),
......@@ -1302,7 +1305,7 @@ gimp_image_construct (GimpImage *gimage, int x, int y, int w, int h)
* has been written to the gimage raw image yet.
*/
gimage->construct_flag = 0;
/* First, determine if the projection image needs to be
* initialized--this is the case when there are no visible
* layers that cover the entire canvas--either because layers
......@@ -1394,6 +1397,8 @@ gimp_image_validate (TileManager *tm, Tile *tile)
int x, y;
int w, h;
gimp_add_busy_cursors_until_idle();
/* Get the gimage from the tilemanager */
gimage = (GimpImage *) tile_manager_get_user_data (tm);
......@@ -2010,7 +2015,7 @@ gimp_image_merge_visible_layers (GimpImage *gimage, MergeType merge_type)
gimp_add_busy_cursors();
layer = gimp_image_merge_layers (gimage, merge_list, merge_type);
g_slist_free (merge_list);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
return layer;
}
else
......@@ -2044,7 +2049,7 @@ gimp_image_flatten (GimpImage *gimage)
layer = gimp_image_merge_layers (gimage, merge_list, FlattenImage);
g_slist_free (merge_list);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
return layer;
}
......@@ -2088,7 +2093,7 @@ gimp_image_merge_down (GimpImage *gimage,
gimp_add_busy_cursors();
layer = gimp_image_merge_layers (gimage, merge_list, merge_type);
g_slist_free (merge_list);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
return layer;
}
else
......
......@@ -399,7 +399,7 @@ gimp_image_resize (GimpImage *gimage, int new_width, int new_height,
gtk_signal_emit (GTK_OBJECT (gimage), gimp_image_signals[RESIZE]);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
}
......@@ -458,6 +458,8 @@ gimp_image_scale (GimpImage *gimage, int new_width, int new_height)
list = g_slist_next (list);
}
#warning NEED TO SCALE GUIDES ALSO
/* Make sure the projection matches the gimage size */
gimp_image_projection_realloc (gimage);
......@@ -467,7 +469,7 @@ gimp_image_scale (GimpImage *gimage, int new_width, int new_height)
gtk_signal_emit (GTK_OBJECT (gimage), gimp_image_signals[RESIZE]);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
}
......@@ -936,7 +938,8 @@ gimp_image_get_new_tattoo(GimpImage *image)
}
void
gimp_image_colormap_changed (GimpImage *image, gint col){
gimp_image_colormap_changed (GimpImage *image, gint col)
{
g_return_if_fail (image);
g_return_if_fail (col < image->num_cols);
gtk_signal_emit (GTK_OBJECT(image),
......@@ -1302,7 +1305,7 @@ gimp_image_construct (GimpImage *gimage, int x, int y, int w, int h)
* has been written to the gimage raw image yet.
*/
gimage->construct_flag = 0;
/* First, determine if the projection image needs to be
* initialized--this is the case when there are no visible
* layers that cover the entire canvas--either because layers
......@@ -1394,6 +1397,8 @@ gimp_image_validate (TileManager *tm, Tile *tile)
int x, y;
int w, h;
gimp_add_busy_cursors_until_idle();
/* Get the gimage from the tilemanager */
gimage = (GimpImage *) tile_manager_get_user_data (tm);
......@@ -2010,7 +2015,7 @@ gimp_image_merge_visible_layers (GimpImage *gimage, MergeType merge_type)
gimp_add_busy_cursors();
layer = gimp_image_merge_layers (gimage, merge_list, merge_type);
g_slist_free (merge_list);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
return layer;
}
else
......@@ -2044,7 +2049,7 @@ gimp_image_flatten (GimpImage *gimage)
layer = gimp_image_merge_layers (gimage, merge_list, FlattenImage);
g_slist_free (merge_list);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
return layer;
}
......@@ -2088,7 +2093,7 @@ gimp_image_merge_down (GimpImage *gimage,
gimp_add_busy_cursors();
layer = gimp_image_merge_layers (gimage, merge_list, merge_type);
g_slist_free (merge_list);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
return layer;
}
else
......
......@@ -399,7 +399,7 @@ gimp_image_resize (GimpImage *gimage, int new_width, int new_height,
gtk_signal_emit (GTK_OBJECT (gimage), gimp_image_signals[RESIZE]);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
}
......@@ -458,6 +458,8 @@ gimp_image_scale (GimpImage *gimage, int new_width, int new_height)
list = g_slist_next (list);
}
#warning NEED TO SCALE GUIDES ALSO
/* Make sure the projection matches the gimage size */
gimp_image_projection_realloc (gimage);
......@@ -467,7 +469,7 @@ gimp_image_scale (GimpImage *gimage, int new_width, int new_height)
gtk_signal_emit (GTK_OBJECT (gimage), gimp_image_signals[RESIZE]);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
}
......@@ -936,7 +938,8 @@ gimp_image_get_new_tattoo(GimpImage *image)
}
void
gimp_image_colormap_changed (GimpImage *image, gint col){
gimp_image_colormap_changed (GimpImage *image, gint col)
{
g_return_if_fail (image);
g_return_if_fail (col < image->num_cols);
gtk_signal_emit (GTK_OBJECT(image),
......@@ -1302,7 +1305,7 @@ gimp_image_construct (GimpImage *gimage, int x, int y, int w, int h)
* has been written to the gimage raw image yet.
*/
gimage->construct_flag = 0;
/* First, determine if the projection image needs to be
* initialized--this is the case when there are no visible
* layers that cover the entire canvas--either because layers
......@@ -1394,6 +1397,8 @@ gimp_image_validate (TileManager *tm, Tile *tile)
int x, y;
int w, h;
gimp_add_busy_cursors_until_idle();
/* Get the gimage from the tilemanager */
gimage = (GimpImage *) tile_manager_get_user_data (tm);
......@@ -2010,7 +2015,7 @@ gimp_image_merge_visible_layers (GimpImage *gimage, MergeType merge_type)
gimp_add_busy_cursors();
layer = gimp_image_merge_layers (gimage, merge_list, merge_type);
g_slist_free (merge_list);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
return layer;
}
else
......@@ -2044,7 +2049,7 @@ gimp_image_flatten (GimpImage *gimage)
layer = gimp_image_merge_layers (gimage, merge_list, FlattenImage);
g_slist_free (merge_list);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
return layer;
}
......@@ -2088,7 +2093,7 @@ gimp_image_merge_down (GimpImage *gimage,
gimp_add_busy_cursors();
layer = gimp_image_merge_layers (gimage, merge_list, merge_type);
g_slist_free (merge_list);
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
return layer;
}
else
......
......@@ -1605,8 +1605,6 @@ gdisplays_update_area (GimpImage* gimage,
/* int x1, y1, x2, y2; */
/* int count = 0; */
/* printf("GDUA%p:%d,%d:%dx%d ", gimage,x,y,w,h);fflush(stdout);*/
/* traverse the linked list of displays */
while (list)
{
......@@ -1894,11 +1892,8 @@ gdisplay_reconnect (GDisplay *gdisp, GimpImage *gimage)
if (gdisp->idle_render.active)
{
printf(_("Deleted idlerendering gdisp %p...\n"), gdisp); fflush(stdout);
printf(_("\tIdlerender stops now!\n")); fflush(stdout);
gtk_idle_remove (gdisp->idle_render.idleid);
gdisp->idle_render.active = FALSE;
printf(_("\tDeletion finished.\n")); fflush(stdout);
}
gimage_delete (gdisp->gimage);
......
......@@ -751,7 +751,7 @@ crop_image (GImage *gimage,
gdisplays_update_full (gimage);
gdisplays_shrink_wrap (gimage);
}
gimp_remove_busy_cursors();
gimp_remove_busy_cursors(NULL);
gdisplays_flush ();
}
}
......
......@@ -17,9 +17,13 @@
*/
#include "appenv.h"
#include "cursorutil.h"
#include "dialog_handler.h"
#include "gdisplay.h" /* for gdisplay_*_override_cursor() */
extern GSList* display_list; /* It's in gdisplay.c, FYI */
static gboolean pending_removebusy = FALSE;
void
change_win_cursor (win, cursortype)
......@@ -40,12 +44,25 @@ unset_win_cursor (win)
gdk_window_set_cursor (win, NULL);
}
void
gimp_add_busy_cursors_until_idle (void)
{
if (!pending_removebusy)
{
gimp_add_busy_cursors();
gtk_idle_add_priority (GTK_PRIORITY_HIGH,
gimp_remove_busy_cursors, NULL);
pending_removebusy = TRUE;
}
}
void
gimp_add_busy_cursors (void)
{
GDisplay *gdisp;
GSList *list = display_list;
/* Canvases */
while (list)
{
gdisp = (GDisplay *) list->data;
......@@ -53,15 +70,20 @@ gimp_add_busy_cursors (void)
list = g_slist_next (list);
}
/* Dialogs */
dialog_idle_all();
gdk_flush();
}
void
gimp_remove_busy_cursors (void)
int
gimp_remove_busy_cursors (gpointer data)
{
GDisplay *gdisp;
GSList *list = display_list;
/* Canvases */
while (list)