1. 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
  2. 02 May, 2013 1 commit
  3. 16 May, 2009 1 commit
  4. 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
  5. 13 May, 2007 1 commit
  6. 11 May, 2007 1 commit
    • Sven Neumann's avatar
      app/file/Makefile.am app/file/file-procedure.[ch] split functions dealing · cc2a076d
      Sven Neumann authored
      2007-05-11  Sven Neumann  <sven@gimp.org>
      
              * app/file/Makefile.am
              * app/file/file-procedure.[ch]
              * app/file/file-utils.[ch]: split functions dealing with file
              procedures into their own file and renamed them.
      
              * app/file/file-open.c
              * app/dialogs/file-save-dialog.c
              * app/actions/file-commands.c
              * app/widgets/gimpthumbbox.c
              * app/widgets/gimpdnd-xds.c
              * app/widgets/gimpimagepropview.c
              * tools/pdbgen/pdb/fileops.pdb: changed accordingly
      
              * app/pdb/fileops_cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=22474
      cc2a076d
  7. 19 Jan, 2007 2 commits
    • Sven Neumann's avatar
      let the filename -> uri functions take a Gimp parameter instead of the · 20b331da
      Sven Neumann authored
      2007-01-19  Sven Neumann  <sven@gimp.org>
      
      	* app/file/file-utils.[ch]: let the filename -> uri functions take
      	a Gimp parameter instead of the list of load procedures.
      
      	* app/core/gimpimage.c
      	* app/app_procs.c
      	* app/dialogs/file-open-location-dialog.c
      	* tools/pdbgen/pdb/fileops.pdb: changed accordingly.
      
      	* app/pdb/fileops_cmds.c: regenerated.
      
      svn path=/trunk/; revision=21736
      20b331da
    • Sven Neumann's avatar
      app/app_procs.c moved code from app_procs.c to file-utils. · d4249a10
      Sven Neumann authored
      2007-01-19  Sven Neumann  <sven@gimp.org>
      
      	* app/app_procs.c
      	* app/file/file-utils.[ch]: moved code from app_procs.c to file-utils.
      
      
      svn path=/trunk/; revision=21735
      d4249a10
  8. 09 Dec, 2006 1 commit
  9. 10 Aug, 2006 1 commit
    • Sven Neumann's avatar
      added a GError parameter to file_utils_find_proc(). · 3fbf7436
      Sven Neumann authored
      2006-08-10  Sven Neumann  <sven@gimp.org>
      
      	* app/file/file-utils.[ch]: added a GError parameter to
      	file_utils_find_proc().
      
      	* app/actions/file-commands.c
      	* app/dialogs/file-save-dialog.c
      	* app/file/file-open.c
      	* app/widgets/gimpdnd-xds.c
      	* tools/pdbgen/pdb/fileops.pdb: changed accordingly.
      
      	* app/pdb/fileops_cmds.c: regenerated.
      3fbf7436
  10. 11 Apr, 2006 1 commit
  11. 10 Apr, 2006 1 commit
  12. 05 Apr, 2006 1 commit
    • Michael Natterer's avatar
      app/plug-in/plug-in-types.h renamed to GimpPlugInProcedure and made a · 086d0b63
      Michael Natterer authored
      2006-04-05  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/plug-in-types.h
      	* app/plug-in/plug-in-proc-def.[ch]: renamed to GimpPlugInProcedure
      	and made a GObject derived from GimpProcedure (instead of having
      	a pointer to a GimpProcedure). Added image_types and file_magic
      	utility functions taken from plug-ins.[ch]. Still lives in the
      	same crappy files because I am undecided where to put it...
      
      	* app/pdb/gimpprocedure.c (gimp_procedure_real_execute): removed
      	switch() statement and always call the internal marshaller because
      	GimpProcedure::execute() is properly overridden by
      	GimpPlugInProcedure now.
      
      	* app/plug-in/plug-ins.[ch]: removed the mime_type and file_magic
      	utilities added to GimpPlugInProcedure.
      
      	* app/actions/file-commands.c
      	* app/actions/plug-in-actions.[ch]
      	* app/actions/plug-in-commands.[ch]
      	* app/core/gimp-gui.[ch]
      	* app/core/gimp.[ch]
      	* app/core/gimpimage.[ch]
      	* app/dialogs/file-open-dialog.c
      	* app/dialogs/file-save-dialog.c
      	* app/dialogs/print-size-dialog.c
      	* app/file/file-open.[ch]
      	* app/file/file-save.[ch]
      	* app/file/file-utils.[ch]
      	* app/gui/gui-vtable.c
      	* app/menus/plug-in-menus.[ch]
      	* app/plug-in/plug-in-def.[ch]
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-rc.c
      	* app/plug-in/plug-in-run.c
      	* app/plug-in/plug-in.c
      	* app/plug-in/plug-ins-query.c
      	* app/widgets/gimpactiongroup.[ch]
      	* app/widgets/gimpdnd-xds.c
      	* app/widgets/gimpfiledialog.[ch]
      	* app/widgets/gimpfileprocview.[ch]
      	* app/widgets/gimppluginaction.[ch]
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/plug_in.pdb: changed addordingly.
      
      	* app/pdb/fileops_cmds.c
      	* app/pdb/plug_in_cmds.c: regenerated.
      086d0b63
  13. 01 Oct, 2005 1 commit
    • Sven Neumann's avatar
      introduced variants of file_utils_uri_to_utf8_filename() and · ee64ca3c
      Sven Neumann authored
      2005-10-02  Sven Neumann  <sven@gimp.org>
      
      	* app/file/file-utils.[ch]: introduced variants of
      	file_utils_uri_to_utf8_filename() and
      	file_utils_uri_to_utf8_basename() that use g_filename_display_name()
      	and g_filename_display_basename().
      
      	* app/actions/data-commands.c
      	* app/actions/documents-commands.c
      	* app/actions/file-actions.c
      	* app/actions/file-commands.c
      	* app/core/gimpimage.c
      	* app/core/gimpimagefile.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/display/gimpdisplayshell-close.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/display/gimpdisplayshell-title.c
      	* app/file/file-open.c
      	* app/widgets/gimpdnd-xds.c
      	* app/widgets/gimpfiledialog.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimpthumbbox.c
      	* app/widgets/gimptoolbox-dnd.c
      	* app/widgets/gimptoolbox.c
      	* app/widgets/gimpviewabledialog.c: use the new functions.
      
      	* plug-ins/help/domain.c: use g_filename_display_name().
      ee64ca3c
  14. 03 Feb, 2005 1 commit
    • Sven Neumann's avatar
      added new utility function file_utils_filename_from_uri(). · 8b3481f3
      Sven Neumann authored
      2005-02-03  Sven Neumann  <sven@gimp.org>
      
      	* app/file/file-utils.[ch]: added new utility function
      	file_utils_filename_from_uri().
      
      	* app/file/file-open.c (file_open_image)
      	* app/file/file-save.c (file_save_as):
      	* app/file/file-utils.c (file_utils_find_proc)
      	(file_utils_uri_to_utf8_filename): replaced calls to
      	g_filename_from_uri() with file_utils_filename_from_uri().
      8b3481f3
  15. 08 Oct, 2004 1 commit
    • Sven Neumann's avatar
      app/config/gimpcoreconfig.[ch] added new gimprc option · ec693d7b
      Sven Neumann authored
      2004-10-08  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpcoreconfig.[ch]
      	* app/config/gimprc-blurbs.h: added new gimprc option
      	"thumbnail-filesize-limit" that allows to control the maximum
      	filesize for automatic thumbnail creation.
      
      	* app/dialogs/preferences-dialog.c: added a GUI for it, needs
      	review.
      
      	* app/core/gimpimagefile.[ch]: minor cleanups. Moved call to
      	gimp_thumbnail_peek_image() from gimp_imagefile_save_thumb() to
      	 gimp_imagefile_save_thumbnail() to avoid it being called twice.
      
      	* app/file/file-utils.[ch]: export utility function
      	file_utils_find_proc_by_extension() that allows to check for a
      	file plug-in by looking at the filename extension only.
      
      	* app/widgets/gimpthumbbox.[ch]: automatically create or update
      	thumbnails for image files with a known extension that are smaller
      	than "thumbnail-filesize-limit".  Fixes bug #137176.
      ec693d7b
  16. 22 Sep, 2004 1 commit
    • Michael Natterer's avatar
      app/plug-in/Makefile.am removed... ...and added with a new name. · 9ffc00be
      Michael Natterer authored
      2004-09-22  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/Makefile.am
      	* app/plug-in/plug-in-proc.[ch]: removed...
      	* app/plug-in/plug-in-proc-def.[ch]: ...and added with a new name.
      
      	* app/plug-in/plug-in-def.[ch]
      	* app/plug-in/plug-in-message.[ch]
      	* app/plug-in/plug-in-progress.[ch]
      	* app/plug-in/plug-in-rc.[ch]
      	* app/plug-in/plug-in-run.[ch]
      	* app/plug-in/plug-in.[ch]
      	* app/plug-in/plug-ins.[ch]
      	* app/actions/plug-in-actions.c
      	* app/actions/plug-in-commands.c
      	* app/file/file-open.[ch]
      	* app/file/file-save.[ch]
      	* app/file/file-utils.[ch]
      	* app/gui/gui-vtable.c
      	* app/menus/plug-in-menus.c
      	* app/widgets/gimpfiledialog.c
      	* app/widgets/gimpfileprocview.c
      	* app/widgets/gimppluginaction.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/plug_in.pdb: changed accordingly plus some
      	minor cosmetic cleanups.
      
      	* app/pdb/fileops_cmds.c
      	* app/pdb/plug_in_cmds.c: regenerated.
      9ffc00be
  17. 19 Jan, 2004 2 commits
    • Michael Natterer's avatar
      removed inclusion of <stdio.h> and "plug-in/plug-in-types.h". · 1f07af72
      Michael Natterer authored
      2004-01-19  Michael Natterer  <mitch@gimp.org>
      
      	* app/file/file-utils.h: removed inclusion of <stdio.h> and
      	"plug-in/plug-in-types.h".
      1f07af72
    • 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
  18. 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
  19. 15 May, 2003 1 commit
    • Sven Neumann's avatar
      added some sanity checks to temp_buf conversion routines. · 929fef0d
      Sven Neumann authored
      2003-05-15  Sven Neumann  <sven@gimp.org>
      
      	* app/base/temp-buf.c: added some sanity checks to temp_buf
      	conversion routines.
      
      	* tools/pdbgen/pdb/fileops.pdb (file_load_thumbnail_invoker): use
      	GimpImagefile to load a thumbnail. Only works for RGB images yet.
      	This adresses bug #113033.
      
      	* app/pdb/fileops_cmds.c: regenerated.
      
      	* app/file/file-utils.[ch]: removed file_utils_readXVThumb(). It
      	is not needed any longer since GimpImagefile also handles the
      	old-style .xvpics.
      
      	* plug-ins/script-fu/scripts/copy-visible.scm: fixed typo.
      929fef0d
  20. 08 Apr, 2003 1 commit
    • Michael Natterer's avatar
      added vitrual function GimpViewable::get_description() which returns the · 99d93b92
      Michael Natterer authored
      2003-04-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpviewable.[ch]: added vitrual function
      	GimpViewable::get_description() which returns the string that
      	should be presented to the user plus an optional tooltip with more
      	information. The default implementation just returns the object's
      	name and no tooltip.
      
      	* app/core/gimpbrush.c
      	* app/core/gimpbuffer.c
      	* app/core/gimpimage.c
      	* app/core/gimppalette.c
      	* app/core/gimppattern.c
      	* app/core/gimptoolinfo.c: implement get_description().
      
      	* app/core/gimpimagefile.[ch]: ditto. Renamed
      	gimp_imagefile_get_description() to
      	gimp_imagefile_get_desc_string(). Well, um, gimme a better name...
      
      	* app/gui/file-open-dialog.c: changed accordingly.
      
      	* app/file/file-utils.[ch]: renamed readXVThumb() to
      	file_utils_readXVThumb().
      
      	* tools/pdbgen/pdb/fileops.pdb: changed accordingly.
      
      	* app/widgets/widgets-types.h: removed GimpItemGetNameFunc typedef.
      
      	* app/widgets/gimpcontainerview-utils.[ch]: removed the the actual
      	get_name_funcs. They now live in the core as
      	GimpViewable::get_description() implementations.
      
      	* app/widgets/gimpcontainermenu.[ch]
      	* app/widgets/gimpcontainergridview.c
      	* app/widgets/gimpcontainermenuimpl.c
      	* app/widgets/gimpcontainertreeview.c
      	* app/widgets/gimpcontainerview.[ch]
      	* app/widgets/gimpmenuitem.[ch]
      	* app/widgets/gimpviewabledialog.c: removed get_name_func stuff
      	and use gimp_viewable_get_description().
      
      	* app/widgets/gimpcontainermenu.[ch]: added "preview_border_width"
      	to gimp_container_menu_set_preview_size().
      
      	* app/widgets/gimpimagedock.c: changed accordingly.
      
      	* app/pdb/fileops_cmds.c: regenerated.
      99d93b92
  21. 19 Apr, 2002 1 commit
    • Michael Natterer's avatar
      made gimp_imagefile_save_thumbnail() return a gboolean indicating success. · 095314f0
      Michael Natterer authored
      2002-04-19  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimagefile.[ch]: made gimp_imagefile_save_thumbnail()
      	return a gboolean indicating success.
      
      	* app/file/file-save.c
      	* tools/pdbgen/pdb/fileops.pdb: use gimp_imagefile_save_thumbnail()
      	to save thumbnails.
      
      	* app/file/file-utils.[ch]: removed the .xvpics thumbnail saving code.
      
      	* app/pdb/fileops_cmds.c: regenerated.
      095314f0
  22. 16 Apr, 2002 1 commit
    • Michael Natterer's avatar
      fixed temp_buf_copy() and temp_buf_to_[color|gray]() to (1) not crash and · 99e575d1
      Michael Natterer authored
      2002-04-16  Michael Natterer  <mitch@gimp.org>
      
      	* app/base/temp-buf.c: fixed temp_buf_copy() and
      	temp_buf_to_[color|gray]() to (1) not crash and (2) to assume the
      	correct pixelformat. Bugs were never noticed because the code was
      	never used until today...
      
      	* app/core/gimpviewable.c (gimp_viewable_get_new_preview_pixbuf):
      	use temp_buf_copy() to convert GRAY* TempBufs to RGB* before
      	creating the pixbuf.
      
      	* app/app_procs.c: don't try to open command line images if the
      	filename could not be converted to an URI.
      
      	* app/file/file-open.c
      	* app/file/file-save.c: use g_file_test() instead of stat().
      
      	* app/file/file-utils.[ch]: cleanup, changed
      	file_utils_filename_to_uri() to take a list of procs, not a Gimp
      	pointer.
      
      	* app/core/gimpimage.c: changed accordingly.
      
      	* app/core/gimpimagefile.[ch]: implemented thumbnail saving
      	following the thumbnail standard v0.5 (the implementation is not
      	yet fully standard compliant).
      
      	* app/gui/file-open-dialog.c: use the new thubmnail functions and
      	removed all .xvpics code. Not finished yet...
      
      	* app/core/gimpdocuments.c
      	* app/widgets/gimpdocumentview.c: changed accordingly.
      
      	* tools/pdbgen/pdb/fileops.pdb (file_save_thumbnail): set "success"
      	correctly.
      
      	* app/pdb/fileops_cmds.c: regenerated.
      99e575d1
  23. 14 Apr, 2002 2 commits
    • Michael Natterer's avatar
      added utility functions file_utils_uri_to_utf8_basename() and · 65cfa8db
      Michael Natterer authored
      2002-04-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/file/file-utils.[ch]: added utility functions
      	file_utils_uri_to_utf8_basename() and
      	file_utils_uri_to_utf8_filename().
      
      	* app/nav_window.c
      	* app/undo_history.c
      	* app/display/gimpdisplayshell.c
      	* app/gui/info-window.c
      	* app/gui/menus.c
      	* app/gui/palette-import-dialog.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/widgets/gimpcontainerview-utils.c: use the new functions.
      65cfa8db
    • Michael Natterer's avatar
      Use UTF-8 encoded escaped URIs for GimpImage and GimpImageFile. · 5e51cebc
      Michael Natterer authored
      2002-04-14  Michael Natterer  <mitch@gimp.org>
      
      	Use UTF-8 encoded escaped URIs for GimpImage and GimpImageFile.
      
      	* app/file/file-open.[ch]
      	* app/file/file-save.[ch]
      	* app/file/file-utils.[ch]: port everything to using URIs, removed
      	file_open_absolute_filename() and added file_utils_filename_to_uri()
      	instead.
      
      	* app/core/gimpimage.[ch]: added gimp_image_[get|set]_uri() which
      	works like the old gimp_image_[get|set]_filename().
      	Changed gimp_image_[get|set]_filename() to call uri conversion
      	functions.
      
      	* app/app_procs.c: removed lots of code and use the new uri
      	functions to open images passed on the command line.
      
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c: changed accordingly.
      
      	* app/nav_window.c
      	* app/undo_history.c
      	* app/display/gimpdisplayshell.c
      	* app/gui/info-window.c
      	* app/gui/palette-import-dialog.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/widgets/gimpcontainerview-utils.c:
      	s/gimp_image_get_filename()/gimp_image_get_uri()/g. Need to add
      	a utility function which returns the basename in unescaped UTF-8.
      
      	* app/gui/file-commands.c
      	* app/widgets/gimpdocumentview.c: use "uri", not "filename" as
      	variable name where appropriate.
      
      	* app/gui/menus.c: some broken code for the "Open Recent" items,
      	will be fixed soon...
      
      	* app/widgets/gimpdnd.c: evil (!!!) hackery to convert dropped
      	filenames to uris.
      
      	* tools/pdbgen/pdb/fileops.pdb: changed accordingly. Clarified
      	the meaning of the "raw_filename" parameter.
      
      	* tools/pdbgen/pdb/message.pdb: use g_message("%s", message),
      	*not* g_message(message).
      
      	* app/pdb/fileops_cmds.c
      	* app/pdb/message_cmds.c
      	* libgimp/gimpfileops_pdb.c: regenerated.
      5e51cebc
  24. 28 Apr, 2001 1 commit
    • Michael Natterer's avatar
      added RunModeType. removed RunModeType. don't scan app/plug_in.h for · 06f63a44
      Michael Natterer authored
      2001-04-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/appenums.h: added RunModeType.
      	* app/plug_in.h: removed RunModeType.
      	* tools/pdbgen/Makefile.am: don't scan app/plug_in.h for enums.
      	* tools/pdbgen/enums.pl: regenerated.
      
      	* app/file-open.[ch]
      	* app/file-save.[ch]
      	* app/file-utils.[ch]: removed all GUI specific code.
      
      	* app/gui/Makefile.am
      	* app/gui/file-dialog-utils.[ch]
      	* app/gui/file-open-dialog.[ch]
      	* app/gui/file-save-dialog.[ch]: new files.
      	Renamed file_open() to 	file_open_with_display().
      
      	* app/app_procs.c
      	* app/docindex.c
      	* app/gimpdnd.c
      	* app/gui/commands.c
      	* app/gui/gui.c
      	* app/gui/menus.c: changed accordingly.
      06f63a44
  25. 30 Mar, 2001 1 commit
    • Michael Natterer's avatar
      app/fileops.[ch] removed... · 7e8f21f5
      Michael Natterer authored
      2001-03-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/fileops.[ch]
      	* app/fileopsP.h: removed...
      
      	* app/file-open.[ch]
      	* app/file-save.[ch]
      	* app/file-utils.[ch]: ...and split up into more hackable chunks.
      	(didn't change any logic, just moved the functions around)
      
      	* app/Makefile.am
      	* app/app_procs.c
      	* app/commands.c
      	* app/docindex.c
      	* app/gimpdnd.c
      	* app/gimprc.c
      	* app/menus.c
      	* app/pdb/fileops_cmds.c
      	* po/POTFILES.in
      	* tools/pdbgen/pdb/fileops.pdb: changed accordingly (mostly changing
      	#include's).
      7e8f21f5