1. 28 Apr, 2011 1 commit
    • Michael Natterer's avatar
      libgimp*: add guards that #error out if individual files are included · 844df2b4
      Michael Natterer authored
      This only helps to maintain proper includes in app/ and shouldn't
      affect plug-ins at all, because these are supposed to only include the
      main headers from libgimp/ since the beginning of time.
      The gimpfootypes.h files do not have these guards, so we can continue
      to maintain app/'s include policy that is very likely to error out if
      wrong things are included.
  2. 17 Jan, 2009 1 commit
    • Michael Natterer's avatar
      Change licence to GPLv3 (and to LGPLv3 for libgimp). · d9b5207a
      Michael Natterer authored
      2009-01-17  Michael Natterer  <mitch@gimp.org>
      	* all files with a GPL header and all COPYING files:
      	Change licence to GPLv3 (and to LGPLv3 for libgimp).
      	Cleaned up some copyright headers and regenerated the parsers in
      	the ImageMap plugin.
      svn path=/trunk/; revision=27913
  3. 22 Jun, 2005 1 commit
    • Michael Natterer's avatar
      libgimpconfig/gimpconfig-deserialize.h libgimpconfig/gimpconfig-error.h · ff7343ee
      Michael Natterer authored
      2005-06-22  Michael Natterer  <mitch@gimp.org>
      	* libgimpconfig/gimpconfig-deserialize.h
      	* libgimpconfig/gimpconfig-error.h
      	* libgimpconfig/gimpconfig-iface.h
      	* libgimpconfig/gimpconfig-params.h
      	* libgimpconfig/gimpconfig-path.h
      	* libgimpconfig/gimpconfig-serialize.h
      	* libgimpconfig/gimpconfig-utils.h: added G_BEGIN_DECLS/G_END_DECLS.
  4. 07 Apr, 2005 1 commit
    • Sven Neumann's avatar
      changed GimpConfig utility functions to take GObject variables instead of · 333593da
      Sven Neumann authored
      2005-04-07  Sven Neumann  <sven@gimp.org>
      	* libgimpconfig/gimpconfig-utils.[ch]: changed GimpConfig utility
      	functions to take GObject variables instead of GimpConfig. There's
      	nothing GimpConfig specific about these utilities.
      	* app/actions/templates-commands.c
      	* app/actions/tool-options-commands.c
      	* app/base/base.c
      	* app/config/gimpcoreconfig.c
      	* app/config/gimpdisplayconfig.c
      	* app/config/gimprc.c
      	* app/core/gimpimage-grid.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpstrokedesc.c
      	* app/dialogs/grid-dialog.c
      	* app/dialogs/image-new-dialog.c
      	* app/dialogs/stroke-dialog.c
      	* app/display/gimpdisplayshell.c
      	* app/text/gimptextlayer.c
      	* app/text/gimptextundo.c
      	* app/tools/gimptextoptions.c
      	* libgimpconfig/gimpconfig-iface.c: changed accordingly.
  5. 06 Apr, 2005 1 commit
    • Sven Neumann's avatar
      added new function to reset a single property to its default value. · 7647db53
      Sven Neumann authored
      2005-04-06  Sven Neumann  <sven@gimp.org>
      	* libgimpconfig/gimpconfig-utils.[ch]: added new function to reset
      	a single property to its default value.
      	* libgimpconfig/gimpconfig.def: updated.
      	* app/config/gimpbaseconfig.[ch]: reverted last change.
      	* app/base/base.c: use gimp_config_reset_property() instead.
  6. 25 Jan, 2005 1 commit
  7. 24 Jan, 2005 1 commit
    • Sven Neumann's avatar
      app/config/Makefile.am app/config/gimpconfig-file.[ch] more new files, · 73c055bb
      Sven Neumann authored
      2005-01-24  Sven Neumann  <sven@gimp.org>
      	* app/config/Makefile.am
      	* app/config/gimpconfig-file.[ch]
      	* app/config/gimprc-utils.[ch]: more new files, code factored out
      	of gimpconfig-utils.[ch].
      	* app/config/gimpconfig-path.[ch]
      	* app/config/gimpconfig-utils.[ch]
      	* app/config/gimpcoreconfig.c
      	* app/config/gimpguiconfig.c
      	* app/config/gimppluginconfig.c
      	* app/config/gimprc.c
      	* app/core/gimp-units.c
      	* app/dialogs/user-install-dialog.c
      	* app/gui/session.c: changed accordingly.
  8. 28 Jan, 2004 1 commit
    • Michael Natterer's avatar
      Added infrastructure to make sure we don't write to the global brush, · 894cf70d
      Michael Natterer authored
      2004-01-28  Michael Natterer  <mitch@gimp.org>
      	Added infrastructure to make sure we don't write to the global
      	brush, pattern etc. directories. Needed to make this configurable
      	because we can't rely on the global directories being read-only,
      	having certain names or being otherwise detectable at runtime in a
      	sane way. Fixes bug #132214.
      	* libgimpbase/gimpdatafiles.[ch]: added "const gchar *dirname" to
      	the GimpDataFileData struct so callbacks don't need to call
      	g_path_get_dirname() for each file.
      	* libgimpwidgets/gimpfileentry.c: made it work with non UTF-8
      	encoded filenames.
      	* libgimpwidgets/gimppatheditor.[ch]: ditto. Added GUI and API for
      	setting/getting a second "writable_path". The widget makes sure
      	that the writable_path is always a subset of the path.
      	* app/config/gimpconfig-utils.[ch]: added new function
      	* app/config/gimpcoreconfig.[ch]: added separate properties for
      	the writable brush, pattern, gradient, palette and font paths.
      	* app/config/gimprc-blurbs.h: added (still empty) blurbs for the
      	new properties.
      	* app/core/gimpdata.[ch] (gimp_data_set_filename): added parameter
      	"gboolean writable". Set data->writable to FALSE by default. If
      	"writable" is passed as TRUE, still check if we can write to the
      	file before setting data->writable to TRUE.
      	(gimp_data_create_filename): changed "data_path" parameter to
      	"dest_dir" and assume dest_dir is writable.
      	(gimp_data_duplicate): set data->dirty to TRUE to make sure
      	duplicated things will be saved.
      	* app/core/gimpbrush.c
      	* app/core/gimpbrushgenerated.c
      	* app/core/gimpbrushpipe.c
      	* app/core/gimpgradient.c
      	* app/core/gimppalette.c
      	* app/core/gimppattern.c: don't set the data's filename and don't
      	touch data->dirty in the _load() functions because that's done by
      	the data factory now. Don't touch data->dirty in the _duplicate()
      	functions because that's done by gimp_data_duplicate() itself now.
      	* app/core/gimpdatafactory.[ch] (gimp_data_factory_new): added
      	"writable_property_name" and remember it.
      	Added utility function gimp_data_factory_get_save_dir() which
      	determines the directory to save new datas to.
      	Added public function gimp_data_factory_data_save_single() which
      	saves a single data object.
      	Make sure new things get saved to the first writable directory
      	as specified in preferences.
      	* app/core/gimp.c (gimp_real_initialize): pass the writable_paths'
      	property names to gimp_data_factory_new().
      	* app/widgets/gimpdataeditor.c (gimp_data_editor_save_dirty): use
      	gimp_data_factory_data_save_single() instead of implementing
      	saving here.
      	* app/widgets/gimppropwidgets.[ch] (gimp_prop_path_editor_new):
      	added "const gchar *writable_property_name" parameter (can be
      	Added the needed callbacks to handle the writable_path and made
      	the path_editor and file_entry code aware of non UTF-8 filename
      	encodings. Some general cleanup.
      	* app/gui/preferences-dialog.c: changed accordingly.
  9. 25 Oct, 2003 1 commit
    • Sven Neumann's avatar
      make it a two-way connection and added a property_name parameter so it can · f7db733e
      Sven Neumann authored
      2003-10-25  Sven Neumann  <sven@gimp.org>
      	* app/config/gimpconfig-utils.[ch] (gimp_config_connect): make it
      	a two-way connection and added a property_name parameter so it
      	can be used to connect only a certain property.
      	* app/tools/gimptexttool.c: changed accordingly.
      	* app/tools/gimphistogramoptions.c: use gimp_config_connect().
      	Changed the default histogram scale to linear.
  10. 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
      	* 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.
  11. 14 Oct, 2003 1 commit
    • Sven Neumann's avatar
      removed gimp_config_copy_properties() and added the more intelligent · 737da424
      Sven Neumann authored
      2003-10-14  Sven Neumann  <sven@gimp.org>
      	* app/config/gimpconfig-utils.[ch]: removed
      	gimp_config_copy_properties() and added the more intelligent
      	gimp_config_sync() instead.
      	* app/config/Makefile.am
      	* app/config/config-types.h
      	* app/config/gimpcoreconfig.[ch]
      	* app/config/gimprc-blurbs.h: replaced default image properties
      	with a single GimpTemplate object property. Changed the
      	set_property function to not replace aggregate objects but call
      	gimp_config_sync() instead.
      	* app/tools/gimptextoptions.c (gimp_text_options_set_property):
      	same change here.
      	* app/config/gimpconfig.[ch]: changed return value of
      	gimp_config_duplicate() to gpointer to avoid some casts that only
      	made the code harder to read.
      	* app/widgets/gimptemplateeditor.[ch]: don't keep an internal copy
      	here but edit the GimpTemplate passed when the editor was
      	* app/gui/preferences-dialog.c: use a GimpTemplateEditor to allow
      	editing of the default image paramaters.
      	* app/config/gimprc.c
      	* app/core/core-types.h
      	* app/core/gimp.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-grid.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpimage-undo-push.c
      	* app/core/gimpimage.c
      	* app/core/gimptemplate.[ch]
      	* app/gui/file-new-dialog.c
      	* app/gui/grid-dialog.c
      	* app/gui/info-window.c
      	* app/gui/resize-dialog.c
      	* app/gui/templates-commands.[ch]
      	* app/gui/tool-options-commands.c
      	* app/text/gimptextlayer.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimptexttool.c
      	* app/widgets/gimptemplateview.c
      	* app/xcf/xcf-load.c: changed accordingly.
  12. 12 Oct, 2003 1 commit
    • Sven Neumann's avatar
      removed function gimp_config_serialize_comment()... · 4ea392ef
      Sven Neumann authored
      2003-10-12  Sven Neumann  <sven@gimp.org>
      	* app/config/gimpconfig-serialize.[ch]: removed function
      	* app/config/gimpconfig-utils.[ch]: removed function
      	* app/config/gimpconfigwriter.[ch]: ... and implement both here.
      	Added a comment mode to GimpConfigWriter.
      	* app/config/gimpconfig-dump.c: handle GimpConfig properties.
      	* doc/gimprc-1.3.5.in
      	* etc/gimprc: regenerated by gimpconfig-dump.
  13. 11 Oct, 2003 1 commit
    • Sven Neumann's avatar
      app/widgets/gimpdocked.[ch] renamed GimpDockedIface to · a88e11af
      Sven Neumann authored
      2003-10-11  Sven Neumann  <sven@gimp.org>
      	* app/widgets/gimpdocked.[ch]
      	* app/widgets/widgets-types.h: renamed GimpDockedIface to
      	* app/display/gimpnavigationview.c
      	* app/widgets/gimpcoloreditor.c
      	* app/widgets/gimpcontainereditor.c
      	* app/widgets/gimpcontainerview.c
      	* app/widgets/gimpeditor.c
      	* app/widgets/gimpimageeditor.c
      	* app/widgets/gimpitemtreeview.c
      	* app/widgets/gimptooloptionseditor.c: changed accordingly.
      	* app/config/config-types.h
      	* app/config/gimpconfig.[ch]
      	* app/config/gimpconfig-deserialize.[ch]
      	* app/config/gimpconfig-serialize.[ch]
      	* app/config/gimpconfig-utils.[ch]: added a GimpConfig typedef and
      	changed the GimpConfig API to take GimpConfig instead of GObject
      	* app/config/gimpconfig-dump.c
      	* app/config/gimprc.c
      	* app/config/test-config.c
      	* app/core/gimp-documents.c
      	* app/core/gimp-parasites.c
      	* app/core/gimp-templates.c
      	* app/core/gimp.[ch]
      	* app/core/gimpcontainer.c
      	* app/core/gimpcontext.c
      	* app/core/gimpdocumentlist.c
      	* app/core/gimpgrid.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpimage.c
      	* app/core/gimpparasitelist.c
      	* app/core/gimptemplate.c
      	* app/core/gimptooloptions.c
      	* app/core/gimpviewable.c
      	* app/gui/grid-dialog.c
      	* app/gui/preferences-dialog.c
      	* app/gui/stroke-dialog.c
      	* app/gui/templates-commands.c
      	* app/gui/tool-options-commands.c
      	* app/paint/gimppaintcore.c
      	* app/pdb/gimprc_cmds.c
      	* app/text/gimptext-parasite.c
      	* app/text/gimptext.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimp-tools.c
      	* app/tools/gimptexttool.c
      	* app/widgets/gimpdevices.c
      	* app/widgets/gimptemplateeditor.c
      	* app/widgets/gimptemplateview.c
      	* tools/pdbgen/pdb/gimprc.pdb: changed accordingly.
  14. 24 Jul, 2003 1 commit
    • Sven Neumann's avatar
      app/config/Makefile.am moved code from gimpconfig.[ch] to these new files. · d75a2f79
      Sven Neumann authored
      2003-07-24  Sven Neumann  <sven@gimp.org>
      	* app/config/Makefile.am
      	* app/config/gimpconfig-error.[ch]: moved code from gimpconfig.[ch]
      	to these new files.
      	* app/config/gimpconfig-utils.[ch]: moved gimp_config_string_indent()
      	here from gimpconfig.[ch].
      	* app/config/gimpconfig.[ch]
      	* app/config/gimpconfigwriter.c
      	* app/config/gimprc.c
      	* app/config/gimpscanner.c
      	* app/core/gimp-documents.c
      	* app/core/gimp-parasites.c
      	* app/core/gimp-templates.c
      	* app/widgets/gimpdevices.c: changed accordingly.
  15. 17 Mar, 2003 1 commit
    • Sven Neumann's avatar
      added the new function gimp_config_string_append_escaped(), see inline · b6dbe729
      Sven Neumann authored
      2003-03-17  Sven Neumann  <sven@gimp.org>
      	* app/config/gimpconfig-utils.[ch]: added the new function
      	gimp_config_string_append_escaped(), see inline docs.
      	* app/config/gimpconfig-serialize.c
      	* app/config/gimpconfigwriter.c
      	* app/core/gimpcontainer.c: use the new function instead of
  16. 10 Feb, 2003 1 commit
    • Sven Neumann's avatar
      added new utility functions gimp_config_connect() and · 5d402908
      Sven Neumann authored
      2003-02-10  Sven Neumann  <sven@gimp.org>
      	* app/config/gimpconfig-utils.[ch]: added new utility functions
      	gimp_config_connect() and gimp_config_disconnect() and documented
      	most functions.
      	* app/tools/gimptexttool.c (gimp_text_tool_connect): use the new
      	GimpConfig utility functions.
  17. 01 Feb, 2003 1 commit
    • Sven Neumann's avatar
      app/config/gimpconfig.[ch] added a reset method to GimpConfigInterface. · 47f2a7f8
      Sven Neumann authored
      2003-02-01  Sven Neumann  <sven@gimp.org>
      	* app/config/gimpconfig.[ch]
      	* app/config/gimpconfig-utils.[ch]: added a reset method to
      	GimpConfigInterface. Added the new function gimp_config_reset()
      	* app/text/gimptext.c: added a GimpConfigInterface to GimpText.
      	* app/widgets/Makefile.am
      	* app/widgets/gimptexteditor.[ch]: new files that hold the simple
      	text editor dialog used by the text tool.
      	* app/widgets/gimppropwidgets.[ch]: added new widget constructor
      	* app/tools/gimptexttool.[ch]: replaced old-style ToolOptions with
      	a GimpText object. Connect text layers to the text tool by means
      	of their GimpText objects. Still work in progress ...
  18. 25 Nov, 2002 1 commit
    • Michael Natterer's avatar
      added gimp_config_diff() which returns the difference beween two · 1229d8c8
      Michael Natterer authored
      2002-11-25  Michael Natterer  <mitch@gimp.org>
      	* app/config/gimpconfig-utils.[ch]: added gimp_config_diff()
      	which returns the difference beween two GimpConfig objects
      	as a GList of GParamSpecs.
      	* app/config/gimpconfig-params.c (gimp_param_color_cmp): compare
      	the colors as integers to get rid of rounding foobar.
      	* app/config/gimpconfig-serialize.c: use gimp_config_diff().
      	* app/display/gimpdisplayshell-handlers.c: only need to call
      	gimp_display_shell_scale_setup() on resolution change if the
      	display is not in dot-for-dot mode.
      	* app/display/gimpdisplayshell.c: changed a separator in the
      	padding color menu.
      	* app/gui/dialogs.c: made the prefs dialog a singleton again.
      	* app/gui/preferences-dialog.c: Should be fully functional again:
      	Apply GIMP_PARAM_CONFIRM properties on "OK". Save gimprc on "OK".
      	Parse a temporaty GimpRc on dialog creation to get the current
      	GIMP_PARAM_RESTART values. Use gimp_config_diff() for all config
  19. 23 Nov, 2002 1 commit
    • Michael Natterer's avatar
      removed gimp_config_values_equal(). · 4ce4adf8
      Michael Natterer authored
      2002-11-23  Michael Natterer  <mitch@gimp.org>
      	* app/config/gimpconfig-utils.[ch]: removed
      	* app/config/gimpconfig-serialize.c
      	* app/config/gimpconfig.c: use g_param_values_cmp() instead so
      	our registered compare methods are used.
      	* app/config/gimpdisplayconfig.[ch]: added "canvas_padding_mode"
      	and "canvas_padding_color" properties.
      	* app/display/display-enums.[ch]: added enum GimpDisplayPaddingMode
      	which can be one of { theme, light check, dark check, custom }.
      	* app/display/gimpdisplay.h
      	* app/display/gimpdisplay-handlers.c: removed cached monitor
      	resolution values...
      	* app/display/gimpdisplayshell.[ch]: ...and added them here. Added
      	padding state as in GimpDisplayConfig. Added utility function
      	gimp_display_shell_set_padding() which hides all the details.
      	Added the new padding modes to the padding color button's context
      	* app/display/gimpdisplayshell-callbacks.[ch]: don't fiddle
      	with colors manually but use gimp_display_shell_set_padding()
      	in realize() and in the color button callbacks.
      	* app/display/gimpdisplayshell-handlers.c: connect to
      	notify::monitor-[xy]resolution and
      	notify::canvas-padding-[mode|color] and update accordingly.
      	* app/widgets/gimppropwidgets.[ch]: added
      	* app/widgets/gimpdialogfactory.[ch]: added
      	gimp_dialog_factories_session_clear() (unimplemented).
      	* app/gui/preferences-dialog.c: added widgets for padding mode and
      	color. Removed some callbacks by connecting the functions they
      	called directly. Cleanup.
  20. 05 May, 2002 1 commit
    • Sven Neumann's avatar
      app/config/gimpconfig-serialize.c app/config/gimpconfig-utils.[ch] · 7f6b1d55
      Sven Neumann authored
      2002-05-06  Sven Neumann  <sven@gimp.org>
      	* app/config/gimpconfig-serialize.c
      	* app/config/gimpconfig-utils.[ch]
      	* app/config/gimpconfig.[ch]
      	* app/config/gimprc.[ch]: added a GimpRc implementation of
      	gimp_config_duplicate() that also copies unknown tokens. Added new
      	function gimp_rc_query().
      	* app/config/test-config.c: added tests for gimp_rc_query().
      	* app/config/Makefile.am: need to link test app against libappwidgets.
  21. 03 May, 2002 1 commit
    • Sven Neumann's avatar
      app/arch/i386/mmx/detect_mmx.S applied a patch from iccii@hotmail.com that · 43c602dc
      Sven Neumann authored
      2002-05-04  Sven Neumann  <sven@gimp.org>
      	* app/arch/i386/mmx/detect_mmx.S
      	* app/arch/i386/mmx/paint_funcs_mmx.S: applied a patch from
      	iccii@hotmail.com that promises to fix build on mingw (bug #80681).
      	* app/config/gimpconfig-serialize.c
      	* app/config/gimpconfig-utils.[ch]: moved value compare function to
      	* app/config/gimpconfig.[ch]: added duplicate and compare functions
      	to GimpConfigInterface so derived interfaces can override them.
      	* app/tools/gimptexttool.c: fixed tool cursor.
  22. 18 Dec, 2001 1 commit
    • Sven Neumann's avatar
      app/config/Makefile.am new files with utility functions. · def233b4
      Sven Neumann authored
      2001-12-18  Sven Neumann  <sven@gimp.org>
      	* app/config/Makefile.am
      	* app/config/gimpconfig-utils.[ch]: new files with utility functions.
      	* app/config/gimpdisplayconfig.[ch]: new class with display config
      	properties so GimpGuiConfig doesn't get too large.
      	* app/config/gimpbaseconfig.c
      	* app/config/gimpcoreconfig.[ch]
      	* app/config/gimpguiconfig.[ch]: install path properties with
      	useable defaults (substituted gimpdir and friends). Moved properties
      	* app/gui/session.c: removed outdated comment.
  23. 11 Aug, 2001 1 commit
    • Michael Natterer's avatar
      app/core/Makefile.am new file implementing the docindex.* replacement. · 4305c39c
      Michael Natterer authored
      2001-08-11  Michael Natterer  <mitch@gimp.org>
      	* app/core/Makefile.am
      	* app/core/gimpdocuments.[ch]: new file implementing the
      	docindex.* replacement.
      	* app/gimprc.c: added TT_XDOCUMENT to parse the new document
      	* app/file-save.c
      	* app/gui/file-open-dialog.c: add opened & saved images to the
      	document history.
      	* app/core/gimp.c: call gimp_documents_init/exit() instead of
      	doing it here.
      	* app/core/gimpimagefile.[ch]: removed the "filename" attribute
      	and use GimpObject's "name" instead.
      	* app/gui/dialogs-constructors.[ch]
      	* app/gui/dialogs.c
      	* app/gui/menus.c: added a menu entry/dockable for the document
      	* app/widgets/gimpdnd.[ch]: make it DND-able.
      	* app/widgets/gimppreview.c: fix  preview rendering correctly this
  24. 07 Jul, 2001 1 commit
    • Michael Natterer's avatar
      app/Makefile.am removed. · 1bcd3e18
      Michael Natterer authored
      2001-07-07  Michael Natterer  <mitch@gimp.org>
      	* app/Makefile.am
      	* app/context_manager.[ch]: removed.
      	* app/app_procs.c: call tool_mananger instead of context_manager
      	functions, pass "the_gimp" to some more functions.
      	* app/drawable.[ch]: pass a GimpContext to drawable_fill().
      	* app/errors.c: behave according to "stack_trace_mode" when using
      	the debugging signal handler.
      	* app/gimprc.[ch]: removed the core/ config variables.
      	* app/selection.c: set the selection's state to INVISIBLE in
      	* app/core/Makefile.am
      	* app/core/gimpcoreconfig.[ch]: new files (the configuration
      	variables used by core/).
      	* app/core/gimpcontext.[ch]: removed the global contexts (user,
      	default, ...) and their functions. It's no longer possible to pass
      	NULL to the context functions to manipulate the current context
      	(gimpcontext.c doesn't know the current context any more).
      	* app/core/gimp.[ch]: added them here. The functions are now called
      	gimp_[set|get]_*_context(). Added gimp_create_context() which is
      	the only function to create contexts now.
      	* app/gui/dialogs.[ch]
      	* app/gui/gui.[ch]: pass "gimp" to all functions.
      	* app/tools/tool_manager.[ch]
      	* app/tools/tools.[ch]: pass "gimp" to lots of functions. Added
      	the "global_tool_context" logic and the global/non-global paint
      	options switching from the context_manager. Pass "gimp" to all
      	tools' "register" functions.
      	* app/tools/*: changed accordingly.
      	* app/devices.c
      	* app/disp_callbacks.c
      	* app/file-open.[ch]
      	* app/file-save.c
      	* app/gdisplay.c
      	* app/gimage.c
      	* app/libgimp_glue.c
      	* app/module_db.c
      	* app/nav_window.c
      	* app/plug_in.c
      	* app/qmask.c
      	* app/undo.c
      	* app/base/base-config.c
      	* app/core/gimpbrushpipe.c
      	* app/core/gimpdrawable-offset.c
      	* app/core/gimpgradient.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpimage.c
      	* app/core/gimppalette.c
      	* app/core/gimptoolinfo.[ch]
      	* app/core/gimpundo.c
      	* app/gui/brush-select.c
      	* app/gui/channels-commands.c
      	* app/gui/color-area.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/file-new-dialog.c
      	* app/gui/file-open-dialog.c
      	* app/gui/gradient-editor.c
      	* app/gui/gradient-select.c
      	* app/gui/info-window.c
      	* app/gui/layers-commands.c
      	* app/gui/menus.c
      	* app/gui/palette-editor.c
      	* app/gui/palette-import-dialog.c
      	* app/gui/palette-select.c
      	* app/gui/paths-dialog.c
      	* app/gui/pattern-select.c
      	* app/gui/preferences-dialog.c
      	* app/gui/resize-dialog.c
      	* app/gui/test-commands.c
      	* app/gui/tool-options-dialog.c
      	* app/gui/toolbox.c
      	* app/gui/tools-commands.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c
      	* app/widgets/gimpchannellistview.c
      	* app/widgets/gimpdnd.c
      	* app/widgets/gimpdrawablelistview.[ch]
      	* app/widgets/gimpimagedock.c
      	* app/widgets/gimplayerlistview.c
      	* app/pdb/brushes_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/gradient_select_cmds.c
      	* app/pdb/gradients_cmds.c
      	* app/pdb/palette_cmds.c
      	* app/pdb/patterns_cmds.c
      	* app/pdb/procedural_db.c
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/palette.pdb
      	* tools/pdbgen/pdb/patterns.pdb: changed accordingly: remove usage
      	of gimp_context_[get|set]_*(NULL), create contexts with
      	gimp_create_context(). Get the user/current context with
      	gimp_get_[user|current]_context(). Added/removed access to the
      	global "the_gimp" variable in some places. Get the core's config
      	variables from "core_config".
  25. 01 May, 2001 1 commit
    • Michael Natterer's avatar
      removed more GUI initialisation code. · d010bb5f
      Michael Natterer authored
      2001-05-01  Michael Natterer  <mitch@gimp.org>
      	* app/app_procs.c: removed more GUI initialisation code.
      	* app/color_transfer.c: removed useless includes.
      	* app/gui/brush-editor.[ch]
      	* app/gui/dialogs-constructors.c:
      	s/BrushEditGeneratedWindow/BrushEditor/, s/begw/brush_editor/, made
      	the brush preview of the editor autoresizing.
      	* app/gui/dialogs.h: removed "extern" declaration of non-existant
      	* app/gui/gui.[ch]: new function gui_post_init() which shows the
      	tips dialog.
      	* app/gui/tips-dialog.c: made signal handling nicer (clean up in a
      	"destroy" handler).
      	* app/gui/toolbox.[ch]: removed toolbox_raise(), removed the help
      	system (de)initialisation code which is now in gui.c, cleanup.
  26. 16 Apr, 2001 1 commit
    • Michael Natterer's avatar
      First attempt to get the docks session managed: · 059e7773
      Michael Natterer authored
      2001-04-16  Michael Natterer  <mitch@gimp.org>
      	First attempt to get the docks session managed:
      	* app/gimprc.c: new gimprc type "new-session-info" which will soon
      	replace the original one.
      	* app/menus.c
      	* app/gui/dialogs.c: s/_/-/g in all dialog identifier strings.
      	* app/session.[ch]: call the dialog factory's session functions.
      	* app/test_commands.c: use the dialog factory to create the tabs.
      	* app/gui/dialogs-commands.c
      	* app/gui/dialogs-constructors.[ch]: the constructors return widgets,
      	not dockables now.
      	* app/widgets/gimpdialogfactory.[ch]: maintain a list of dialog
      	factories in the class struct. Added ugly code to do the GimpDock
      	session management.
      	* app/gui/gui.c
      	* app/widgets/gimpdock.c: changed accordingly.
  27. 14 Apr, 2001 1 commit
    • Michael Natterer's avatar
      configure.in app/Makefile.am new directory which will contain all gui code · 517de92a
      Michael Natterer authored
      2001-04-14  Michael Natterer  <mitch@gimp.org>
      	* configure.in
      	* app/Makefile.am
      	* app/gui/Makefile.am: new directory which will contain all gui code
      	except widgets (I was tired off adding new files to app/).
      	* app/apptypes.h
      	* app/gui/gimpdialogfactory.[ch]: factory which produces dialogs
      	from string descriptions. Should maybe go to widgets/.
      	* app/gui/dialogs-commands.[ch]: callbacks for the new menu
      	factory below.
      	* app/gui/dialogs-constructors.[ch]: dialog constructors which are
      	registered with the dialog factory.
      	* app/gui/dialogs.[ch]: register the dialogs with the factory.
      	* app/app_procs.c: call dialogs_register().
      	* app/menus.[ch]: a new item factory for creating dialogs.
      	* app/test_commands.c
      	* app/widgets/gimpdock.[ch]: added a dialog factory pointer to the
      	GimpDock struct.
      	* app/widgets/gimpdockbook.[ch]: badly (badly!) fiddle around with
      	GtkNotebook's menu to get it integrated in the GtkItemFactory
      	which produces new dialogs.
  28. 24 Feb, 2001 1 commit
    • Michael Natterer's avatar
      added cmd_callbacks for the toolbox and the preferences dialog. · 04f71318
      Michael Natterer authored
      2001-02-24  Michael Natterer  <mitch@gimp.org>
      	* app/commands.[ch]: added cmd_callbacks for the toolbox and
      	the preferences dialog.
      	* app/context_manager.c: cleanup.
      	* app/gimppreview.[ch]: made gimp_preview_render() public.
      	* app/gimptoolinfopreview.c
      	* app/tools/gimptoolinfo.c: the tool previews look nice now but
      	are still ugly implemented (it renders tons of temp_bufs on each
      	state change).
      	* app/indicator_area.[ch]: pass a context to the constructor.
      	* app/menus.c: don't call the toolbox and the prefs dialog
      	directly but dispatch via commands.[ch]
      	* app/preferences_dialog.[ch]
      	* app/toolbox.[ch]: renamed the constructor / raise function, cleanup.
      	* app/tools/color_picker.c: tried to get the shortcut working again.
      	* app/tools/paint_options.c: the brush dialog's paint options
      	are shown/hidden from the context manager now.
  29. 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.
  30. 25 Sep, 2000 1 commit
  31. 27 Sep, 1999 1 commit
    • Michael Natterer's avatar
      app/Makefile.am app/gimphelp.[ch] new files · 002aa905
      Michael Natterer authored
      1999-09-27  Michael Natterer  <mitch@gimp.org>
      	* app/Makefile.am
      	* app/gimphelp.[ch]
      	* app/gimpui.[ch]: new files
      	* app/interface.[ch]
      	* app/preferences_dialog.[ch]
      	The GIMP Help System part 1: Press "F1" in any dialog to pop up
      	the help page for this dialog.
      	Moved the widget constructors from preferences_dialog.[ch] and the
      	query boxes from interface.[ch] to gimpui.[ch].
      	The dialog constructors take a help_func and a help_data
      	parameter and install the "F1" accelerator which emits the new
      	"help" signal.
      	The "help" signal callback calls help_func(help_data) which finally
      	has to call gimp_help() which in turn invokes the help browser.
      	Still have to find a proper way to (1) prevent "F1" being assigned
      	to some menu item and (2) to catch "F1" while browsing the menu
      	trees in order to pop up the help for the selected item.
      	* app/menus.c: a <Toolbox>/File/Help... menu item.
      	* app/commands.[ch]: a command callback for the "Help..." menu item.
      	* app/gimprc.[ch]: new boolean gimprc variable "use_help".
      	* app/info_dialog.[ch]: pass a help function and data to the info
      	dialog constructor.
      	* app/tools.[ch]: store the tools help page names in the tool info
      	structure. Export a special tools_help_func() which shows the help
      	page for the active tool.
      	* app/[all files calling a dialog constructor]: pass the dialog's
      	help page to the constructor.
      	Most dialogs are now created by gimp_dialog_new() which also sets
      	up the action_area and the WM delete event callback, so I removed
      	the resp. code from these files.
      	Fixed some minor bugs and did some other stuff but didn't change
      	any logic except dialog creation.
      	* plug-ins/helpbrowser/helpbrowser.c: don't try to call a running
      	help browser and don't install any menu path (all done in
      	app/gimphelp.[ch] now).
  32. 22 Aug, 1999 1 commit
    • Tor Lillqvist's avatar
      Use spinbutton for number of colours. · 32879baf
      Tor Lillqvist authored
      1999-08-22  Tor Lillqvist  <tml@iki.fi>
      * app/convert.c: Use spinbutton for number of colours.
      * app/preferences_dialog.h: Export gimp_spin_button_new. Not the
      most logical place for it, though.
  33. 27 Mar, 1999 1 commit
  34. 08 Jun, 1998 1 commit