1. 11 Jul, 2018 1 commit
  2. 27 Jun, 2018 2 commits
    • Jehan's avatar
      libgimpbase: add gimp_pixpipe_params_free(). · 779de4bc
      Jehan authored
      And use it where appropriate. A public API asking you to know the
      internals of your code is a bad idea.
      
      (cherry picked from commit ee25bfc8)
      779de4bc
    • Jehan's avatar
      Issue #1723: gih file that crashes gimp-2.10. · 47163717
      Jehan authored
      The flag `free_selection_string` is used to track an array of strings
      with some of them being static and others allocated. This should have
      been an array of boolean but we can't change it because it is public API
      (though it should really not have been!).
      
      So let's just allocate every string of the `selection` array instead,
      which makes the boolean flag useless now.
      
      (cherry picked from commit b585201e)
      47163717
  3. 22 Jan, 2018 1 commit
  4. 11 Oct, 2014 1 commit
  5. 04 Jul, 2014 2 commits
  6. 02 Jul, 2014 1 commit
  7. 01 Jul, 2014 2 commits
  8. 16 Nov, 2013 1 commit
  9. 14 Oct, 2013 1 commit
    • Michael Natterer's avatar
      app,libgimp*: fix includes to follow our include policy · 697572cc
      Michael Natterer authored
      - don't include <gdk-pixbuf/gdk-pixbuf.h> in headers in app/
      - instead, include it in many .c files instead of <glib-object.h>,
        finally acknowledging the fact that app/ depends on gdk-pixbuf almost
        globally
      - fix up includes as if libgimpbase depended in GIO, which it soon will
      697572cc
  10. 02 May, 2012 2 commits
  11. 05 Apr, 2011 1 commit
  12. 11 Apr, 2010 1 commit
  13. 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
  14. 09 Dec, 2006 1 commit
  15. 03 Oct, 2006 1 commit
    • Michael Natterer's avatar
      app/core/Makefile.am app/core/gimpbrushgenerated-load.[ch] · c42e8147
      Michael Natterer authored
      2006-10-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/gimpbrushgenerated-load.[ch]
      	* app/core/gimpbrushgenerated-save.[ch]
      	* app/core/gimpbrushpipe-load.[ch]: new files.
      
      	* app/core/gimpbrushgenerated.[ch]
      	* app/core/gimpbrushpipe.[ch]: removed loading and saving code here.
      
      	* app/core/gimp.c: changed accordingly.
      c42e8147
  16. 12 Apr, 2006 1 commit
  17. 07 Apr, 2006 1 commit
    • Sven Neumann's avatar
      app/actions/tool-options-commands.c app/core/gimp.c · 5fc9bd40
      Sven Neumann authored
      2006-04-07  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/tool-options-commands.c
      	* app/core/gimp.c
      	* app/core/gimpbrushpipe.c
      	* app/core/gimpbuffer.c
      	* app/core/gimpcontext.c
      	* app/core/gimpdatafactory.c
      	* app/core/gimpgradient-load.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-undo-push.c
      	* app/core/gimpitem.c
      	* app/core/gimplayer.c
      	* app/core/gimplayermask.c
      	* app/core/gimplist.c
      	* app/core/gimppalette.c
      	* app/dialogs/template-options-dialog.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/file/file-open.c
      	* app/paint/gimp-paint.c
      	* app/widgets/gimpdataeditor.c
      	* app/widgets/gimpdatafactoryview.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimptemplateview.c
      	* app/widgets/gimptoolbox-dnd.c: use gimp_object_set_static_name()
      	and gimp_object_take_name() where appropriate.
      5fc9bd40
  18. 31 Jan, 2006 1 commit
  19. 10 Dec, 2005 1 commit
  20. 08 Jun, 2005 1 commit
    • Sven Neumann's avatar
      Removed "stingy-memory-use" all over the place. This feature was really · c1363db8
      Sven Neumann authored
      2005-06-08  Sven Neumann  <sven@gimp.org>
      
      	Removed "stingy-memory-use" all over the place. This feature was
      	really not that useful anymore. The GUI for the preference option
      	was already removed for GIMP 2.2.  Fixes bug #306617.
      
      	* app/config/gimpbaseconfig.[ch]: set IGNORE flag on
      	"stingy-memory-use".
      
      	* app/config/gimpcoreconfig.h: added a comment that the
      	font_path_writable variable is unused.
      
      	* app/base/temp-buf.[ch]: removed code that used to deal with
      	swapping temp-bufs to disk.
      
      	* app/base/base.c: made base_config a static variable.
      
      	* app/core/gimpdata.[ch]
      	* app/core/gimpdatafactory.[ch]: removed stingy_memory_use
      	parameter from data construction methods.
      
      	* app/core/gimp-gradients.c
      	* app/core/gimpbrush-load.[ch]
      	* app/core/gimpbrush.[ch]
      	* app/core/gimpbrushgenerated.[ch]
      	* app/core/gimpbrushpipe.[ch]
      	* app/core/gimpcontext.c
      	* app/core/gimpgradient-load.[ch]
      	* app/core/gimpgradient.[ch]
      	* app/core/gimppalette-import.c
      	* app/core/gimppalette.[ch]
      	* app/core/gimppattern.[ch]: changed accordingly.
      c1363db8
  21. 25 May, 2005 2 commits
    • Sven Neumann's avatar
      added MIME type as a construct property to GimpData. · 59cb5d75
      Sven Neumann authored
      2005-05-26  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpdata.[ch]: added MIME type as a construct property
      	to GimpData.
      
      	* app/core/gimpbrush-load.c
      	* app/core/gimpbrushgenerated.c
      	* app/core/gimpbrushpipe.c
      	* app/core/gimpgradient-load.c
      	* app/core/gimppalette.c
      	* app/core/gimppattern.c: set the MIME type when loading a data
      	object from file. MIME types needs review and GimpPalette isn't
      	quite done yet...
      
      	* app/core/gimpdashpattern.c: cosmetics.
      59cb5d75
    • Michael Natterer's avatar
      added virtual function GimpViewable::get_size() and public API · 7abaab62
      Michael Natterer authored
      2005-05-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpviewable.[ch]: added virtual function
      	GimpViewable::get_size() and public API gimp_viewable_get_size()
      	which return width and height and a boolean indicating if the
      	viewable has a size at all.
      	Added default implementation of GimpViewable::get_popup_size()
      	using the new get_size() API.
      
      	* app/core/gimpbrush.c
      	* app/core/gimpbuffer.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpimage.c
      	* app/core/gimppattern.c: implement GimpViewable::get_size().
      
      	* app/core/gimpbrush.c
      	* app/core/gimppattern.c: removed GimpViewable::get_popup_size()
      	implementations, the default one is good enough.
      
      	* app/core/gimpbrushpipe.c (gimp_brush_pipe_get_popup_size):
      	redirect to gimp_viewable_get_size() instead of duplicating its
      	return values.
      
      	* app/widgets/gimpcontainertreeview.c
      	* app/widgets/gimpview.c: allow pixbuf dragging out of any
      	viewable that has a size.
      
      	* app/widgets/gimpdrawabletreeview.c: removed pixbuf dragging code
      	here.
      
      	* app/widgets/gimpdnd.c: set gimp busy around encoding/decoding
      	pixbufs into/from GtkSelectionData, because it can be a time
      	consuming operation.
      7abaab62
  22. 15 Apr, 2005 1 commit
    • Michael Natterer's avatar
      Added loading of Photoshop brushes. Fixes bug #163047: · 4ffe1f03
      Michael Natterer authored
      2005-04-15  Michael Natterer  <mitch@gimp.org>
      
      	Added loading of Photoshop brushes. Fixes bug #163047:
      
      	* app/core/Makefile.am
      	* app/core/gimpbrush-load.[ch]: new files holding all brush
      	loading code. Added .abr loader based on a patch by Adrian
      	Likins. Didn't add a new brush subclass as in the original patch,
      	but only a loading function which loads the brushes into standard
      	GimpBrush objects. Did misc fixes to the code, needs further
      	cleanup.
      
      	* app/core/gimpbrush.[ch]: removed brush loading code here.
      
      	* app/core/gimpbrushpipe.c: changed #includes accordingly.
      
      	* app/core/gimp.c (gimp_real_initialize): register the new load
      	functions and their extensions with the brush factory.
      4ffe1f03
  23. 07 Feb, 2005 1 commit
    • Sven Neumann's avatar
      app/base/base.c app/base/temp-buf.c app/base/tile-swap.c · 648cccde
      Sven Neumann authored
      2005-02-07  Sven Neumann  <sven@gimp.org>
      
      	* app/base/base.c
      	* app/base/temp-buf.c
      	* app/base/tile-swap.c
      	* app/config/gimpconfig-file.c
      	* app/core/gimpbrush.c
      	* app/core/gimpbrushgenerated.c
      	* app/core/gimpbrushpipe.c
      	* app/core/gimpdata.c
      	* app/core/gimpenvirontable.c
      	* app/core/gimpgradient-load.c
      	* app/core/gimpgradient-save.c
      	* app/core/gimppalette-import.c
      	* app/core/gimppalette.c
      	* app/core/gimppattern.c
      	* app/dialogs/user-install-dialog.c
      	* app/gui/session.c
      	* app/menus/menus.c
      	* app/widgets/gimpdevices.c: use gstdio wrappers.
      648cccde
  24. 09 Dec, 2004 1 commit
  25. 26 Jul, 2004 1 commit
    • Michael Natterer's avatar
      added "gboolean writable" to the GimpDataFactoryLoaderEntry struct. Return · 638f2b3a
      Michael Natterer authored
      2004-07-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdatafactory.h: added "gboolean writable" to the
      	GimpDataFactoryLoaderEntry struct. Return a GList* instead of
      	GimpData* from GimpDataLoadFunc so it's possible to load more than
      	one data object from one file.
      
      	* app/core/gimpdatafactory.c (gimp_data_factory_load_data):
      	changed accordingly: add all items of the returned lists to the
      	data factory. Make the data object writable only if it's in the
      	writable path *and* its loader entry says it's a writable format
      	*and* the returned list contains exactly one element.
      
      	* app/core/gimp.c (gimp_real_initialize): declare all loader
      	entries as writable where we have code to read and write exactly
      	one object per file; all others are not writable.
      
      	* app/core/gimpbrush.[ch]
      	* app/core/gimpbrushgenerated.[ch]
      	* app/core/gimpbrushpipe.[ch]
      	* app/core/gimpgradient-load.[ch]
      	* app/core/gimppalette.[ch]
      	* app/core/gimppattern.[ch] (all load functions): return a list
      	containing the loaded object instead of the object itself.
      638f2b3a
  26. 25 Jun, 2004 1 commit
    • Michael Natterer's avatar
      reordered parameters and members to be consistent with other places where · 140d3d5c
      Michael Natterer authored
      2004-06-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpbrushgenerated.[ch]: reordered parameters and
      	members to be consistent with other places where generated
      	brushes are used. Check for errors when loading a brush and
      	utf8-validate its name. Cleanup.
      
      	* app/core/gimpbrush.c
      	* app/core/gimpbrushpipe.c: cleanup.
      140d3d5c
  27. 17 Mar, 2004 1 commit
  28. 29 Jan, 2004 1 commit
    • Michael Natterer's avatar
      GimpData code review: · 44cac5ae
      Michael Natterer authored
      2004-01-29  Michael Natterer  <mitch@gimp.org>
      
      	GimpData code review:
      
      	* app/core/gimpdata.c (gimp_data_init): default to
      	writable = FALSE and dirty = TRUE.
      
      	* app/core/gimpbrushgenerated.[ch]: added "const gchar *name" to
      	gimp_brush_generated_new().
      
      	* app/core/gimpbrush.c
      	* app/core/gimpbrushgenerated.c
      	* app/core/gimpbrushpipe.c
      	* app/core/gimpgradient.c
      	* app/core/gimppalette.c
      	* app/core/gimppattern.c: set all standard datas to clean and
      	internal, check for g_path_is_absolute() in all load functions,
      	pass the data's name as construct property to g_object_new()
      	instead of calling gimp_object_set_name() after creation, fixed
      	some UTF-8 handling, spacing, indentation, coding style, general
      	cleanup.
      44cac5ae
  29. 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
      	gimp_config_build_writable_path().
      
      	* 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
      	NULL).
      
      	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.
      894cf70d
  30. 19 Jan, 2004 2 commits
    • Sven Neumann's avatar
      include "libgimpbase/gimpbase.h" where needed; removed now unnecessary · 6d506d51
      Sven Neumann authored
      2004-01-19  Sven Neumann  <sven@gimp.org>
      
      	* app/*/*.c: include "libgimpbase/gimpbase.h" where needed; removed
      	now unnecessary inclusions of "file/file-utils.h".
      6d506d51
    • Sven Neumann's avatar
      removed file_utils_filename_to_utf8() ... · a70698c4
      Sven Neumann authored
      2004-01-19  Sven Neumann  <sven@gimp.org>
      
      	* app/file/file-utils.[ch]: removed file_utils_filename_to_utf8() ...
      
      	* libgimpbase/gimputils.[ch]: ... and added it here as
      	gimp_filename_to_utf8(). Added some docs that promise less than
      	the current implementation holds so that we can change the
      	implementation later.
      
      	* app/*/*.c: use gimp_filename_to_utf8() where
      	file_utils_filenames_to_utf8() has been used before.
      
      	* libgimpbase/gimpbase.def: changed accordingly.
      
      	* configure.in: reset GIMP_INTERFACE_AGE.
      a70698c4
  31. 14 Jan, 2004 1 commit
    • Tor Lillqvist's avatar
      Add new function file_utils_filename_to_utf8(), which is to be used when · 18485018
      Tor Lillqvist authored
      2004-01-14  Tor Lillqvist  <tml@iki.fi>
      
      	* app/file/file-utils.[ch]: Add new function
      	file_utils_filename_to_utf8(), which is to be used when converting
      	file names (which are kept in the on-disk encoding) to UTF-8 for
      	passing to GTK, or to g_print() etc.
      
      	* app/*/*.c: Call file_utils_filename_to_utf8(). Should fix most
      	of the warnings generated by non-UTF8 pathnames. See #130118.
      
      	* libgimpbase/gimpenv.b: Document that gimp_directory() etc return
      	strings in the on-disk encoding.
      
      	* libgimpmodule/gimpmodule.c: Convert filenames to UTF-8 (using
      	g_filename_to_utf8()) before passing to g_print().
      18485018
  32. 16 Nov, 2003 1 commit
    • Sven Neumann's avatar
      app/config/gimpbaseconfig.h use gint64 for all memsize properties. · fd30d5c9
      Sven Neumann authored
      2003-11-16  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpbaseconfig.h
      	* app/config/gimpcoreconfig.h: use gint64 for all memsize properties.
      
      	* app/base/tile-manager.[ch] (tile_manager_get_memsize): since
      	tiles can be swapped out, a tilemanager can be larger than gsize
      	(on 32bit platforms). Use a gint64 to avoid an overflow.
      
      	* app/core/gimp.c
      	* app/core/gimpbrush.c
      	* app/core/gimpbrushpipe.c
      	* app/core/gimpbuffer.c
      	* app/core/gimpchannel.c
      	* app/core/gimpcontainer.c
      	* app/core/gimpcontext.c
      	* app/core/gimpdata.c
      	* app/core/gimpdatafactory.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpgradient.c
      	* app/core/gimpimage-undo-push.c
      	* app/core/gimpimage-undo.[ch]
      	* app/core/gimpimage.c
      	* app/core/gimpitem.c
      	* app/core/gimpitemundo.[ch]
      	* app/core/gimplayer.c
      	* app/core/gimplist.c
      	* app/core/gimpobject.[ch]
      	* app/core/gimppalette.c
      	* app/core/gimpparasitelist.c
      	* app/core/gimppattern.c
      	* app/core/gimpundo.[ch]
      	* app/core/gimpundostack.c
      	* app/core/gimpviewable.c
      	* app/text/gimptext.c
      	* app/text/gimptextlayer.c
      	* app/vectors/gimpstroke.c
      	* app/vectors/gimpvectors.c: use gint64 for gimp_object_get_memsize()
      	and all its implementations.
      
      	* app/display/gimpdisplayshell-title.c
      	* app/gui/info-window.c: changed accordingly.
      fd30d5c9
  33. 14 Nov, 2003 1 commit
    • Michael Natterer's avatar
      libgimpwidgets/gimpquerybox.c configure the labels in the message dialog · 6eb77294
      Michael Natterer authored
      2003-11-14  Michael Natterer  <mitch@gimp.org>
      
      	* libgimpwidgets/gimpquerybox.c
      	* app/widgets/gimpwidgets-utils.c: configure the labels in the
      	message dialog and the query boxes to do automatic word wrapping
      	to be HIG compliant.
      
      	* app/app_procs.c
      	* app/batch.c
      	* app/config/gimpconfig-deserialize.c
      	* app/config/gimpconfig-path.c
      	* app/config/gimpconfig-utils.c
      	* app/config/gimpconfigwriter.c
      	* app/config/gimpscanner.c
      	* app/core/gimpbrush.c
      	* app/core/gimpbrushgenerated.c
      	* app/core/gimpbrushpipe.c
      	* app/core/gimpdatafactory.c
      	* app/core/gimpgradient.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage.c
      	* app/core/gimpimagefile.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimppalette.c
      	* app/core/gimppattern.c
      	* app/core/gimpselection.c
      	* app/display/gimpdisplayshell.c
      	* app/file/file-utils.c
      	* app/gui/brush-select.c
      	* app/gui/dialogs-commands.c
      	* app/gui/drawable-commands.c
      	* app/gui/edit-commands.c
      	* app/gui/file-commands.c
      	* app/gui/file-new-dialog.c
      	* app/gui/font-select.c
      	* app/gui/gradient-select.c
      	* app/gui/gui.c
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/palette-select.c
      	* app/gui/palettes-commands.c
      	* app/gui/pattern-select.c
      	* app/gui/preferences-dialog.c
      	* app/gui/select-commands.c
      	* app/gui/stroke-dialog.c
      	* app/gui/tool-options-menu.c
      	* app/gui/vectors-commands.c
      	* app/gui/view-commands.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in.c
      	* app/plug-in/plug-ins.c
      	* app/text/gimptextlayer-xcf.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimptransformtool.c
      	* app/vectors/gimpvectors-export.c
      	* app/widgets/gimpdatafactoryview.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimptemplateview.c
      	* app/widgets/gimptooloptionseditor.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/image.pdb: removed explicit newlines from
      	messages. Reduced number of translatable strings by making many
      	file error messages the same. Quote single words and filenames
      	with 'foo', not "foo". Replaced some more "drawable" by "layer".
      	General message cleanup and consistency check.
      
      	* app/pdb/image_cmds.c: regenerated.
      6eb77294
  34. 28 Aug, 2003 1 commit
    • Manish Singh's avatar
      app/core/gimpbrush.c app/core/gimpbrushgenerated.c · f9c41aa8
      Manish Singh authored
      2003-08-28  Manish Singh  <yosh@gimp.org>
      
              * app/core/gimpbrush.c
              * app/core/gimpbrushgenerated.c
              * app/core/gimpbrushpipe.c
              * app/core/gimpbuffer.c
              * app/core/gimpimage-snap.c
              * app/core/gimppattern.c
              * app/core/gimpundostack.c
              * app/display/gimpdisplayshell.c
              * app/gui/grid-dialog.c
              * plug-ins/common/CML_explorer.c: cleanup, remove unnecessary casts.
      f9c41aa8