removed the gimp_busy boolean, check whether user_installation is needed

2001-07-10  Michael Natterer  <mitch@gimp.org>

	* app/app_procs.[ch]: removed the gimp_busy boolean, check whether
	user_installation is needed here, not in user_install.c, parse
	gtkrc an friends only if(!no_interface), create the Gimp object
	before parsing gimp's rc files an pas it to the parse functions,
	many other cleanups.

	* app/appenums.h: added MessageHandlerType and StackTraceMode.

	* app/appenv.h: removed MessageHandlerType, declare all global
	variables from main.c (no more hidden global stuff please).

	* app/errors.[ch]: added the fatal message func here (from main.c),
	removed the StackTraceMode enum.

	* app/gimprc.[ch]: renamed functions to gimprc_*(), pass a Gimp
	pointer to some functions.

	* app/gimpunit.c
	* app/unitrc.h: ok, this is ugly: renamed all functions to
	_gimp_unit_*() and made them public. The unit list is part
	of the Gimp object now, so pass a Gimp* to all functions.

	* app/libgimp_glue.[ch]: added EEKy wrappers for all gimp_unit_*()
	functions which are used by widgets.

	* app/main.c: cleaned up the global variables, removed the fatal
	message handler, call app_init() directly, not via the
	user_install stuff, misc. cleanups.

	* app/user_install.[ch]: removed the check if user_installation is
	needed (done by app_procs.c now).

	* app/core/gimp.[ch]: added the user_unit list and the "busy"
	boolean. Moved gimp_[set|unset]_busy() here. Added
	gimp_initialize() which is called after unitrc and gimprc are
	parsed.

	* app/batch.c
	* app/colormaps.c
	* app/devices.c
	* app/disp_callbacks.c
	* app/gdisplay_ops.c
	* app/gimphelp.c
	* app/module_db.c
	* app/nav_window.c
	* app/plug_in.c
	* app/core/gimpcontext.c
	* app/core/gimpdatafiles.c
	* app/core/gimpimage-convert.c
	* app/core/gimpimage-duplicate.c
	* app/core/gimpimage.c
	* app/core/gimpparasite.c
	* app/core/gimpparasitelist.h
	* app/gui/file-open-dialog.c
	* app/gui/gui.[ch]
	* app/gui/info-dialog.c
	* app/gui/info-window.c
	* app/gui/preferences-dialog.c
	* app/gui/session.c
	* app/gui/tips-dialog.c
	* app/gui/toolbox.c
	* app/tools/gimpblendtool.c
	* app/tools/gimpbucketfilltool.c
	* app/tools/gimpcolorpickertool.c
	* app/tools/gimpfuzzyselecttool.c
	* app/tools/gimptransformtool.c
	* app/tools/tool_manager.c
	* app/widgets/gimpcolorpanel.c
	* app/widgets/gimpcursor.c
	* app/xcf/xcf-load.c
	* app/xcf/xcf-save.c
	* app/xcf/xcf.c
	* tools/pdbgen/Makefile.am
	* tools/pdbgen/app.pl
	* tools/pdbgen/enums.pl
	* tools/pdbgen/pdb/image.pdb
	* tools/pdbgen/pdb/message.pdb
	* tools/pdbgen/pdb/unit.pdb
	* app/pdb/image_cmds.c
	* app/pdb/message_cmds.c
	* app/pdb/unit_cmds.c: changed accordingly, minor cleanups.
This commit is contained in:
Michael Natterer
2001-07-10 19:16:16 +00:00
committed by Michael Natterer
parent d7fde9e68d
commit 9d87e554de
119 changed files with 1503 additions and 1152 deletions

View File

@ -53,7 +53,6 @@
#include "gimpparasitelist.h"
#include "gimpundostack.h"
#include "app_procs.h"
#include "floating_sel.h"
#include "gdisplay.h"
#include "path.h"
@ -767,7 +766,7 @@ gimp_image_resize (GimpImage *gimage,
GList *list;
GList *guide_list;
gimp_set_busy ();
gimp_set_busy (gimage->gimp);
g_assert (new_width > 0 && new_height > 0);
@ -853,7 +852,7 @@ gimp_image_resize (GimpImage *gimage,
gimp_viewable_size_changed (GIMP_VIEWABLE (gimage));
gimp_unset_busy ();
gimp_unset_busy (gimage->gimp);
}
void
@ -880,7 +879,7 @@ gimp_image_scale (GimpImage *gimage,
return;
}
gimp_set_busy ();
gimp_set_busy (gimage->gimp);
/* Get the floating layer if one exists */
floating_layer = gimp_image_floating_sel (gimage);
@ -981,7 +980,7 @@ gimp_image_scale (GimpImage *gimage,
gimp_viewable_size_changed (GIMP_VIEWABLE (gimage));
gimp_unset_busy ();
gimp_unset_busy (gimage->gimp);
}
/**
@ -2341,11 +2340,11 @@ gimp_image_validate (TileManager *tm,
gint x, y;
gint w, h;
gimp_set_busy_until_idle ();
/* Get the gimage from the tilemanager */
gimage = (GimpImage *) tile_manager_get_user_data (tm);
gimp_set_busy_until_idle (gimage->gimp);
/* Find the coordinates of this tile */
tile_manager_get_tile_coordinates (tm, tile, &x, &y);
w = tile_ewidth (tile);
@ -3021,12 +3020,12 @@ gimp_image_merge_visible_layers (GimpImage *gimage,
if (merge_list && merge_list->next)
{
gimp_set_busy ();
gimp_set_busy (gimage->gimp);
layer = gimp_image_merge_layers (gimage, merge_list, merge_type);
g_slist_free (merge_list);
gimp_unset_busy ();
gimp_unset_busy (gimage->gimp);
return layer;
}
@ -3054,7 +3053,7 @@ gimp_image_flatten (GimpImage *gimage)
g_return_val_if_fail (GIMP_IS_IMAGE (gimage), NULL);
gimp_set_busy ();
gimp_set_busy (gimage->gimp);
/* if there's a floating selection, anchor it */
if (gimp_image_floating_sel (gimage))
@ -3075,7 +3074,7 @@ gimp_image_flatten (GimpImage *gimage)
gimp_image_alpha_changed (gimage);
gimp_unset_busy ();
gimp_unset_busy (gimage->gimp);
return layer;
}
@ -3116,12 +3115,12 @@ gimp_image_merge_down (GimpImage *gimage,
{
merge_list = g_slist_prepend (merge_list, current_layer);
gimp_set_busy ();
gimp_set_busy (gimage->gimp);
layer = gimp_image_merge_layers (gimage, merge_list, merge_type);
g_slist_free (merge_list);
gimp_unset_busy ();
gimp_unset_busy (gimage->gimp);
return layer;
}