1. 13 Sep, 2004 1 commit
    • Michael Natterer's avatar
      configure.in added new directory app/dialogs and link libappdialogs.c into · 7d065360
      Michael Natterer authored
      2004-09-13  Michael Natterer  <mitch@gimp.org>
      
      	* configure.in
      	* app/Makefile.am: added new directory app/dialogs and link
      	libappdialogs.c into the gimp binary.
      
      	* app/gui/Makefile.am
      	* app/gui/gui-types.h
      	* app/gui/gui-vtable.c
      	* app/gui/gui.c
      
      	* app/gui/about-dialog.[ch]
      	* app/gui/authors.h
      	* app/gui/color-notebook.[ch]
      	* app/gui/convert-dialog.[ch]
      	* app/gui/dialogs-constructors.[ch]
      	* app/gui/dialogs.[ch]
      	* app/gui/file-dialog-utils.[ch]
      	* app/gui/file-new-dialog.[ch]
      	* app/gui/file-open-dialog.[ch]
      	* app/gui/file-open-location-dialog.[ch]
      	* app/gui/file-save-dialog.[ch]
      	* app/gui/grid-dialog.[ch]
      	* app/gui/info-dialog.[ch]
      	* app/gui/info-window.[ch]
      	* app/gui/module-browser.[ch]
      	* app/gui/offset-dialog.[ch]
      	* app/gui/palette-import-dialog.[ch]
      	* app/gui/preferences-dialog.[ch]
      	* app/gui/quit-dialog.[ch]
      	* app/gui/resize-dialog.[ch]
      	* app/gui/resolution-calibrate-dialog.[ch]
      	* app/gui/stroke-dialog.[ch]
      	* app/gui/tips-dialog.[ch]
      	* app/gui/tips-parser.[ch]
      	* app/gui/user-install-dialog.[ch]: removed these files...
      
      	* app/dialogs/Makefile.am
      	* app/dialogs/dialogs-types.h
      
      	* app/dialogs/*.[ch]: ...and added them here. Changed some
      	filenames like module-browser -> module-dialog.
      
      	* app/app_procs.c
      	* app/actions/actions-types.h
      	* app/actions/actions.c
      	* app/actions/dialogs-actions.c
      	* app/actions/dialogs-commands.c
      	* app/actions/dockable-commands.c
      	* app/actions/drawable-commands.c
      	* app/actions/edit-commands.c
      	* app/actions/file-commands.c
      	* app/actions/gradient-editor-commands.c
      	* app/actions/image-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/palettes-commands.c
      	* app/actions/select-commands.c
      	* app/actions/templates-commands.c
      	* app/actions/templates-commands.h
      	* app/actions/vectors-commands.c
      	* app/actions/view-commands.c
      	* app/display/gimpdisplayshell-cursor.c
      	* app/display/gimpdisplayshell-title.c
      	* app/display/gimpdisplayshell.[ch]
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpperspectivetool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimpsheartool.c
      	* app/tools/gimptransformtool.[ch]
      	* app/tools/gimpvectortool.c
      	* app/widgets/gimpcolormapeditor.[ch]
      	* app/widgets/gimpcolorpanel.c
      	* app/widgets/gimpgradienteditor.[ch]
      	* app/widgets/gimppaletteeditor.[ch]
      	* app/widgets/gimptoolbox-color-area.c
      	* menus/toolbox-menu.xml.in
      	* tools/authorsgen/authorsgen.pl: changed accordingly.
      7d065360
  2. 10 Aug, 2004 1 commit
    • Michael Natterer's avatar
      Redid the whole internal progress stuff: don't pass around · 02d2b990
      Michael Natterer authored
      2004-08-10  Michael Natterer  <mitch@gimp.org>
      
      	Redid the whole internal progress stuff: don't pass around
      	progress_callback and progress_data; instead, provide a
      	pointer to a GimpProgressInterface which can be implemented
      	by a variety of backends.
      
      	Addresses (but not yet fixes) bugs #6010, #97266 and #135185.
      
      	* app/display/Makefile.am
      	* app/display/gimpprogress.[ch]: removed the old progress hack.
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpprogress.[ch]: implement GimpProgressInterface.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpprogressdialog.[ch]: the standalone progress
      	dialog as widget implementing GimpProgressInterface.
      
      	* app/display/gimpdisplay.c
      	* app/display/gimpstatusbar.[ch]
      	* app/widgets/gimpfiledialog.[ch]
      	* app/widgets/gimpthumbbox.[ch]: added GimpProgressInterface
      	implementation to these classes.
      
      	* app/core/gimp-gui.[ch]
      	* app/gui/gui-vtable.c: replaced the old progress vtable entries
      	by two new to create and destroy a GimpProgressDialog in case
      	no other progress is available.
      
      	* app/pdb/procedural_db.[ch]
      	* app/plug-in/plug-in-run.[ch]
      	* tools/pdbgen/app.pl: pass a GimpProgress to all PDB wrappers and
      	all plug-ins.
      
      	* app/plug-in/plug-in.[ch]
      	* app/plug-in/plug-ins.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-progress.c: handle the case there the
      	plug-in was crated with a progress as well as the case where it
      	wasn't.
      
      	* app/app_procs.c
      	* app/batch.c
      	* app/xcf/xcf.c
      	* app/file/file-open.[ch]
      	* app/file/file-save.[ch]
      	* app/widgets/gimphelp.c
      	* app/widgets/gimpbrushselect.c
      	* app/widgets/gimpfontselect.c
      	* app/widgets/gimpgradientselect.c
      	* app/widgets/gimppaletteselect.c
      	* app/widgets/gimppatternselect.c: changed accordingly.
      
      	* app/core/gimpimagefile.[ch]
      	* app/display/gimpdisplayshell-dnd.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-open-location-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimptoolbox-dnd.c: pass a GimpProgress to all file
      	related functions. Embed the progress in the file dialog where
      	possible.
      
      	* app/core/gimpdrawable-blend.[ch]
      	* app/core/gimpdrawable-transform.[ch]
      	* app/core/gimpimage-convert.[ch]
      	* app/core/gimpimage-flip.[ch]
      	* app/core/gimpimage-resize.[ch]
      	* app/core/gimpimage-rotate.[ch]
      	* app/core/gimpimage-scale.[ch]
      	* app/core/gimpitem-linked.[ch]
      	* app/core/gimpitem.[ch]
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable.c
      	* app/core/gimplayer.c
      	* app/core/gimpselection.c
      	* app/vectors/gimpvectors.c: replaced callback/data by GimpProgress.
      
      	* app/tools/gimpblendtool.c
      	* app/tools/gimptransformtool.c
      	* app/gui/convert-dialog.c
      	* app/actions/documents-commands.c
      	* app/actions/file-commands.c
      	* app/actions/image-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/plug-in-commands.c
      	* app/actions/vectors-commands.c
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb: changed callers accordingly.
      
      	* app/pdb/*_cmds.c: regenerated.
      02d2b990
  3. 01 Aug, 2004 1 commit
    • Hans Breuer's avatar
      build but *dont link* display-enums.obj, widget-enums.obj and · 3b303914
      Hans Breuer authored
      2004-07-31  Hans Breuer  <hans@breuer.org>
      
      	* app/display/makefile.msc app/widgets/makefile.msc : build
      	but *dont link* display-enums.obj, widget-enums.obj and
      	gimpdisplayoptions.obj. They must be in the dll
      	* app/makefile.msc : build gimp.exe and gimp-console.exe both
      	using the same gimp-core.dll
      	* app/gimpcore.def : new file, exports for gimp-core.dll
      	* app/Makefile.am : added to EXTRA_DIST
      
      	* cursors/makefile.msc : new file to create gimp-tool-cursors.h
      	* cursors/Makefile.am : added to EXTRA_DIST
      
      	* **/makefile.msc : updated
      
      	* app/main.c app/app_procs.c : moved code to close the console
      	from the former to the later. It only is to be used if The Gimp
      	is not build as console app.
      
      	* plug-ins/gfig/gfig.c : dont gimp_drawable_detach() the same
      	drawable twice
      	* plug-ins/gfig-dialog.c() : added a g_return_if_fail() to avoid
      	crashing on File/Import
      3b303914
  4. 26 Jul, 2004 1 commit
  5. 20 Jul, 2004 1 commit
  6. 15 Jul, 2004 2 commits
  7. 14 Jul, 2004 1 commit
  8. 12 Jul, 2004 3 commits
    • Michael Schumacher's avatar
      added #ifdef G_OS_WIN32 #include <windows.h> #endif · d2b7bdc7
      Michael Schumacher authored
      2004-07-12  Michael Schumacher <schumaml@cvs.gnome.org>
      
      	* app/app_procs.c: added
      	#ifdef G_OS_WIN32
      	#include <windows.h>
      	#endif
      d2b7bdc7
    • Michael Natterer's avatar
      Made the gimp-console binary compile. Finishes core/GUI separation and · 84c29b48
      Michael Natterer authored
      2004-07-12  Michael Natterer  <mitch@gimp.org>
      
      	Made the gimp-console binary compile.
      	Finishes core/GUI separation and fixes bug #71514:
      
      	* configure.in: removed the crazy-hacker warning for
      	--enable-gimp-console.
      
      	* app/Makefile.am: for gimp-console, copy app_procs.c to
      	app_procs_console.c and compile it instead of app_procs.c with
      	-DGIMP_CONSOLE_COMPILATION
      
      	* app/app_procs.[ch]: added some #ifndef GIMP_CONSOLE_COMPILATION
      	to skip GUI stuff for the gimp-console case.
      	Renamed app_gui_libs_init() to app_libs_init(), renamed
      	app_gui_abort() to app_abort() and added app_exit() so everything
      	that needs #ifdefs lives here now.
      
      	* app/main.c: changed accordingly.
      
      	* app/gui/gui.c (gui_abort): really abort (call exit()).
      84c29b48
    • Sven Neumann's avatar
      don't use gtk_main() / gtk_main_quit() but run our own main-loop like we · 3b553547
      Sven Neumann authored
      2004-07-12  Sven Neumann  <sven@gimp.org>
      
      	* app/app_procs.s: don't use gtk_main() / gtk_main_quit() but run
      	our own main-loop like we already used to do when being run
      	non-interactively.
      3b553547
  9. 14 Apr, 2004 1 commit
    • Michael Natterer's avatar
      Get rid of the "current_context" which was in fact just a bunch of global · 18d9161e
      Michael Natterer authored
      2004-04-15  Michael Natterer  <mitch@gimp.org>
      
      	Get rid of the "current_context" which was in fact just a bunch of
      	global variables. Instead, pass the needed context all the way
      	from the GUI and the PDB to the core. This is a prerequisite for
      	macro recording and generally helps separating the various
      	subsystems from each other. Work in progress...
      
      	* app/core/gimp.[ch]: removed member "current_context" and
      	gimp_[get|set]_current_context().
      
      	* app/core/gimp-edit.[ch]
      	* app/core/gimpdrawable-blend.[ch]
      	* app/core/gimpdrawable-bucket-fill.[ch]
      	* app/core/gimpdrawable-offset.[ch]
      	* app/core/gimpdrawable-transform.[ch]
      	* app/core/gimpimage-crop.[ch]
      	* app/core/gimpimage-flip.[ch]
      	* app/core/gimpimage-merge.[ch]
      	* app/core/gimpimage-resize.[ch]
      	* app/core/gimpimage-rotate.[ch]
      	* app/core/gimpimage.[ch]
      	* app/core/gimpimagefile.[ch]
      	* app/core/gimpitem-linked.[ch]
      	* app/core/gimpitem.[ch]
      	* app/core/gimplayer.[ch]
      	* app/core/gimpselection.[ch]
      	* app/core/gimptemplate.[ch]
      	* app/file/file-open.[ch]
      	* app/file/file-save.[ch]
      	* app/pdb/procedural_db.[ch]
      	* app/text/gimptext-compat.[ch]
      	* app/text/gimptextlayer-transform.[ch]
      	* app/gui/brush-select.[ch]
      	* app/gui/font-select.[ch]
      	* app/gui/gradient-select.[ch]
      	* app/gui/palette-select.[ch]
      	* app/gui/pattern-select.[ch]: added tons of "GimpContext *context"
      	parameters and use the passed context instead of
      	gimp_get_current_context().
      
      	* app/app_procs.c
      	* app/batch.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-ins.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimptransformtool.c
      	* app/vectors/gimpvectors.c
      	* app/gui/convert-dialog.c
      	* app/gui/drawable-commands.c
      	* app/gui/edit-commands.c
      	* app/gui/file-commands.c
      	* app/gui/file-new-dialog.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/offset-dialog.c
      	* app/gui/select-commands.c
      	* app/gui/vectors-commands.c
      	* app/widgets/gimpdnd.c
      	* app/widgets/gimpdocumentview.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimpthumbbox.c: pass gimp_get_user_context() or
      	GIMP_CONTEXT(tool_options) or whatever is the right context
      	to the changed core functions.
      
      	* tools/pdbgen/app.pl: pass "GimpContext *context" to all
      	generated PDB invokers.
      
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/font_select.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/paint_tools.pdb
      	* tools/pdbgen/pdb/palette.pdb
      	* tools/pdbgen/pdb/palette_select.pdb
      	* tools/pdbgen/pdb/palettes.pdb
      	* tools/pdbgen/pdb/paths.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb
      	* tools/pdbgen/pdb/patterns.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/text_tool.pdb
      	* tools/pdbgen/pdb/transform_tools.pdb: pass the new context
      	parameter to the changed core functions.
      
      	* app/pdb/*_cmds.c: regenerated.
      18d9161e
  10. 30 Mar, 2004 1 commit
    • Michael Natterer's avatar
      app/Makefile.am new files implementing sanity_check() for run-time · afe0eb35
      Michael Natterer authored
      2004-03-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/sanity.[ch]: new files implementing sanity_check() for
      	run-time checking library versions. Added a check for FreeType but
      	disabled it until we figured if and how freetype causes some of
      	the DLL hell bugs.
      
      	* app/main.c (main): call it and abort if it fails.
      
      	* app/app_procs.[ch]: added app_gui_abort() so main.c doesn't
      	need to #include "gui/gui.h"
      
      	* app/gui/gui.[ch] (gui_libs_init): removed library sanity checking.
      
      	(gui_abort): new function which shows the abort message.
      afe0eb35
  11. 15 Mar, 2004 2 commits
    • Simon Budig's avatar
      Applied a modified version of a patch from Raphaël, that implements a · c868c55d
      Simon Budig authored
      2004-03-15  Simon Budig  <simon@gimp.org>
      
      	* app/base/tile-swap.[ch]: Applied a modified version of a patch
      	from Raphaël, that implements a test if a swap file can be
      	created. Also make the failure message more verbose.
      
      	* app/base/base.[ch]: extend base_init() with a boolean return
      	to indicate if the test to create a swap file was OK.
      
      	* app/app_procs.c: Display a warning message at startup when the
      	test fails.
      
      	Fixes bug #64835.
      c868c55d
    • Sven Neumann's avatar
      splash image for GIMP 2.0 by Jimmac. · 1951ad21
      Sven Neumann authored
      2004-03-15  Sven Neumann  <sven@gimp.org>
      
      	* data/images/gimp_splash.png: splash image for GIMP 2.0 by Jimmac.
      
      	* app/gui/splash.[ch]: draw the text on the splash image, not
      	below it.
      
      	* app/app_procs.[ch]
      	* app/gui/gui.[ch]
      	* app/main.c
      	* docs/gimp.1.in: dropped support for the --no-splash-image
      	command-line option (not to be confused with --no-splash). It was
      	never very useful and makes even less sense in times where startup
      	notification is available.
      1951ad21
  12. 26 Feb, 2004 1 commit
    • Sven Neumann's avatar
      check display->shell before using it. It might be NULL if the function is · cdc2f0de
      Sven Neumann authored
      2004-02-26  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpprogress.c (gimp_progress_end): check
      	display->shell before using it. It might be NULL if the function
      	is being called from gimp_exit().
      
      	* app/app_procs.c (app_exit_after_callback): added back the call
      	to exit() but only for stable releases. See my comments in the
      	code to understand the reasons.
      cdc2f0de
  13. 23 Jan, 2004 1 commit
    • Michael Natterer's avatar
      app/app_procs.c app/errors.c app/main.c app/config/gimpconfigwriter.c · 57911bbc
      Michael Natterer authored
      2004-01-23  Michael Natterer  <mitch@gimp.org>
      
      	* app/app_procs.c
      	* app/errors.c
      	* app/main.c
      	* app/config/gimpconfigwriter.c
      	* app/core/gimpdata.c
      	* app/core/gimpdatafactory.c
      	* app/gui/user-install-dialog.c
      	* app/plug-in/plug-ins.c
      	* app/vectors/gimpvectors-import.c: some more gimp_filename_to_utf8().
      
      	* libgimp/gimp.c
      	* libgimpmodule/gimpmodule.c
      	* libgimpmodule/gimpmoduledb.c: use it here, too, now that is in
      	libgimpbase.
      57911bbc
  14. 13 Jan, 2004 1 commit
  15. 05 Dec, 2003 1 commit
    • Michael Natterer's avatar
      added enum GimpPDBCompatMode which can be one of { OFF, ON, WARN }. · ca45a5c6
      Michael Natterer authored
      2003-12-05  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/pdb-types.h: added enum GimpPDBCompatMode which can
      	be one of { OFF, ON, WARN }.
      
      	* app/main.c: added --pdb-compat-mode command line option. Renamed
      	--enable-stack-trace to --stack-trace-mode. Made default values of
      	stack_trace_mode and pdb_compat_mode depend on GIMP_MINOR_VERSION
      	(default to compat ON and stack_trace NEVER).
      
      	* app/app_procs.[ch]: pass pdb_compat_mode to gimp_new().
      
      	* app/core/gimp.[ch]: added pdb_compat_mode to the Gimp struct
      	and to gimp_new().
      
      	* app/pdb/procedural_db.c: leave the compat table empty for
      	GIMP_PDB_COMPAT_OFF.
      
      	* app/plug-in/plug-in-message.c: warn when a deprecated procedure
      	is called for GIMP_PDB_COMPAT_WARN.
      
      	* docs/gimp-1.3.1.in: changed accordingly.
      ca45a5c6
  16. 30 Nov, 2003 2 commits
    • Sven Neumann's avatar
      removed the hack that used to call gimp_exit() when the batch command · 6bffe5ad
      Sven Neumann authored
      2003-11-30  Sven Neumann  <sven@gimp.org>
      
      	* app/batch.c: removed the hack that used to call gimp_exit() when
      	the batch command matches "(gimp-quit 0)". It shouldn't be needed.
      
      	* tools/pdbgen/pdb/misc.pdb
      	* app/core/gimp.[ch]
      	* app/gui/gui.c: renamed "kill_it" parameter to "force". We don't
      	kill the application any longer; this option is just about whether
      	to ask the user for confirmation or not.
      
      	* app/pdb/misc_cmds.c: regenerated.
      
      	* app/app_procs.c: cosmetics.
      6bffe5ad
    • Sven Neumann's avatar
      renamed batch_init() to batch_run(). Install an Gimp::exit handler while · 0c99483d
      Sven Neumann authored
      2003-11-30  Sven Neumann  <sven@gimp.org>
      
      	* app/batch.[ch]: renamed batch_init() to batch_run(). Install an
      	Gimp::exit handler while batch commands are executed. This handler
      	simply calls exit(). Fixes bug #128199.
      
      	* app/app_procs.c: changed accordingly. Removed remaining global
      	variables.
      0c99483d
  17. 19 Nov, 2003 1 commit
    • Sven Neumann's avatar
      register a log handler for the "Gimp-Vectors" domain. · 41553a8b
      Sven Neumann authored
      2003-11-19  Sven Neumann  <sven@gimp.org>
      
      	* app/app_procs.c (app_run): register a log handler for the
      	"Gimp-Vectors" domain.
      
      	* app/gui/stroke-dialog.c (stroke_dialog_new): attach the saved
      	options to its parent, the user context, not to the gimp.
      41553a8b
  18. 17 Nov, 2003 1 commit
    • Sven Neumann's avatar
      unref the gimp object after dumping the configuration as a test for · 921f00c1
      Sven Neumann authored
      2003-11-17  Sven Neumann  <sven@gimp.org>
      
      	* app/main.c: unref the gimp object after dumping the
      	configuration as a test for Gimp::finalize.
      
      	* app/base/base.[ch]: keep a reference on the config object.
      	Renamed parameter "use_mmx" to "use_cpu_accel".
      
      	* app/core/gimp.[ch]: call base_init() and base_exit() from
      	app_procs.c, not from the Gimp object.
      
      	* app/app_procs.[ch]: renamed app_init() to app_run() since here's
      	where the main loop is run. Actually quit the main loop in
      	app_exit_after_callback() instead of just calling exit().
      
      	* app/errors.[ch]: declared fatal error handlers as G_GNUC_NORETURN.
      
      	* libgimp/gimp.h: fixed usage of G_GNUC_NORETURN.
      921f00c1
  19. 15 Nov, 2003 1 commit
    • Michael Natterer's avatar
      libgimpbase/Makefile.am libgimpbase/gimpbase-private.[ch] new files · 5221d4da
      Michael Natterer authored
      2003-11-15  Michael Natterer  <mitch@gimp.org>
      
      	* libgimpbase/Makefile.am
      	* libgimpbase/gimpbase-private.[ch]
      	* libgimpbase/gimpunit.c: new files implementing GimpUnitVTable
      	(formerly known as GimpWidgetsVTable). Now the unit functions
      	finally live in the same library as their header declarations.
      
      	* libgimpbase/gimpunit.h: removed comment about being a header for
      	two different files.
      
      	* libgimpwidgets/gimpwidgets-private.[ch]: removed
      	GimpWidgetsVTable.
      
      	* libgimpwidgets/gimpsizeentry.c
      	* libgimpwidgets/gimpunitmenu.c
      	* libgimpwidgets/gimpwidgets.c: use normal gimp_unit functions
      	again.
      
      	* libgimp/gimpui.c
      	* app/gui/gui.c: removed GimpWidgetVTable stuff.
      
      	* libgimp/Makefile.am
      	* libgimp/gimpunitcache.[ch]: new files.
      
      	* libgimp/gimpunit.c: removed (moved to gimpunitcache.c).
      
      	* libgimp/gimp.c (gimp_main): initialize GimpUnitVTable using the
      	gimp_unit_cache functions.
      
      	* app/Makefile.am
      	* app/units.[ch]: new files implementing GimpUnitVTable.
      
      	* app/libgimp_glue.[ch]: removed.
      
      	* app/app_procs.[ch]: made "the_gimp" a static variable. Call
      	units_init().
      
      	* app/main.c: changed accordingly.
      5221d4da
  20. 14 Nov, 2003 1 commit
    • Michael Natterer's avatar
      libgimpwidgets/gimpquerybox.c configure the labels in the message dialog · 6eb77294
      Michael Natterer authored
      2003-11-14  Michael Natterer  <mitch@gimp.org>
      
      	* libgimpwidgets/gimpquerybox.c
      	* app/widgets/gimpwidgets-utils.c: configure the labels in the
      	message dialog and the query boxes to do automatic word wrapping
      	to be HIG compliant.
      
      	* app/app_procs.c
      	* app/batch.c
      	* app/config/gimpconfig-deserialize.c
      	* app/config/gimpconfig-path.c
      	* app/config/gimpconfig-utils.c
      	* app/config/gimpconfigwriter.c
      	* app/config/gimpscanner.c
      	* app/core/gimpbrush.c
      	* app/core/gimpbrushgenerated.c
      	* app/core/gimpbrushpipe.c
      	* app/core/gimpdatafactory.c
      	* app/core/gimpgradient.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage.c
      	* app/core/gimpimagefile.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimppalette.c
      	* app/core/gimppattern.c
      	* app/core/gimpselection.c
      	* app/display/gimpdisplayshell.c
      	* app/file/file-utils.c
      	* app/gui/brush-select.c
      	* app/gui/dialogs-commands.c
      	* app/gui/drawable-commands.c
      	* app/gui/edit-commands.c
      	* app/gui/file-commands.c
      	* app/gui/file-new-dialog.c
      	* app/gui/font-select.c
      	* app/gui/gradient-select.c
      	* app/gui/gui.c
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/palette-select.c
      	* app/gui/palettes-commands.c
      	* app/gui/pattern-select.c
      	* app/gui/preferences-dialog.c
      	* app/gui/select-commands.c
      	* app/gui/stroke-dialog.c
      	* app/gui/tool-options-menu.c
      	* app/gui/vectors-commands.c
      	* app/gui/view-commands.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in.c
      	* app/plug-in/plug-ins.c
      	* app/text/gimptextlayer-xcf.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimptransformtool.c
      	* app/vectors/gimpvectors-export.c
      	* app/widgets/gimpdatafactoryview.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimptemplateview.c
      	* app/widgets/gimptooloptionseditor.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/image.pdb: removed explicit newlines from
      	messages. Reduced number of translatable strings by making many
      	file error messages the same. Quote single words and filenames
      	with 'foo', not "foo". Replaced some more "drawable" by "layer".
      	General message cleanup and consistency check.
      
      	* app/pdb/image_cmds.c: regenerated.
      6eb77294
  21. 13 Nov, 2003 1 commit
    • Sven Neumann's avatar
      app/app_procs.[ch] app/main.c app/core/gimp.[ch] app/gui/gui.c allow to · a843b2ad
      Sven Neumann authored
      2003-11-13  Sven Neumann  <sven@gimp.org>
      
      	* app/app_procs.[ch]
      	* app/main.c
      	* app/core/gimp.[ch]
      	* app/gui/gui.c
      	* app/gui/session.[ch]: allow to pass a session name on the
      	command-line. This causes a different sessionrc to be used. This
      	is a bit hackish but our power users will probably love it.
      	Also removed the useless --restore-session command-line option.
      
      	* docs/gimp-1.3.1.in: changed accordingly.
      
      	* app/core/gimpmarshal.list: removed obsolete marshaller.
      
      	* app/config/gimprc.c (gimp_rc_new): improved gtk-doc comment.
      a843b2ad
  22. 05 Nov, 2003 1 commit
    • Sven Neumann's avatar
      added new command-line option --no-fonts. Might be useful to reduce · 51113c49
      Sven Neumann authored
      2003-11-05  Sven Neumann  <sven@gimp.org>
      
      	* app/main.c: added new command-line option --no-fonts. Might be
      	useful to reduce startup time or if there are problems with the
      	font configuration.
      
      	* app/app_procs.[ch]
      	* app/main.c
      	* app/core/gimp.[ch]
      	* app/text/gimp-fonts.c: don't load any fonts when gimp is started
      	with --no-fonts.
      
      	* docs/gimp-1.3.1.in: documented the new command-line option.
      	Updated some outdated information.
      51113c49
  23. 04 Nov, 2003 1 commit
    • Sven Neumann's avatar
      register a log handler for the Gimp-Text domain. · ec220279
      Sven Neumann authored
      2003-11-05  Sven Neumann  <sven@gimp.org>
      
      	* app/app_procs.c: register a log handler for the Gimp-Text domain.
      
      	* app/text/gimpfont.c: code cosmetics.
      
      	* app/text/gimptext-compat.c: removed debugging output.
      
      	Let GIMP work w/o any fonts. Of course you won't get any text
      	functionality then:
      
      	* app/text/gimpfontlist.c: don't install any font aliases if no
      	fonts were found.
      
      	* app/text/gimptextlayer.c: refuse to render any text layers when
      	the GIMP fonts list is empty.
      
      	* app/tools/gimptexttool.c: removed redundant includes.
      
      	* app/tools/gimptextoptions.c: removed the font selection widget.
      	This is a temporary regression that will be cured by improving the
      	GimpFontView widget.
      
      	* app/widgets/Makefile.am
      	* app/widgets/gimpfontselection-dialog.[ch]
      	* app/widgets/gimpfontselection.[ch]
      	* app/widgets/gimppropwidgets.[ch]: removed the font selection and
      	all references to it. Fixes bug #119267.
      ec220279
  24. 21 Oct, 2003 1 commit
    • Sven Neumann's avatar
      base/base.c (base_init) moved the message about possible debug messages to · 39306937
      Sven Neumann authored
      2003-10-21  Sven Neumann  <sven@gimp.org>
      
      	* base/base.c (base_init)
      	* app/errors.c (gimp_errors_init): moved the message about
      	possible debug messages to gimp_errors_init() so that it appears
      	before any startup debug output.
      
      	* app/app_procs.c (app_init): register a log handler for the
      	GimpConfig log domain.
      
      	* app/widgets/gimpwidgets-utils.c (gimp_message_box)
      	* app/core/gimp.c (gimp_message): added an extra newline when
      	sending messages to stderr. Don't output the full progname for
      	messages; use a simple "GIMP" like the GUI message handler does.
      
      	* app/gui/user-install-dialog.c: removed function copy_file()...
      
      	* app/config/gimpconfig-utils.[ch]: ... and added it here as
      	gimp_config_file_copy(). Also added utility function
      	gimp_config_file_backup_on_error().
      
      	* app/config/gimprc.c (gimp_rc_load): if the user gimprc can't be
      	parsed, create a backup and if that succeeds unlink the broken one
      	to cure the problem.
      
      	* app/gui/session.c: create a backup if sessionrc can't be parsed.
      
      	* config/gimpconfig-deserialize.c (gimp_config_deserialize_properties):
      	don't set an error when token is G_TOKEN_NONE; it should already
      	be set then.
      39306937
  25. 06 Oct, 2003 1 commit
  26. 02 Oct, 2003 2 commits
    • Sven Neumann's avatar
      enabled the call to exit() again. · 1db2ada3
      Sven Neumann authored
      2003-10-02  Sven Neumann  <sven@gimp.org>
      
      	* app/app_procs.c (app_exit_after_callback): enabled the call to
      	exit() again.
      1db2ada3
    • Michael Natterer's avatar
      Cleaned up the app init and exit stuff even more. Also reduces the number · 89d936f3
      Michael Natterer authored
      2003-10-02  Michael Natterer  <mitch@gimp.org>
      
      	Cleaned up the app init and exit stuff even more. Also reduces the
      	number of missing symbols for gimp-console. Added init and exit
      	debugging output (only for --verbose).
      
      	* app/core/gimpmarshal.list
      	* app/core/gimp.[ch]: added new signals "initialize" and
      	"restore".  Moved plug_ins_init() to Gimp::restore()'s default
      	implementation and plug_ins_exit() to Gimp::exit()'s default
      	implementation. Renamed gimp_set_config() to gimp_load_config()
      	and load GimpRC here. Moved base_init() and base_exit() to this
      	file, too.
      
      	* app/gui/Makefile.am
      	* app/gui/gui-vtable.[ch]: new files split out of gui.c. It was
      	simply too large.
      
      	* app/gui/gui.[ch]: renamed gui_themes_init() to gui_init(),
      	connect to Gimp's "initialize" and "restore" signals and create
      	the GUI stuff in the callbacks. Removed most other public
      	functions since they don't need to be called explicitly any more.
      	Moved the whole tool initialization/shutdown code to this file.
      
      	* app/gui/user-install-dialog.[ch]: changed
      	user_install_dialog_create() to user_install_dialog_run() and
      	added a gtk_main() at the end, so the install dialog's gtk_main()
      	and gtk_main_quit() live in the same file.
      
      	* app/app_procs.c: removed lots of stuff. app_init() is much
      	simpler now.
      89d936f3
  27. 18 Sep, 2003 1 commit
    • Michael Natterer's avatar
      app/paint/Makefile.am removed... ...and added. · 6b2ca702
      Michael Natterer authored
      2003-09-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/Makefile.am
      	* app/paint/paint.[ch]: removed...
      	* app/paint/gimp-paint.[ch]: ...and added.
      
      	* app/core/gimp.c: changed accordingly.
      
      	* app/tools/Makefile.am
      	* app/tools/tools.[ch]: removed...
      
      	* app/tools/gimp-tools.[ch]: ...and added. Added
      	gimp_tools_restore() and gimp_tools_save() and moved the entire
      	tool registering and tool_options loading/saving code here. Call
      	tool_manager_init() from gimp_tools_init() and tool_manager_exit()
      	from gimp_tools_exit().
      
      	* app/tools/tool_manager.[ch]: removed the code which now lives
      	in gimp-tools.[ch]. The tool manager now has no knowledge about
      	individual tools any more and just handles the active_tool
      	and the tool part of tool <-> display interaction.
      	Removed tool_manager_get_info_by_type().
      
      	* app/tools/gimpvectortool.c (gimp_vector_tool_register): the
      	tool's identifier is "gimp-vector-tool", not "gimp-path-tool".
      
      	* app/app_procs.c
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/gui/vectors-commands.c
      	* app/tools/gimppainttool.c: changed accordingly.
      6b2ca702
  28. 15 Sep, 2003 1 commit
    • Michael Natterer's avatar
      app/core/gimpedit.[ch] app/core/gimpmodules.[ch] app/core/gimpunits.[ch] · 28d6f0a2
      Michael Natterer authored
      2003-09-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpedit.[ch]
      	* app/core/gimpmodules.[ch]
      	* app/core/gimpunits.[ch]
      	* app/text/gimpfonts.[ch]: removed...
      
      	* app/core/gimp-edit.[ch]
      	* app/core/gimp-modules.[ch]
      	* app/core/gimp-units.[ch]
      	* app/text/gimp-fonts.[ch]: ...and added with new names because
      	these files operate on members of a Gimp instance and are
      	therefore methods of the Gimp object.
      
      	* app/core/Makefile.am
      	* app/text/Makefile.am
      	* app/display/gimpdisplayshell-dnd.c
      	* app/gui/edit-commands.c
      	* app/gui/module-browser.c
      	* app/gui/preferences-dialog.c
      	* app/widgets/gimpbufferview.c
      	* app/widgets/gimpdocumentview.c
      	* app/widgets/gimptoolbox-dnd.c
      	* app/app_procs.c
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/fonts.pdb: changed accordingly.
      
      	* app/pdb/edit_cmds.c
      	* app/pdb/fonts_cmds.c: regenerated.
      
      	* app/core/gimp.c (gimp_init): don't create gimp->fonts.
      	(gimp_initialize): call gimp_fonts_init().
      	(gimp_restore): call gimp_fonts_load() instead of _init().
      
      	* app/text/gimp-fonts.c (gimp_fonts_init): don't call
      	gimp_fonts_load(), just create gimp->fonts and connect to
      	"notify::font-path" of gimp->config.
      28d6f0a2
  29. 09 Sep, 2003 2 commits
    • Michael Natterer's avatar
      Got rid of the last global variables except the_gimp: · 85dfbe46
      Michael Natterer authored
      2003-09-09  Michael Natterer  <mitch@gimp.org>
      
      	Got rid of the last global variables except the_gimp:
      
      	* app/Makefile.am
      	* app/appenv.h: removed this file.
      
      	* app/errors.[ch] (gimp_errors_init): new function which lets the
      	error system know about "full_prog_name", "stack_trace_mode" and
      	"debug_handlers". Remember these values privately.
      
      	* app/app_procs.[ch] (app_init): added "full_prog_name" and
      	"stack_trace_mode" parameters here too.
      
      	* app/main.c (main): call gimp_errors_init() and pass the
      	additional parameters to app_init().
      85dfbe46
    • Michael Natterer's avatar
      added "gboolean console_messages" to the Gimp struct and to gimp_new() · 284b8f91
      Michael Natterer authored
      2003-09-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimp.[ch]: added "gboolean console_messages" to the
      	Gimp struct and to gimp_new() since plug-in messages go directly
      	through gimp_message() now and need to honor "console_messages"
      	too.
      
      	* app/app_procs.[ch]: added "gboolean console_messages" to
      	app_init() and pass it to gimp_new().
      
      	* app/appenv.h: removed global variable "console_messages".
      
      	* app/main.c: added it to main()'s scope and pass it to app_init().
      
      	* app/errors.c: changed accordingly.
      284b8f91
  30. 01 Sep, 2003 1 commit
    • Michael Natterer's avatar
      We really don't need that global variable overkill from appenv.h just to · b8b7985b
      Michael Natterer authored
      2003-09-01  Michael Natterer  <mitch@gimp.org>
      
      	We really don't need that global variable overkill from appenv.h
      	just to pass these values from main() to app_init():
      
      	* app/app_procs.[ch] (app_init): added tons of parameters that
      	used to be global variables before.
      	Replaced app_init_update_status() by two functions, one which
      	actually updates the splash, and one which does nothing, so we
      	don't need global variables in the status callback.
      
      	* app/appenv.h: removed vraiable declarations here. Some are still
      	left, will get rid of this entire file soon...
      
      	* app/main.c: added them as local variables to main() and
      	pass them to app_init().
      
      	* app/batch.c: removed the global "batch_cmds", they are passed
      	the same way as the stuff above now.
      b8b7985b
  31. 09 Aug, 2003 1 commit
  32. 23 Jun, 2003 1 commit
  33. 29 May, 2003 1 commit
    • Michael Natterer's avatar
      removed the calls to g_log_set_handler(). · 30ea5171
      Michael Natterer authored
      2003-05-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/main.c (main): removed the calls to g_log_set_handler().
      
      	* app/app_procs.[ch] (app_init): added the g_log_set_handler()
      	calls and pass them the global Gimp instance as user_data.
      	Renamed app_gui_init() to app_gui_libs_init().
      
      	* app/errors.c: use the passed Gimp pointer instead of using
      	"the_gimp". Don't #include "app_procs.h".
      
      	* app/gui/gui.[ch]: removed gui_get_screen_resolution().
      
      	* app/widgets/gimpwidgets-utils.[ch]: added
      	gimp_get_screen_resolution().
      
      	* app/display/gimpdisplayshell-handlers.c
      	* app/display/gimpdisplayshell.c
      	* app/gui/preferences-dialog.c
      	* app/gui/user-install-dialog.c: changed accordingly.
      
      	* app/display/gimpdisplayshell.c: don't #include "gui/gui.h".
      30ea5171