1. 17 Apr, 2007 1 commit
    • Sven Neumann's avatar
      Allow other applications to open images in GIMP as if they were new images · 49b8176a
      Sven Neumann authored
      2007-04-17  Sven Neumann  <sven@gimp.org>
      
      	Allow other applications to open images in GIMP as if they were
      	new images (without associating a filename). Fixes bug #423118.
      
      	* app/file/file-open.[ch]: added parameter 'as_new' to
      	file_open_image() and its variants.
      
      	* app/actions/data-commands.c
      	* app/actions/documents-commands.c
      	* app/actions/file-commands.c
      	* app/core/gimpimagefile.c
      	* app/dialogs/file-open-dialog.c
      	* app/dialogs/file-open-location-dialog.c
      	* app/widgets/gimptoolbox.c
      	* app/widgets/gimptoolbox-dnd.c: changed accordingly.
      
      	* app/app.[ch]
      	* app/main.c: added new command-line option '--as-new'.
      
      	* app/widgets/gimpdbusservice.[ch]
      	* app/widgets/dbus-service.xml: added new method "OpenAsNew" to the
      	D-Bus interface.
      
      	* docs/gimp.1.in: document the new command-line option.
      
      
      svn path=/trunk/; revision=22264
      49b8176a
  2. 27 Mar, 2007 1 commit
    • Sven Neumann's avatar
      changed file_open_from_command_line() to deal with a single filename only. · 518b13d1
      Sven Neumann authored
      2007-03-27  Sven Neumann  <sven@gimp.org>
      
      	* app/file/file-open.[ch]: changed file_open_from_command_line()
      	to deal with a single filename only.
      
      	* app/widgets/gimpdbusservice.[ch]
      	* app/widgets/dbus-service.xml: changed the D-Bus Open method to
      	take only a single filename.
      
      	* app/app.c
      	* app/main.c: changed accordingly.
      
      
      svn path=/trunk/; revision=22181
      518b13d1
  3. 02 Feb, 2007 1 commit
    • Sven Neumann's avatar
      renamed to app/app.[ch]. · 766d27da
      Sven Neumann authored
      2007-02-02  Sven Neumann  <sven@gimp.org>
      
      	* app/app_procs.[ch]: renamed to app/app.[ch].
      
      	* app/Makefile.am
      	* app/main.c: changed accordingly.
      
      
      svn path=/trunk/; revision=21838
      766d27da
  4. 26 Jan, 2007 1 commit
    • Tor Lillqvist's avatar
      Make the handling of console output make more sense Win32. Should mostly · 92cdceed
      Tor Lillqvist authored
      2007-01-26  Tor Lillqvist  <tml@novell.com>
      
      	Make the handling of console output make more sense Win32. Should
      	mostly fix #400927.
      	    
      	* app/app_procs.c (app_exit): Drop the Win32 "This console window
      	will close in ten seconds" message from here.
      	(app_run): Drop the call to FreeConsole() from here. GIMP is built
      	as a GUI executable on Windows, and in case we do open a fresh
      	console window in main() (see below), we shouldn't then
      	immediately close it here.
      
      	* app/errors.c (errors_init): Drop printing the "You can mimize
      	this window, but don't close it" message on Win32 from here.
      
      	* app/main.c (gimp_open_console_window): New Win32-only
      	function. If either stdout or stderr are unconnected, open a new
      	console window and connect stdout and/or stderr to it as
      	needed. Set the console title to "GIMP output. You can minimize
      	this window, but don't close it." Register an atexit function that
      	waits for the user to close the console window.
      	(wait_console_window): New Win32-only function. Registered as an
      	atexit function when GIMP has opened a new console window. Prompts
      	the user to type any character to close the window.
      	(main, gimp_show_version): Always call gimp_open_console_window()
      	in the unstable version. As the "This is a development version of
      	GIMP. Debug messages may appear here" message says, one point of
      	the unstable version is that debug messages should be visible, so
      	I think it makes sense to always see them in an unstable
      	version. In stable versions, call gimp_open_console_window() only
      	if options that cause output that the user wants to see were
      	given, like --help and --version.
      
      
      svn path=/trunk/; revision=21781
      92cdceed
  5. 22 Jan, 2007 1 commit
    • Sven Neumann's avatar
      added utility function that handles opening files passed on the · 6414b2ea
      Sven Neumann authored
      2007-01-22  Sven Neumann  <sven@gimp.org>
      
      	* app/file/file-open.[ch]: added utility function that handles
      	opening files passed on the command-line.
      
      	* app/app_procs.c
      	* app/widgets/gimpdbusservice.c: use the new function instead of
      	duplicating the code.
      
      
      svn path=/trunk/; revision=21759
      6414b2ea
  6. 19 Jan, 2007 2 commits
    • Sven Neumann's avatar
      let the filename -> uri functions take a Gimp parameter instead of the · 20b331da
      Sven Neumann authored
      2007-01-19  Sven Neumann  <sven@gimp.org>
      
      	* app/file/file-utils.[ch]: let the filename -> uri functions take
      	a Gimp parameter instead of the list of load procedures.
      
      	* app/core/gimpimage.c
      	* app/app_procs.c
      	* app/dialogs/file-open-location-dialog.c
      	* tools/pdbgen/pdb/fileops.pdb: changed accordingly.
      
      	* app/pdb/fileops_cmds.c: regenerated.
      
      svn path=/trunk/; revision=21736
      20b331da
    • Sven Neumann's avatar
      app/app_procs.c moved code from app_procs.c to file-utils. · d4249a10
      Sven Neumann authored
      2007-01-19  Sven Neumann  <sven@gimp.org>
      
      	* app/app_procs.c
      	* app/file/file-utils.[ch]: moved code from app_procs.c to file-utils.
      
      
      svn path=/trunk/; revision=21735
      d4249a10
  7. 29 Dec, 2006 1 commit
  8. 09 Dec, 2006 1 commit
  9. 09 Sep, 2006 2 commits
  10. 05 Jun, 2006 1 commit
  11. 16 May, 2006 1 commit
    • Sven Neumann's avatar
      indentation. · c14c5393
      Sven Neumann authored
      2006-05-16  Sven Neumann  <sven@gimp.org>
      
      	* app/app_procs.c (app_run): indentation.
      
      	* app/core/gimp.c (gimp_real_initialize)
      	* app/plug-in/gimppluginmanager.c (gimp_plug_in_manager_restore):
      	moved a call to status_callback() to the plug-in manager.
      c14c5393
  12. 04 May, 2006 1 commit
    • Sven Neumann's avatar
      added a "verbose" parameter. · 25aaf8d9
      Sven Neumann authored
      2006-05-04  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimp-user-install.[ch]: added a "verbose" parameter.
      
      	* app/app_procs.c (app_run): abort if the user installation fails.
      25aaf8d9
  13. 29 Apr, 2006 1 commit
    • Sven Neumann's avatar
      define GIMP_APP_VERSION. · 7debd74d
      Sven Neumann authored
      2006-04-29  Sven Neumann  <sven@gimp.org>
      
      	* app/core/Makefile.am (AM_CPP_FLAGS): define GIMP_APP_VERSION.
      
      	* app/core/gimp-user-install.c: use GIMP_APP_VERSION instead of
      	hardcoding it.
      7debd74d
  14. 28 Apr, 2006 2 commits
    • Sven Neumann's avatar
      removed unused code and unused parameters passed to · 5fc5ffd7
      Sven Neumann authored
      2006-04-29  Sven Neumann  <sven@gimp.org>
      
      	* app/dialogs/user-install-dialog.[ch]: removed unused code and
      	unused parameters passed to user_install_dialog_run().
      
      	* app/app_procs.c (app_run): changed accordingly.
      5fc5ffd7
    • Michael Natterer's avatar
      app/plug-in/Makefile.am app/plug-in/plug-in-types.h new object which keeps · f1c3e79a
      Michael Natterer authored
      2006-04-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/Makefile.am
      	* app/plug-in/plug-in-types.h
      	* app/plug-in/gimppluginmanager.[ch]: new object which keeps all
      	plug-in related stuff that was kept in the Gimp instance. Has
      	"menu-branch-added" and "last-plug-in-changed" signals.
      
      	* app/plug-in/plug-ins.[ch]: removed, all its functions are in
      	GimpPlugInManager now.
      
      	* app/core/gimpmarshal.list: new marshaller for the new object.
      
      	* app/core/gimp.[ch]: removed all plug-in related stuff and keep a
      	GimpPlugInManager around.
      
      	* app/plug-in/plug-in-data.[ch]
      	* app/plug-in/plug-in-file.[ch]
      	* app/plug-in/plug-in-help-domain.[ch]
      	* app/plug-in/plug-in-locale-domain.[ch]
      	* app/plug-in/plug-in-menu-branch.[ch]
      	* app/plug-in/plug-ins-query.[ch]: removed...
      
      	* app/plug-in/gimppluginmanager-data.[ch]
      	* app/plug-in/gimppluginmanager-file.[ch]
      	* app/plug-in/gimppluginmanager-help-domain.[ch]
      	* app/plug-in/gimppluginmanager-locale-domain.[ch]
      	* app/plug-in/gimppluginmanager-menu-branch.[ch]
      	* app/plug-in/gimppluginmanager-query.[ch]: ...and added as
      	methods of GimpPlugInManager.
      
      	* app/plug-in/plug-in-debug.[ch]
      	* app/plug-in/plug-in-shm.[ch]: removed...
      
      	* app/plug-in/gimpplugindebug.[ch]
      	* app/plug-in/gimppluginshm.[ch]: ...and added as properly
      	namespeced structs with constructors and destructors.
      
      	* app/core/Makefile.am
      	* app/core/gimpenvirontable.[ch]
      	* app/core/gimpinterpreterdb.[ch]: removed...
      
      	* app/plug-in/gimpenvirontable.[ch]
      	* app/plug-in/gimpinterpreterdb.[ch]: ...and added here unchanged.
      
      	* app/core/gimp-gui.[ch]
      	* app/gui/gui-vtable.c: remove gimp_menus_create_branch() and all
      	related stuff.
      
      	* app/actions/plug-in-actions.[ch]: connect to the
      	plug-in-manager's "menu-path-added" signal and create menu branch
      	actions accordingly.
      
      	* app/plug-in/plug-in-context.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-progress.c
      	* app/plug-in/plug-in-run.[ch]
      	* app/plug-in/plug-in.[ch]
      	* app/app_procs.c
      	* app/actions/file-commands.c
      	* app/actions/plug-in-commands.c
      	* app/core/gimpimage.c
      	* app/dialogs/file-open-location-dialog.c
      	* app/dialogs/file-save-dialog.c
      	* app/file/file-open.c
      	* app/gui/gui.c
      	* app/menus/plug-in-menus.c
      	* app/pdb/gimppluginprocedure.c
      	* app/pdb/gimptemporaryprocedure.c
      	* app/widgets/gimpdnd-xds.c
      	* app/widgets/gimpfiledialog.c
      	* app/widgets/gimpfileprocview.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimpthumbbox.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/context.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/help.pdb
      	* tools/pdbgen/pdb/message.pdb
      	* tools/pdbgen/pdb/plug_in.pdb
      	* tools/pdbgen/pdb/procedural_db.pdb
      	* tools/pdbgen/pdb/progress.pdb
      	* tools/pdbgen/pdb/undo.pdb: follow above refactoring.
      
      	* app/pdb/context_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/fileops_cmds.c
      	* app/pdb/help_cmds.c
      	* app/pdb/message_cmds.c
      	* app/pdb/plug_in_cmds.c
      	* app/pdb/procedural_db_cmds.c
      	* app/pdb/progress_cmds.c
      	* app/pdb/undo_cmds.c: regenerated.
      f1c3e79a
  15. 12 Apr, 2006 1 commit
  16. 28 Mar, 2006 1 commit
  17. 25 Apr, 2005 1 commit
  18. 13 Apr, 2005 1 commit
    • Sven Neumann's avatar
      register handler for the "GimpPaint" log domain. · aca3e853
      Sven Neumann authored
      2005-04-13  Sven Neumann  <sven@gimp.org>
      
      	* app/app_procs.c: register handler for the "GimpPaint" log domain.
      
      	* app/core/gimpdatafactory.c (gimp_data_factory_init): don't load
      	any data if TRUE is passed for no_data.
      
      	* app/tools/gimppainttool.c (gimp_paint_tool_draw): handle a NULL
      	brush gracefully.
      aca3e853
  19. 22 Mar, 2005 1 commit
  20. 13 Feb, 2005 1 commit
    • Sven Neumann's avatar
      check for gthread-2.0 unless the --disable-mp option is given. · 9511753a
      Sven Neumann authored
      2005-02-13  Sven Neumann  <sven@gimp.org>
      
      	* configure.in: check for gthread-2.0 unless the --disable-mp
      	option is given.
      
      	* app/app_procs.c (app_libs_init): call g_thread_init().
      
      	* app/base/pixel-processor.c: ported to GThread.
      
      	* app/Makefile.am
      	* app/*/Makefile.am: use @GTHREAD_CFLAGS@.
      9511753a
  21. 08 Feb, 2005 1 commit
  22. 02 Feb, 2005 1 commit
  23. 22 Nov, 2004 1 commit
  24. 06 Oct, 2004 1 commit
    • Sven Neumann's avatar
      app/app_procs.[ch] app/batch.[ch] added new command-line option · 1956f311
      Sven Neumann authored
      2004-10-06  Sven Neumann  <sven@gimp.org>
      
      	* app/app_procs.[ch]
      	* app/batch.[ch]
      	* app/main.c: added new command-line option "--batch-interpreter"
      	that allows to specify the procedure to use to process batch
      	commands. Removed the perl-server hack but kept Script-Fu as the
      	default for backward compatibility.
      
      	* docs/gimp.1.in: documented the new option.
      1956f311
  25. 13 Sep, 2004 2 commits
    • Michael Natterer's avatar
      install the message handler for the "Gimp-Dialogs" domain. · 359303a7
      Michael Natterer authored
      2004-09-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/app_procs.c (app_run): install the message handler for the
      	"Gimp-Dialogs" domain.
      359303a7
    • 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
  26. 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
  27. 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
  28. 26 Jul, 2004 1 commit
  29. 20 Jul, 2004 1 commit
  30. 15 Jul, 2004 2 commits
  31. 14 Jul, 2004 1 commit
  32. 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
  33. 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