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 2 commits
  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 2 commits
    • Tor Lillqvist's avatar
      Use wide character version of SetConsoleTitle(). · 2f6ed7f6
      Tor Lillqvist authored
      2007-01-26  Tor Lillqvist  <tml@novell.com>
      
      	* app/main.c: Use wide character version of SetConsoleTitle().
      
      
      svn path=/trunk/; revision=21782
      2f6ed7f6
    • 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. 23 Jan, 2007 1 commit
    • Sven Neumann's avatar
      improved output. · 509351d0
      Sven Neumann authored
      2007-01-23  Sven Neumann  <sven@gimp.org>
      
      	* app/main.c: improved output.
      
      
      svn path=/trunk/; revision=21763
      509351d0
  6. 22 Jan, 2007 2 commits
    • Sven Neumann's avatar
      added Activate method. · 4c5cfb61
      Sven Neumann authored
      2007-01-23  Sven Neumann  <sven@gimp.org>
      
              * app/widgets/dbus-service.xml: added Activate method.
      
              * app/widgets/gimpdbusservice.[ch]: raise the toolbox from the
              Activate method. Do nothing when no URIs are passed
      
              * app/main.c: try the Activate method on the org.gimp.GIMP 
      service
              when being called without any filenames on the command-lines.
      
      
      svn path=/trunk/; revision=21761
      4c5cfb61
    • Sven Neumann's avatar
      simplified handling of d-bus errors. · 569e1b35
      Sven Neumann authored
      2007-01-22  Sven Neumann  <sven@gimp.org>
      
      	* app/main.c: simplified handling of d-bus errors.
      
      
      svn path=/trunk/; revision=21760
      569e1b35
  7. 19 Jan, 2007 2 commits
    • Sven Neumann's avatar
      call gdk_notify_startup_complete() when we have delegated the work to · 8b405077
      Sven Neumann authored
      2007-01-19  Sven Neumann  <sven@gimp.org>
      
      	* app/main.c: call gdk_notify_startup_complete() when we have
      	delegated the work to another GIMP instance and are about to 
      quit.
      
      
      svn path=/trunk/; revision=21738
      8b405077
    • Sven Neumann's avatar
      INSTALL check for D-Bus GLib bindings. · bfd1dd5f
      Sven Neumann authored
      2007-01-19  Sven Neumann  <sven@gimp.org>
      
      	* INSTALL
      	* configure.in: check for D-Bus GLib bindings.
      
      	* app/Makefile.am
      	* app/main.c: check if an interactive GIMP instance proposes
      	itself on the D-Bus and delegate to it. Allow this behaviour to be
      	overridden by using the --new-instance command-line option.
      
      	* app/widgets/Makefile.am
      	* app/widgets/gimpdbusservice.[ch]
      	* app/widgets/dbus-service.xml: added an object that offers a
      	D-Bus service.
      
      	* app/gui/Makefile.am
      	* app/gui/gui.c: connect to the D-Bus and export the GimpDBusService.
      
      
      svn path=/trunk/; revision=21737
      bfd1dd5f
  8. 12 Jan, 2007 1 commit
    • Sven Neumann's avatar
      updated copyright. · c1ffb833
      Sven Neumann authored
      2007-01-12  Sven Neumann  <sven@gimp.org>
      
      	* app/about.h (GIMP_COPYRIGHT): updated copyright.
      
      	* app/main.c: use application name as summary in the help output.
      
      
      svn path=/trunk/; revision=21694
      c1ffb833
  9. 29 Dec, 2006 1 commit
  10. 09 Dec, 2006 1 commit
  11. 09 Sep, 2006 1 commit
    • Sven Neumann's avatar
      app/app_procs.[ch] initialize the error subsystem after the gimp object · 188bbe5d
      Sven Neumann authored
      2006-09-09  Sven Neumann  <sven@gimp.org>
      
      	* app/app_procs.[ch]
      	* app/main.c: initialize the error subsystem after the gimp
      object
      	has been created.
      
      	* app/errors.[ch]: store a reference to the gimp object (eek)
      and
      	use it to call gimp_gui_ungrab() before g_on_error_query().
      
      	* app/core/gimp-gui.[ch]
      	* app/gui/gui-vtable.c: added gimp_gui_ungrab().
      188bbe5d
  12. 27 Jun, 2006 1 commit
    • Sven Neumann's avatar
      I18n improvements based on a patch from Zbigniew Chyla: · 7b1327dd
      Sven Neumann authored
      2006-06-27  Sven Neumann  <sven@gimp.org>
      
      	I18n improvements based on a patch from Zbigniew Chyla:
      
      	* app/main.c:
      	* modules/controller_midi.c
      	* plug-ins/script-fu/scripts/guides-new.scm: marked strings for
      	translation.
      
      	* app/widgets/gimpdock.c
      	* libgimpwidgets/gimppageselector.c
      	* plug-ins/common/plugin-browser.c: use ngettext() for plural
      forms.
      7b1327dd
  13. 16 Jun, 2006 1 commit
    • Manish Singh's avatar
      app/errors.c app/main.c app/file/gimprecentlist.c libgimpbase/gimpsignal.c · f548b653
      Manish Singh authored
      2006-06-16  Manish Singh  <yosh@gimp.org>
      
              * app/errors.c
              * app/main.c
              * app/file/gimprecentlist.c
              * libgimpbase/gimpsignal.c
              * libgimp/gimp.c
              * modules/controller_midi.c
              * plug-ins/common/gqbist.c: use _GNU_SOURCE instead of the other
              _FOO_SOURCE variables to support -ansi -pedantic on glibc systems,
              since anything else breaks compilation of otherwise working code.
              Fixes bug #344203.
      f548b653
  14. 30 May, 2006 1 commit
    • Manish Singh's avatar
      app/errors.c app/main.c app/file/gimprecentlist.c libgimp/gimp.c · c7ba1223
      Manish Singh authored
      2006-05-29  Manish Singh  <yosh@gimp.org>
      
              * app/errors.c
              * app/main.c
              * app/file/gimprecentlist.c
              * libgimp/gimp.c
              * libgimpbase/gimpsignal.c
              * modules/cdisplay_lcms.c
              * modules/cdisplay_proof.c
              * modules/controller_midi.c
              * plug-ins/common/gqbist.c
              * plug-ins/metadata/xmp-schemas.h: miscellaneous fixes for building
              with -ansi -pedantic. Mostly #define _FOO_SOURCE stuff. Thanks to
              Daniel Richard G. for the patch. Fixes bug #342390.
      c7ba1223
  15. 12 Apr, 2006 1 commit
  16. 07 Feb, 2006 1 commit
    • Sven Neumann's avatar
      use GIMP_NAME. · ab184971
      Sven Neumann authored
      2006-02-07  Sven Neumann  <sven@gimp.org>
      
      	* app/main.c (gimp_show_version): use GIMP_NAME.
      ab184971
  17. 29 Dec, 2005 1 commit
  18. 28 Dec, 2005 1 commit
  19. 06 Nov, 2005 1 commit
    • Sven Neumann's avatar
      Added support for binary relocation by means of binreloc, largely based on · 39e866d9
      Sven Neumann authored
      2005-11-06  Sven Neumann  <sven@gimp.org>
      
      	Added support for binary relocation by means of binreloc, largely
      	based on a patch by Hongli Lai:
      
      	* m4macros/Makefile.am
      	* m4macros/binreloc.m4: new file providing a macro to check for
      	binreloc support.
      
      	* acinclude.m4
      	* configure.in: use the macro.
      
      	* libgimpbase/Makefile.am
      	* libgimpbase/gimpreloc.[ch]: new files providing binreloc support
      	on Linux.
      
      	* libgimpbase/gimpenv.[ch]: use binreloc, provide a function to
      	initialize the environment machinery.
      
      	* libgimpbase/gimpbase.def: updated.
      
      	* app/Makefile.am: fiddle with the LDFLAGS for binreloc.
      
      	* app/main.c (main): gimp_env_init(FALSE).
      
      	* libgimp/gimp.c (gimp_main): gimp_env_init(TRUE).
      39e866d9
  20. 25 Sep, 2005 1 commit
    • Sven Neumann's avatar
      INSTALL bumped the required version of glib to 2.8. · cef547b0
      Sven Neumann authored
      2005-09-26  Sven Neumann  <sven@gimp.org>
      
      	* INSTALL
      	* configure.in: bumped the required version of glib to 2.8.
      
      	* app/main.c: use G_OPTION_ARG_NONE flag with callback options
      	that take no argument. Fixes command-line options needed for 'make
      	dist', such as '--dump-gimprc'
      cef547b0
  21. 19 Sep, 2005 1 commit
  22. 06 Apr, 2005 1 commit
    • Sven Neumann's avatar
      improved "--help" output. · e1b5332a
      Sven Neumann authored
      2005-04-06  Sven Neumann  <sven@gimp.org>
      
      	* app/main.c: improved "--help" output.
      
      	* docs/gimp.1.in: updated.
      e1b5332a
  23. 15 Feb, 2005 2 commits
  24. 08 Feb, 2005 2 commits
    • Sven Neumann's avatar
      app/app_procs.[ch] app/gui/gui.[ch] simplified initialization by passing · ebb343fa
      Sven Neumann authored
      2005-02-08  Sven Neumann  <sven@gimp.org>
      
      	* app/app_procs.[ch]
      	* app/gui/gui.[ch]
      	* app/main.c: simplified initialization by passing GOptionContext
      	to app_libs_init() and gui_libs_init().
      ebb343fa
    • Michael Natterer's avatar
      removed SIGCHLD handler which used to call waitpid(-1,...) because this · a285088c
      Michael Natterer authored
      2005-02-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/main.c: removed SIGCHLD handler which used to call
      	waitpid(-1,...) because this breaks all waitpid(pid,...) calls
      	in a non-deterministic way. Apparently it is possible to use both
      	SIG_DFL *and* SA_RESTART (SA_RESTART being the original reason
      	why the call to sigaction() was introduced).
      
      	* app/plug-in/plug-in.c (plug_in_close): don't have a million
      	subsequent if(plug_in->pid) blocks. Put everything into one big
      	if(plug_in->pid) block instead. Call g_spawn_close_pid() on all
      	platforms instead of using the Win32 CloseHandle().
      a285088c
  25. 06 Feb, 2005 1 commit
  26. 03 Feb, 2005 3 commits
  27. 02 Feb, 2005 3 commits
  28. 27 Nov, 2004 1 commit
  29. 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
  30. 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