1. 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
      d9b5207a
  2. 09 Dec, 2006 1 commit
  3. 09 Oct, 2006 1 commit
    • Michael Natterer's avatar
      Added message severities and make sure all messages are routed through a · f5afb754
      Michael Natterer authored
      2006-10-09  Michael Natterer  <mitch@gimp.org>
      
      	Added message severities and make sure all messages are routed
      	through a central function, so redirecting to the error console or
      	stderr work again:
      
      	* app/core/core-enums.[ch]: added enum GimpMessageSeverity { INFO,
      	WARNING, ERROR }.
      
      	* app/core/gimp.[ch] (gimp_message)
      	(gimp_message_valist): added severity parameter. Changed
      	"GimpProgress *progress" parameter to "GObject *handler", where
      	"handler" can be either a GimpProgress, a GtkWidget or NULL.
      
      	* app/core/gimp-gui.[ch] (gimp_show_message): ditto. Honor
      	--console-messages again. Always dispatch to the GUI message
      	handler first if it exists.
      
      	* app/gui/gui-message.[ch]: pass severity parameters around.
      
      	(gui_message_error_dialog): if "handler" is a progress, dispatch
      	the message to it first. If it is a widget (and *not* a progress),
      	use a GtkMessageDialog on top of that widget's toplevel. Fall
      	back to the usual GimpErrorDialog otherwise.
      
      	* app/core/gimpprogress.[ch] (gimp_progress_message): added
      	severity parameter. Also added boolean return value to the virtual
      	function so it can decide to fail if it can't handle the message.
      
      	* app/display/gimpdisplay.c: implement GimpProgress::message() and
      	redirect the message to GimpDisplayShell.
      
      	* app/display/gimpdisplayshell-progress.c: implement
      	GimpProgress::message() and redirect the message to GimpStatusbar
      	if it is not an error and if the status bar is visible.
      
      	* app/display/gimpstatusbar.[ch]: implement GimpProgress::message(),
      	but fail on messages that contain a newline. Show the right icons
      	for the message severities (work in progress).
      
      	* app/display/gimpdisplayshell.[ch]: removed
      	gimp_display_shell_message() and its _valist() variant.
      
      	* app/widgets/gimperrorconsole.[ch]: show the right icons for the
      	message severities.
      
      	* app/widgets/gimpthumbbox.c (gimp_thumb_box_progress_message):
      	return TRUE to swallow all messages.
      
      	* app/widgets/gimpwidgets-utils.[ch]: removed
      	gimp_show_message_dialog(). Added gimp_get_message_stock_id().
      
      	* app/errors.c
      	* app/actions/edit-commands.c
      	* app/actions/error-console-commands.c
      	* app/actions/file-commands.c
      	* app/actions/select-commands.c
      	* app/actions/text-editor-commands.c
      	* app/actions/vectors-commands.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimagefile.c
      	* app/dialogs/convert-dialog.c
      	* app/dialogs/file-open-dialog.c
      	* app/dialogs/file-open-location-dialog.c
      	* app/dialogs/file-save-dialog.c
      	* app/dialogs/palette-import-dialog.c
      	* app/dialogs/stroke-dialog.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/pdb/gimppdb.c
      	* app/plug-in/gimpplugin.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimptool.c
      	* app/tools/gimpvectortool.c
      	* app/widgets/gimpactionview.c
      	* app/widgets/gimpcontrollerlist.c
      	* app/widgets/gimppdbdialog.c
      	* app/widgets/gimpvectorstreeview.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/brush.pdb
      	* tools/pdbgen/pdb/gradient.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/message.pdb
      	* tools/pdbgen/pdb/palette.pdb: added severity parameter to
      	gimp_message() calls. Convert all calls to
      	gimp_show_message_dialog() and gimp_display_shell_message() to
      	gimp_message(). Also converted some more g_message() calls.
      
      	* app/pdb/brush_cmds.c
      	* app/pdb/gradient_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/message_cmds.c
      	* app/pdb/palette_cmds.c: regenerated.
      f5afb754
  4. 19 Jul, 2006 1 commit
    • Sven Neumann's avatar
      Make message dialogs transient for the progress window. Addresses bug · 6d922b21
      Sven Neumann authored
      2006-07-19  Sven Neumann  <sven@gimp.org>
      
      	Make message dialogs transient for the progress window.
      Addresses
      	bug #347214.
      
      	* app/core/gimp-gui.[ch]: added a progress parameter to
      	gimp_message().  Let gimp_message() deal with optionally
      	delegating the message to gimp_progress_message().
      
      	* app/errors.c: changed accordingly.
      
      	* app/core/gimpprogress.[ch] (gimp_progress_message): return a
      	boolean indicating whether the message was handled.
      
      	* app/gui/Makefile.am
      	* app/gui/gui-message.[ch]
      	* app/gui/gui-vtable.c: moved message handling to a new file.
      Only
      	use the global error dialog for messages without a progress.
      	Otherwise attach an error dialog to the progress and try to make
      	it transient to the progress window.
      
      	* tools/pdbgen/pdb/message.pdb:
      	* app/plug-in/gimpplugin-progress.[ch]: don't delegate messages
      to
      	the progress interface, this is handled by gimp_message() now.
      
      	* app/pdb/message_cmds.c: regenerated.
      
      	* app/plug-in/gimpplugin.c
      	* app/actions/documents-commands.c: formatting.
      6d922b21
  5. 02 Oct, 2003 1 commit
    • Michael Natterer's avatar
      Cleaned up the app init and exit stuff even more. Also reduces the number · 89d936f3
      Michael Natterer authored
      2003-10-02  Michael Natterer  <mitch@gimp.org>
      
      	Cleaned up the app init and exit stuff even more. Also reduces the
      	number of missing symbols for gimp-console. Added init and exit
      	debugging output (only for --verbose).
      
      	* app/core/gimpmarshal.list
      	* app/core/gimp.[ch]: added new signals "initialize" and
      	"restore".  Moved plug_ins_init() to Gimp::restore()'s default
      	implementation and plug_ins_exit() to Gimp::exit()'s default
      	implementation. Renamed gimp_set_config() to gimp_load_config()
      	and load GimpRC here. Moved base_init() and base_exit() to this
      	file, too.
      
      	* app/gui/Makefile.am
      	* app/gui/gui-vtable.[ch]: new files split out of gui.c. It was
      	simply too large.
      
      	* app/gui/gui.[ch]: renamed gui_themes_init() to gui_init(),
      	connect to Gimp's "initialize" and "restore" signals and create
      	the GUI stuff in the callbacks. Removed most other public
      	functions since they don't need to be called explicitly any more.
      	Moved the whole tool initialization/shutdown code to this file.
      
      	* app/gui/user-install-dialog.[ch]: changed
      	user_install_dialog_create() to user_install_dialog_run() and
      	added a gtk_main() at the end, so the install dialog's gtk_main()
      	and gtk_main_quit() live in the same file.
      
      	* app/app_procs.c: removed lots of stuff. app_init() is much
      	simpler now.
      89d936f3
  6. 18 Oct, 2001 1 commit
    • Michael Natterer's avatar
      app/Makefile.am removed. · be86df2a
      Michael Natterer authored
      2001-10-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/module_db.[ch]: removed.
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpmoduleinfo.[ch]
      	* app/core/gimpmodules.[ch]: new files containing the module info
      	object and the module list handling code.
      
      	* app/gui/Makefile.am
      	* app/gui/module-browser.[ch]: new files containing the GUI.
      
      	* app/xcf/xcf.[ch]: pass a "Gimp" pointer to xcf_exit().
      
      	* app/core/gimp.[ch]: handle modules and xcf init/exit here too.
      
      	* app/app_procs.c: don't touch the modules and xcf stuff any more.
      
      	* app/gui/dialogs-constructors.c: changed accordingly.
      
      2001-10-18  Michael Natterer  <mitch@gimp.org>
      
      	* POTFILES.in: module_db.c has moved.
      be86df2a
  7. 04 Jul, 2001 1 commit
    • Michael Natterer's avatar
      app/core/Makefile.am app/core/core-types.h added an "application object" · 01645960
      Michael Natterer authored
      2001-07-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimp.[ch]: added an "application object" called Gimp.
      
      	Currently, it contains the image list, the clipboard, the data
      	factories, the procedural hashtable and the tool info list.  It's
      	the toplevel object of the core object system. Finally, creating a
      	Gimp object will return a standalone gimp core engine instance
      	with no other global states/variables involved.
      
      	* app/app_procs.[ch]: allocate a "Gimp" instance called "the_gimp" :)
      	Removed stuff which is now done by the "Gimp" object. Merged
      	gimp_init() into app_init() because gimp_init() is taken now.
      
      	* app/context_manager.[ch]: removed stuff done by "Gimp".
      
      	* app/batch.[ch]
      	* app/gimage.[ch]
      	* app/xcf/xcf-load.[ch]
      	* app/xcf/xcf.[ch]
      	* app/core/gimpedit.[ch]
      	* app/tools/tool_manager.[ch]: pass around an additional "Gimp"
      	argument.
      
      	* app/pdb/procedural_db.[ch]: pass a "Gimp" pointer as first
      	parameter to all internal procedures and to all procedural_db_*
      	functions.
      
      	* app/core/gimpcontext.[ch]
      	* app/core/gimpimage.[ch]: added a "Gimp" pointer to the structs.
      
      	* app/devices.c
      	* app/errors.c
      	* app/file-open.c
      	* app/file-save.c
      	* app/gimphelp.c
      	* app/gimpunit.c
      	* app/image_new.c
      	* app/main.c
      	* app/nav_window.c
      	* app/plug_in.c
      	* app/base/base.c
      	* app/core/gimpdatafactory.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimptoolinfo.[ch]
      	* app/gui/brush-select.c
      	* app/gui/convert-dialog.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/edit-commands.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/gui/gradient-editor.c
      	* app/gui/gradient-select.c
      	* app/gui/gui.c
      	* app/gui/image-commands.c
      	* app/gui/info-window.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/test-commands.c
      	* app/gui/toolbox.c
      	* app/gui/tools-commands.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimppainttool.h
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.h
      	* app/widgets/gimpbufferview.c
      	* app/widgets/gimpcontainerview-utils.c
      	* app/widgets/gimpcursor.c
      	* app/widgets/gimpdnd.c
      	* app/widgets/gimpimagedock.c: changed accordingly. Cleaned up
      	lots of includes. Many files still access the global "the_gimp"
      	variable exported by app_procs.h.
      
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/palette.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb
      	* tools/pdbgen/pdb/patterns.pdb
      	* tools/pdbgen/pdb/procedural_db.pdb: changed accordingly. Don't
      	use "the_gimp" here because all procedures get passed a "Gimp"
      	pointer now.
      
      	* app/pdb/*: regenerated.
      01645960
  8. 03 Jul, 2001 1 commit
    • Michael Natterer's avatar
      new directory app/xcf/ · 3e36b8f5
      Michael Natterer authored
      2001-07-03  Michael Natterer  <mitch@gimp.org>
      
      	* configure.in: new directory app/xcf/
      
      	* app/Makefile.am
      	* app/global_edit.[ch]
      	* app/xcf.[ch]: removed.
      
      	* app/core/Makefile.am
      	* app/core/gimpedit.[ch]: added here...
      
      	* app/xcf/.cvsignore
      	* app/xcf/Makefile.am
      	* app/xcf/xcf-load.[ch]
      	* app/xcf/xcf-private.h
      	* app/xcf/xcf-read.[ch]
      	* app/xcf/xcf-save.[ch]
      	* app/xcf/xcf-seek.[ch]
      	* app/xcf/xcf-write.[ch]
      	* app/xcf/xcf.[ch]: ...and here (chopped up).
      
      	* app/app_procs.c
      	* app/disp_callbacks.c
      	* app/floating_sel.c
      	* app/gui/edit-commands.c
      	* app/gui/toolbox.c
      	* app/pdb/edit_cmds.c
      	* app/widgets/gimpbufferview.c
      	* tools/pdbgen/pdb/edit.pdb: changed accordingly.
      3e36b8f5
  9. 29 Jan, 2001 1 commit
    • Michael Natterer's avatar
      app/Makefile.am new file. · 227eea67
      Michael Natterer authored
      2001-01-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/undo_history.h: new file.
      
      	* app/apptypes.h: removed the "Channel" typedef.
      
      	* app/channel.[ch]: renamed all functions to gimp_channel_*()
      
      	* app/channel_ops.c
      	* app/channels_dialog.c
      	* app/commands.c
      	* app/disp_callbacks.c
      	* app/gdisplay.c
      	* app/gimage_mask.[ch]
      	* app/gimpdnd.c
      	* app/gimphistogram.c
      	* app/gimpimage.[ch]
      	* app/global_edit.c
      	* app/layer.c
      	* app/layers_dialog.c
      	* app/qmask.c
      	* app/scan_convert.c
      	* app/scan_convert.h
      	* app/toolbox.c
      	* app/undo.[ch]
      	* app/undo_history.c
      	* app/xcf.[ch]
      	* app/pdb/channel_cmds.c
      	* app/pdb/color_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/pdb_glue.h
      	* app/pdb/selection_cmds.c
      	* app/pdb/tools_cmds.c
      	* app/tools/bezier_select.c
      	* app/tools/bezier_selectP.h
      	* app/tools/blend.c
      	* app/tools/bucket_fill.c
      	* app/tools/by_color_select.c
      	* app/tools/crop.c
      	* app/tools/ellipse_select.c
      	* app/tools/free_select.c
      	* app/tools/fuzzy_select.c
      	* app/tools/fuzzy_select.h
      	* app/tools/iscissors.c
      	* app/tools/rect_select.c
      	* app/tools/text_tool.c
      	* app/tools/transform_core.c
      	* tools/pdbgen/pdb.pl
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/tools.pdb: changed accordingly.
      227eea67
  10. 28 Jan, 2001 1 commit
    • Michael Natterer's avatar
      removed the "Layer" typedef. · a2ae989f
      Michael Natterer authored
      2001-01-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/apptypes.h: removed the "Layer" typedef.
      
      	* app/layer.[ch]: removed the defines of the old function names.
      
      	Don't implement methods of the parent class (get_name, get_tattoo, ...)
      	but define them as macros. They will go to a separate "pdb_glue.h"
      	header because they are used only by the PDB to simplify code
      	generation (no application file should say gimp_layer_get_tattoo()
      	but always gimp_drawable_get_tatoo()).
      
      	* app/channel.h
      	* app/channel_ops.c
      	* app/channels_dialog.c
      	* app/commands.c
      	* app/convert.c
      	* app/disp_callbacks.c
      	* app/floating_sel.[ch]
      	* app/gdisplay.c
      	* app/gimage.c
      	* app/gimage_mask.c
      	* app/gimage_mask.h
      	* app/gimpdnd.c
      	* app/gimpdrawable.h
      	* app/gimpimage.[ch]
      	* app/gimplayermask.h
      	* app/global_edit.c
      	* app/image_new.c
      	* app/layer_select.c
      	* app/layers_dialog.c
      	* app/resize.c
      	* app/undo.c
      	* app/xcf.[ch]
      	* app/pdb/drawable_cmds.c
      	* app/pdb/floating_sel_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/tools/bucket_fill.c
      	* app/tools/by_color_select.c
      	* app/tools/clone.c
      	* app/tools/crop.c
      	* app/tools/edit_selection.c
      	* app/tools/ink.c
      	* app/tools/move.c
      	* app/tools/paint_core.c
      	* app/tools/rect_select.c
      	* app/tools/text_tool.c
      	* app/tools/transform_core.c
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/floating_sel.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb: changed accordingly, cleanup.
      a2ae989f
  11. 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.
      8d6c335f
  12. 24 Feb, 2000 1 commit
    • Sven Neumann's avatar
      app/fileops_cmds.c don't add an already registered load|save handler twice · 9ac098c3
      Sven Neumann authored
       * app/fileops_cmds.c
       * tools/pdbgen/pdb/fileops.pdb: don't add an already registered
       load|save handler twice to the list. This fixes the problem
       that extension were listed twice if a load|save plugin changed.
      
       * app/plug_in.[ch]: code cleanup, indentation
      
       * app/xcf.[ch]: same here, include copyright headers
      
       * plug-ins/common/wmf.c: properly cancel the load if the user
         pressed Cancel in the dialog (fixes bug #6500)
      
      
      --Sven
      9ac098c3
  13. 22 Jan, 1998 1 commit
  14. 24 Nov, 1997 1 commit