1. 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.
  2. 09 Sep, 2003 1 commit
    • 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().
  3. 04 Dec, 2002 1 commit
    • Michael Natterer's avatar
      added -DGIMP_APP_GLUE_COMPILATION to AM_CPPFLAGS. · d79ac249
      Michael Natterer authored
      2002-12-04  Michael Natterer  <mitch@gimp.org>
      	* app/Makefile.am: added -DGIMP_APP_GLUE_COMPILATION to
      	* app/appenv.h
      	* app/batch.h
      	* app/errors.h: #error if it is not defined to keep these files
      	from being included from anywhere else.
      	* app/app_procs.h: added just a #warning because some places still
      	need "the_gimp" and app_exit().
      	* app/libgimp_glue.h: #ifdef the #error the same way as the other
      	headers do.
  4. 25 Jul, 2001 1 commit
  5. 10 Jul, 2001 1 commit
    • Michael Natterer's avatar
      removed the gimp_busy boolean, check whether user_installation is needed · 9d87e554
      Michael Natterer authored
      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
      	* 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.
  6. 29 Dec, 2000 1 commit
    • Michael Natterer's avatar
      app/Makefile.am app/channel_pvt.h app/drawable_pvt.h app/gdisplayF.h · 8d6c335f
      Michael Natterer authored
      2000-12-29  Michael Natterer  <mitch@gimp.org>
      	* app/Makefile.am
      	* app/channel_pvt.h
      	* app/drawable_pvt.h
      	* app/gdisplayF.h
      	* app/gimpdrawableP.h
      	* app/gimpimageP.h
      	* app/layer_pvt.h
      	* app/toolsF.h: removed these files.
      	* app/apptypes.h
      	* tools/pdbgen/enums.pl: added tons of opaque typedefs and enums.
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/display.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/help.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb
      	* tools/pdbgen/pdb/patterns.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/tools.pdb
      	* app/*: chainsaw #include cleanup:
      	- Never (never!!) include stuff in header files except where we
      	  need access to structures' contents (like derived objects).
      	- Added prototypes and proper formating in many files.
      	- The #include order in *all* *.c files is as follows:
      	#include "config.h"
      	#include <system stuff>
      	#include <gtk/gtk.h>
      	#include "apptypes.h"
      	#include "gimp stuff"
      	#include "libgimp stuff"
      	#include "libgimp/gimpintl.h"
      	By following this scheme we can easily see a file's dependencies
      	from it's #include's and can grep for the inclusion to find out
      	where a file is used.
      	* tools/pdbgen/app.pl: changed to follow the include scheme above.
      	* libgimp/Makefile.am
      	* libgimp/gimpuitypes.h: new file, included from libgimp/gimpui.h
      	and from app/apptypes.h.
      	* libgimp/gimpcolorbutton.[ch]
      	* libgimp/gimpdialog.[ch]
      	* libgimp/gimphelpui.[ch]
      	* libgimp/gimpparasite.[ch]
      	* libgimp/gimppatheditor.[ch]
      	* libgimp/gimpprotocol.c
      	* libgimp/gimpquerybox.[ch]
      	* libgimp/gimpsizeentry.[ch]
      	* libgimp/gimptypes.h
      	* libgimp/gimpui.h
      	* libgimp/gimpunit.h
      	* libgimp/gimpunitmenu.[ch]
      	* libgimp/gimpwidgets.[ch]: changed accordingly.
      	* plug-ins/FractalExplorer/Dialogs.c
      	* plug-ins/gdyntext/message_window.c
      	* plug-ins/imagemap/imap_default_dialog.c
      	* plug-ins/imagemap/imap_file.c: these files used to include
      	"libgimp/gimpui.h" without including "libgimp/gimp.h". This is
      	no longer possible because the libgimpui headers don't inlcude
      	"libgimp/gimpunit.h" any more.
  7. 30 Jul, 2000 1 commit
  8. 16 Jul, 2000 1 commit
    • Michael Natterer's avatar
      Sven Neumann <sven@gimp.org> · df9eeff6
      Michael Natterer authored
      2000-07-16  Michael Natterer  <mitch@gimp.org>
      	    Sven Neumann      <sven@gimp.org>
      	* AUTHORS
      	* gimp.1.in
      	* app/about_dialog.c: removed two accidentially added non-authors.
      	* app/errors.[ch]
      	* app/main.c: added a new command line option
      	"--enable-stack-trace" which can be one of {never|query|always}.
      	* app/plug_in.c
      	* libgimp/gimp.c: pass the stack trace mode as an argv[] element to
      	plug-ins. Cleaned up the plug-ins' argv[] (removed unused TILE_WIDTH
      	and TILE_HEIGHT arguments, always pass 6 arguments to make the code
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/enums.pl: export the app's STACK_TRACE_MODE enum.
      	* plug-ins/common/plugindetails.c: made the titles of the tree view
      	unclickable, cleanups.
  9. 22 Jul, 1999 1 commit
    • Michael Natterer's avatar
      new ui for the "Layer Offset" dialog. · a4c1e8a5
      Michael Natterer authored
      1999-07-22  Michael Natterer  <mitschel@cs.tu-berlin.de>
      	* app/channel_ops.[ch]: new ui for the "Layer Offset" dialog.
      	* app/channels_dialog.c
      	* app/layers_dialog.c: major code cleanup: Folded some callbacks
      	into common ones, "widget" instead of "w", indentation, ...
      	* app/commands.c
      	* app/interface.[ch]
      	* app/global_edit.c: the query boxes must be shown by the caller
      	now. There's no need to split up the string for the message box
      	manually as the Gtk 1.2 label widget handles newlines corectly.
      	Added the "edge_lock" toggle to the "Shrink Selection" dialog.
      	Nicer spacings for the query and message boxes.
      	* app/ink.c: tried to grab the pointer in the blob preview but
      	failed. Left the code there as a reminder (commented out).
      	* app/menus.c: reordered <Image>/Select.
      	I was bored and grep-ed the sources for ancient or deprecated stuff:
      	* app/about_dialog.[ch]
      	* app/actionarea.[ch]
      	* app/app_procs.c
      	* app/brush_edit.c
      	* app/brush_select.c
      	* app/color_select.c
      	* app/convert.c
      	* app/devices.c
      	* app/gdisplay.c
      	* app/gdisplay_ops.c
      	* app/histogram_tool.[ch]
      	* app/info_window.c
      	* app/install.c
      	* app/ops_buttons.c
      	* app/palette.c
      	* app/palette_select.c
      	* app/paths_dialog.c
      	* app/pattern_select.c
      	* app/resize.c
      	* app/scale_toolc.c
      	* app/text_tool.c:
      	s/sprintf/g_snprintf/g, replaced some constant string lengths with
      	* app/bezier_select.c
      	* app/blend.c
      	* app/boundary.c
      	* app/errors.[ch]
      	* app/free_select.c
      	* app/gimpbrushlist.c
      	* app/gimprc.c
      	* app/iscissors.c
      	* app/main.c
      	* app/patterns.[ch]
      	* app/text_tool.c: namespace fanaticism: prefixed all gimp error
      	functions with "gimp_" and formated the messages more uniformly.
      	* app/gradient.c
      	* app/gradient_select.c: same stuff as above for the ui
      	code. There are still some sub-dialogs which need cleanup.
      	Did some cleanup in most of these files: prototypes, removed tons
      	of #include's, i18n fixes, s/w/widget/ as above, indentation, ...
  10. 19 Jun, 1998 1 commit
  11. 28 May, 1998 1 commit
    • Manish Singh's avatar
      gimp_message. libgimp also overrides g_message for all plugins. Converted · 1d95a05a
      Manish Singh authored
      * redid the error message handling. g_message now calls message_box or prints
      to console depending on whether the no_interface is set or not. gimp-message
      is also exported to the PDB as a wrapper to g_message, and libgimp has a new
      API: gimp_message. libgimp also overrides g_message for all plugins. Converted
      lots of messages in app/* to g_message. Made script-fu a little friendlier.
      * updated the regex code from grep 2.2
      * said goodbye to the old script-fu logo in script-fu.h
  12. 13 Apr, 1998 1 commit
  13. 11 Apr, 1998 1 commit
    • Manish Singh's avatar
      fixed up idle handler for file open (look like testgtk idle demo) · 0ed01919
      Manish Singh authored
      * app/app_procs.c: fixed up idle handler for file open (look like testgtk
      idle demo)
      * app/colomaps.c: fixup for visual test and use of gdk_color_alloc for some
      fixed colors (from Owen Taylor)
      * app/errors.h
      * app/errors.c
      * app/main.c
      * libgimp/gimp.c: redid the signal handlers so we only get a debug prompt on
      * applied gimp-jbuhler-980408-0 and gimp-joke-980409-0 (warning fixups)
      * applied gimp-monnaux-980409-0 for configurable plugin path for multiarch
  14. 24 Nov, 1997 1 commit