1. 06 Oct, 2009 1 commit
  2. 04 Oct, 2009 1 commit
  3. 29 Sep, 2009 1 commit
  4. 28 Sep, 2009 1 commit
  5. 03 Sep, 2009 1 commit
  6. 29 Aug, 2009 2 commits
  7. 21 Aug, 2009 1 commit
  8. 03 Aug, 2009 2 commits
    • Michael Natterer's avatar
    • Michael Natterer's avatar
      Bring parent items to the public API in the core · c4075975
      Michael Natterer authored
      * app/core/gimpimage.[ch]: make the parent parameter public in
      add_layer(), add_layers(), add_channel() and add_vectors().
      
      * app/vectors/gimpvectors-import.[ch]: add parent parameters to
        the vectors import functions.
      
      * app/core/gimpchannelundo.[ch]
      * app/core/gimplayerundo.[ch]
      * app/vectors/gimpvectorsundo.[ch]
      * app/core/gimpimage-undo-push.[ch]: remember the parent item when
        removing layers, channels and vectors.
      
      * app/actions/channels-commands.c
      * app/actions/debug-commands.c
      * app/actions/edit-commands.c
      * app/actions/layers-commands.c
      * app/actions/vectors-commands.c
      * app/core/gimp-edit.c
      * app/core/gimpimage-duplicate.c
      * app/core/gimpimage-merge.c
      * app/core/gimpimage-quick-mask.c
      * app/core/gimplayer-floating-sel.c
      * app/core/gimpselection.c
      * app/core/gimptemplate.c
      * app/dialogs/file-open-dialog.c
      * app/display/gimpdisplayshell-dnd.c
      * app/text/gimptext-compat.c
      * app/tools/gimptexttool.c
      * app/tools/gimpvectortool.c
      * app/widgets/gimptoolbox-dnd.c
      * app/xcf/xcf-load.c
      * tools/pdbgen/pdb/image.pdb
      * tools/pdbgen/pdb/paths.pdb
      * tools/pdbgen/pdb/vectors.pdb: pass NULL as parent item to above
        functions and add FIXMEs all over the place because there is some
        more hacking needed to make adding with index = -1 (on top of the
        current item) work again.
      
      * app/pdb/image-cmds.c
      * app/pdb/paths-cmds.c
      * app/pdb/vectors-cmds.c: regenerated.
      
      * app/core/gimpimage-duplicate.c: duplicate the original image's
        tree structure in the copy.
      
      * app/widgets/gimpitemtreeview.[ch]: add parent to GimpAddItemFunc,
        add utility function gimp_item_tree_view_get_drop_index() which
        figures where to add something dropped to an item tree.
      
      * app/widgets/gimpchanneltreeview.c
      * app/widgets/gimplayertreeview.c
      * app/widgets/gimpvectorstreeview.c: changed accordingly, using above
        new GimpItemTreeView API.
      c4075975
  9. 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
  10. 04 Nov, 2008 2 commits
    • Sven Neumann's avatar
      when dropping multiple images to the empty image window, open them as · a40525ac
      Sven Neumann authored
      2008-11-04  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpdisplayshell-dnd.c
      	(gimp_display_shell_drop_uri_list): when dropping multiple 
      images
      	to the empty image window, open them as seperate images.
      
      
      svn path=/trunk/; revision=27554
      a40525ac
    • Sven Neumann's avatar
      bumped minimum required version of GLib to 2.18.0. · 4762b734
      Sven Neumann authored
      2008-11-04  Sven Neumann  <sven@sven>
      
      	* configure.in: bumped minimum required version of GLib to 
      2.18.0.
      
      	* INSTALL: document the updated dependency.
      
      	* app/core/gimp.[ch]: introduced gimp_message_literal(), a 
      variant
      	of gimp_message() that takes a literal string.
      
      	* app/errors.[ch]: removed format arguments from 
      gimp_fatal_error()
      	and gimp_terminate() and let them take a literal string instead.
      
      	* app/tools/gimptool.[ch]: introduced 
      gimp_tool_message_literal(),
      	a variant of gimp_tool_message() that takes a literal string.
      
      	* app/actions/documents-commands.c
      	* app/actions/drawable-commands.c
      	* app/actions/edit-commands.c
      	* app/actions/error-console-commands.c
      	* app/actions/file-commands.c
      	* app/actions/gradients-commands.c
      	* app/actions/image-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/palettes-commands.c
      	* app/actions/plug-in-commands.c
      	* app/actions/select-commands.c
      	* app/actions/vectors-commands.c
      	* app/config/gimprc.c
      	* app/core/gimp-modules.c
      	* app/core/gimp-parasites.c
      	* app/core/gimp-templates.c
      	* app/core/gimp-units.c
      	* app/core/gimpchannel.c
      	* app/core/gimpcontainer-filter.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage.c
      	* app/core/gimpimagefile.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.c
      	* app/core/gimpselection.c
      	* app/dialogs/convert-dialog.c
      	* app/dialogs/dialogs.c
      	* app/dialogs/palette-import-dialog.c
      	* app/dialogs/preferences-dialog.c
      	* app/dialogs/quit-dialog.c
      	* app/dialogs/stroke-dialog.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/file/file-open.c
      	* app/file/file-procedure.c
      	* app/file/file-save.c
      	* app/file/file-utils.c
      	* app/gegl/gimpcurvesconfig.c
      	* app/gegl/gimplevelsconfig.c
      	* app/gui/gui-message.c
      	* app/gui/gui.c
      	* app/gui/session.c
      	* app/paint/gimpbrushcore.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpheal.c
      	* app/paint/gimpperspectiveclone.c
      	* app/paint/gimpsourcecore.c
      	* app/pdb/gimppdb-utils.c
      	* app/pdb/gimpprocedure.c
      	* app/plug-in/gimpplugin-message.c
      	* app/plug-in/gimpplugin.c
      	* app/plug-in/gimppluginmanager-restore.c
      	* app/plug-in/gimppluginprocedure.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimp-tools.c
      	* app/tools/gimpaligntool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimpdesaturatetool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpforegroundselecttool.c
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpgegltool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimpimagemaptool-settings.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimpselectiontool.c
      	* app/tools/gimpsourcetool.c
      	* app/tools/gimpthresholdtool.c
      	* app/tools/gimptransformtool.c
      	* app/tools/gimpvectortool.c
      	* app/widgets/gimpactionview.c
      	* app/widgets/gimpcontrollerlist.c
      	* app/widgets/gimpcontrollers.c
      	* app/widgets/gimpdataeditor.c
      	* app/widgets/gimpdevices.c
      	* app/widgets/gimpdnd-xds.c
      	* app/widgets/gimperrordialog.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimpitemtreeview.c
      	* app/widgets/gimppdbdialog.c
      	* app/widgets/gimpsettingsbox.c
      	* app/widgets/gimpvectorstreeview.c
      	* app/widgets/gimpwidgets-utils.c
      	* app/xcf/xcf-load.c
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/floating_sel.pdb
      	* tools/pdbgen/pdb/image.pdb: use the _literal variants for
      	g_set_error(), gimp_message() and gimp_tool_message().
      
      	* app/pdb/convert-cmds.c
      	* app/pdb/edit-cmds.c
      	* app/pdb/floating-sel-cmds.c
      	* app/pdb/image-cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=27548
      4762b734
  11. 03 Nov, 2008 1 commit
    • Michael Natterer's avatar
      renamed gimp_item_width() to gimp_item_get_width() and gimp_item_height() · 740ab5e6
      Michael Natterer authored
      2008-11-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpitem.[ch]: renamed
      	gimp_item_width() to gimp_item_get_width() and
      	gimp_item_height() to gimp_item_get_height().
      
      	* app/actions/channels-commands.c
      	* app/actions/drawable-commands.c
      	* app/actions/layers-commands.c
      	* app/core/<many>.c
      	* app/dialogs/offset-dialog.c
      	* app/dialogs/resize-dialog.c
      	* app/dialogs/scale-dialog.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/display/gimpdisplayshell.c
      	* app/paint/gimpbrushcore.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimpink.c
      	* app/paint/gimppaintcore.c
      	* app/paint/gimpsmudge.c
      	* app/text/gimptextlayer-xcf.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimpaligntool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpforegroundselecttool.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimprectangletool.c
      	* app/tools/gimpregionselecttool.c
      	* app/tools/gimptexttool.c
      	* app/vectors/gimpvectors.c
      	* app/vectors/gimpvectorsmodundo.c
      	* app/widgets/gimptoolbox-dnd.c
      	* app/widgets/gimpviewrendererdrawable.c
      	* app/widgets/gimpviewrenderervectors.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c
      	* tools/pdbgen/pdb/drawable.pdb: changed accordingly.
      
      	* app/pdb/drawable-cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=27531
      740ab5e6
  12. 02 Nov, 2008 1 commit
    • Michael Natterer's avatar
      renamed gimp_item_offsets() to gimp_item_get_offset() and · 5b68a1d0
      Michael Natterer authored
      2008-11-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpitem.[ch]: renamed
      	gimp_item_offsets() to gimp_item_get_offset() and
      	gimp_item_set_offsets() to gimp_item_set_offset().
      
      	* app/actions/drawable-commands.c
      	* app/actions/layers-commands.c
      	* app/core/<many>.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/display/gimpdisplayshell-preview.c
      	* app/display/gimpdisplayshell-transform.c
      	* app/display/gimpdisplayshell.c
      	* app/paint/gimppaintcore-stroke.c
      	* app/paint/gimppaintcore.c
      	* app/paint/gimpsourcecore.c
      	* app/text/gimptextlayer-xcf.c
      	* app/tools/<many>.c
      	* app/widgets/gimptoolbox-dnd.c
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/drawable_transform.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/transform_tools.pdb
      	* tools/pdbgen/pdb/vectors.pdb: changed accordingly.
      
      	* app/pdb/drawable-cmds.c
      	* app/pdb/drawable-transform-cmds.c
      	* app/pdb/selection-cmds.c
      	* app/pdb/vectors-cmds.c
      	* app/pdb/transform-tools-cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=27529
      5b68a1d0
  13. 09 Oct, 2008 2 commits
    • Michael Natterer's avatar
      Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a · 5503e6a0
      Michael Natterer authored
      2008-10-09  Michael Natterer  <mitch@gimp.org>
      
      	Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h
      	had a GEGL dependency (they will have in the next commit, but I
      	wanted to keep the commit separate).
      
      	* app/dialogs/Makefile.am
      	* app/file/Makefile.am
      	* app/gui/Makefile.am
      	* app/menus/Makefile.am
      	* app/paint/Makefile.am
      	* app/plug-in/Makefile.am
      	* app/text/Makefile.am
      	* app/vectors/Makefile.am
      	* app/widgets/Makefile.am
      	* app/xcf/Makefile.am: add GEGL_CFLAGS.
      
      	* app/actions/*.c
      	* app/core/*.c
      	* app/dialogs/*.c
      	* app/display/*.c
      	* app/file/*.c
      	* app/gui/*.c
      	* app/menus/*.c
      	* app/paint/*.c
      	* app/pdb/gimppdb-utils.c
      	* app/pdb/gimpprocedure.c
      	* app/plug-in/*.c
      	* app/text/*.c
      	* app/tools/*.c
      	* app/vectors/*.c
      	* app/widgets/*.c
      	* app/xcf/*.c: add <gegl.h> or replace <glib-object.h> by <gegl.h>
      	to all files which include a drawable subclass or gimpimage.h
      
      	* tools/pdbgen/app.pl: include <gegl.h> instead of <glib-object.h>
      	in all generated files.
      
      	* app/pdb/*-cmds.c: regenerated.
      
      	* data/images/gimp-splash.png: the goat is still sleeping.
      	By Aurore Derriennic.
      
      
      svn path=/trunk/; revision=27202
      5503e6a0
    • Michael Natterer's avatar
      Remove the last code duplication from the undo system (or if not the last · 0e4a35a2
      Michael Natterer authored
      2008-10-09  Michael Natterer  <mitch@gimp.org>
      
      	Remove the last code duplication from the undo system (or if not
      	the last then at least the most ugly):
      
      	* app/core/gimpimage.[ch] (gimp_image_add_layer,channel,vectors):
      	add "gboolean push_undo" parameter and add the item without
      	touching undo if it's TRUE. Changed assertions from
      	g_object_is_floating() to !gimp_item_is_attached() so they also
      	take items from the undo stack and not only newly created ones.
      
      	(gimp_image_remove_layer,channel,vectors): add "push_undo"
      	parameter here too. Also add a "new_active" parameter where an
      	optional new active item can be passed.
      
      	(gimp_image_remove_layer,channel): these functions must not be
      	called with push_undo=FALSE and a floating selection attached to
      	the layer/channel. This can't currently happen; added warnings in
      	case other code is changed and makes it happen anyway.
      
      	* app/core/gimpchannelundo.c
      	* app/core/gimplayerundo.c
      	* app/vectors/gimpvectorsundo.c: use above functions to add/remove
      	items instead of duplicating (parts of) their code. Pass
      	push_undo=FALSE and the previously active item to the remove()
      	functions.
      
      	* app/actions/channels-commands.c
      	* app/actions/edit-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/vectors-commands.c
      	* app/core/gimp-edit.c
      	* app/core/gimpchannelundo.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-quick-mask.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayerundo.c
      	* app/core/gimpselection.c
      	* app/core/gimptemplate.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/text/gimptext-compat.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimpvectortool.c
      	* app/vectors/gimpvectors-import.c
      	* app/vectors/gimpvectorsundo.c
      	* app/widgets/gimpchanneltreeview.c
      	* app/widgets/gimpitemtreeview.[ch]
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimptoolbox-dnd.c
      	* app/widgets/gimpvectorstreeview.c
      	* app/xcf/xcf-load.c
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/paths.pdb: changed accordingly (pass TRUE
      	unless it's a new image like when loading and XCF file).
      
      	* app/pdb/image-cmds.c
      	* app/pdb/paths-cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=27200
      0e4a35a2
  14. 25 Sep, 2008 2 commits
    • Michael Natterer's avatar
      use the new helper function here too. · 4a915233
      Michael Natterer authored
      2008-09-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell-dnd.c
      	(gimp_display_shell_drop_pixbuf): use the new helper function here
      	too.
      
      
      svn path=/trunk/; revision=27060
      4a915233
    • Sven Neumann's avatar
      moved duplicate code to a helper function. · 92a5eec2
      Sven Neumann authored
      2008-09-25  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpdisplayshell-dnd.c
      	(gimp_display_shell_drop_component)
      	(gimp_display_shell_drop_drawable): moved duplicate code to a
      	helper function.
      
      
      svn path=/trunk/; revision=27058
      92a5eec2
  15. 17 Sep, 2008 2 commits
    • Michael Natterer's avatar
      Revert the change which adds GError parameters to · 68c21b49
      Michael Natterer authored
      2008-09-17  Michael Natterer  <mitch@gimp.org>
      
      	Revert the change which adds GError parameters to
      	gimp_image_add_{channel,layer,vectors}():
      
      	* app/actions/channels-commands.c
      	* app/actions/edit-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/vectors-commands.c
      	* app/core/gimp-edit.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-quick-mask.c
      	* app/core/gimpimage.[ch]
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimpselection.c
      	* app/core/gimptemplate.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/text/gimptext-compat.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimpvectortool.c
      	* app/vectors/gimpvectors-import.c
      	* app/widgets/gimpchanneltreeview.c
      	* app/widgets/gimpitemtreeview.[ch]
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimptoolbox-dnd.c
      	* app/widgets/gimpvectorstreeview.c
      	* app/xcf/xcf-load.c: revert.
      
      	Instead, fix it at the PDB level:
      
      	* app/core/gimpimage.c: turn the "added to wrong image" warning
      	into a g_return_val_if_fail() assertion.
      
      	* app/pdb/gimppdb-utils.[ch] (gimp_pdb_item_is_floating): add a
      	"dest_image" parameter and fail if the passed item is not for this
      	image.
      
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/paths.pdb: pass the dest image to
      	gimp_pdb_item_is_floating().
      
      	* app/pdb/image-cmds.c
      	* app/pdb/layer-cmds.c
      	* app/pdb/paths-cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=26970
      68c21b49
    • Michael Natterer's avatar
      add GError parameter to gimp_image_add_{channel,layer,vectors}() and · b0dab70d
      Michael Natterer authored
      2008-09-17  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage.[ch]: add GError parameter to
      	gimp_image_add_{channel,layer,vectors}() and remove calls to
      	g_warning(). Changed checks to be possible failures at all.
      
      	* app/widgets/gimpitemtreeview.h (GimpAddItemFunc): add the GError
      	here too.
      
      	* app/actions/channels-commands.c
      	* app/actions/edit-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/vectors-commands.c
      	* app/core/gimp-edit.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-quick-mask.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimpselection.c
      	* app/core/gimptemplate.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/text/gimptext-compat.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimpvectortool.c
      	* app/vectors/gimpvectors-import.c
      	* app/widgets/gimpchanneltreeview.c
      	* app/widgets/gimpitemtreeview.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimptoolbox-dnd.c
      	* app/widgets/gimpvectorstreeview.c
      	* app/xcf/xcf-load.c: pass a NULL error.
      
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/paths.pdb: pass the error.
      
      	* app/pdb/image-cmds.c
      	* app/pdb/paths-cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=26963
      b0dab70d
  16. 04 Sep, 2008 2 commits
    • Sven Neumann's avatar
      improved the new DND code. · 8172ba88
      Sven Neumann authored
      2008-09-04  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpdisplayshell-dnd.c: improved the new DND code.
      
      
      svn path=/trunk/; revision=26867
      8172ba88
    • Sven Neumann's avatar
      handle drops on the empty image window. · 05e7e9dc
      Sven Neumann authored
      2008-09-04  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpdisplayshell-dnd.c
      	(gimp_display_shell_drop_drawable) 
      (gimp_display_shell_drop_pixbuf):
      	handle drops on the empty image window.
      
      
      svn path=/trunk/; revision=26864
      05e7e9dc
  17. 27 Mar, 2008 1 commit
  18. 19 Mar, 2008 2 commits
    • Michael Natterer's avatar
      the code to reset the cursor got lost when introducing this function. · ca99b072
      Michael Natterer authored
      2008-03-19  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell.c (gimp_display_shell_empty): the
      	code to reset the cursor got lost when introducing this function.
      
      	* app/display/gimpdisplayshell-dnd.c
      	(gimp_display_shell_dnd_init): remove redundant casts.
      
      
      svn path=/trunk/; revision=25133
      ca99b072
    • Sven Neumann's avatar
      return FALSE so that the default drag highlighting works. · 1c0466da
      Sven Neumann authored
      2008-03-19  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpdisplayshell-callbacks.c
      	(gimp_display_shell_canvas_expose): return FALSE so that the
      	default drag highlighting works.
      
      	* app/display/gimpdisplayshell-dnd.c: only set the canvas as 
      drop
      	target, not the whole shell.
      
      	* app/display/gimpdisplayshell.c: delay the call to
      	gimp_display_shell_dnd_init() until after the canvas has been
      	created.
      
      
      svn path=/trunk/; revision=25127
      1c0466da
  19. 18 Mar, 2008 1 commit
    • Michael Natterer's avatar
      First draft of the "no image open" window, which is implemented as a · cee3baea
      Michael Natterer authored
      2008-03-18  Michael Natterer  <mitch@gimp.org>
      
      	First draft of the "no image open" window, which is implemented as
      	a display without image (a view with NULL model). Didn't change
      	the display's appearance yet so I can first make sure the display
      	without image works properly in all details before hiding these
      	details.
      
      	* app/core/gimp-gui.[ch]: add "gimp" parameter to display_create()
      	and allow "image" to be NULL.
      
      	* app/core/gimpcontext.c (gimp_context_real_set_display): a
      	display's image can be NULL now.
      
      	* app/display/gimpdisplay.[ch]: add Gimp and GimpDisplayConfig
      	members.  Add Gimp parameter to gimp_display_shell_new(). Changed
      	gimp_display_reconnect() to gimp_display_set_image() and allow to
      	set a NULL image.
      
      	* app/gui/gui-vtable.c (gui_display_create): if there is a single
      	display without an image, call gimp_display_set_image() on that
      	display instead of creating a new one.
      
      	* app/display/gimpdisplayshell-close.c: if the last display is
      	closed, don't close it but make it empty. Factored out that code
      	to gimp_display_shell_really_close().
      
      	* app/display/gimpdisplayshell-dnd.c: when dropping uris on an
      	empty display, open the first one into that display and the other
      	ones as layers of the newly opened image. This is consistent with
      	dropping on an existing image but maybe needs some discussion.
      
      	* app/display/gimpdisplayshell-callbacks.c: bail out early in the
      	tool event callback so tools never have to deal with empty
      	displays. In expose(), draw the drop zone on the empty display.
      
      	* app/display/gimpdisplayshell-title.c: set the empty display's
      	title to "Gimp - Drop Files".
      
      	* app/display/gimpdisplay-foreach.c
      	* app/display/gimpdisplay-handlers.c
      	* app/display/gimpdisplayshell-appearance.c
      	* app/display/gimpdisplayshell-autoscroll.c
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell-cursor.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/display/gimpdisplayshell-draw.c
      	* app/display/gimpdisplayshell-filter-dialog.c
      	* app/display/gimpdisplayshell-handlers.c
      	* app/display/gimpdisplayshell-layer-select.c
      	* app/display/gimpdisplayshell-preview.c
      	* app/display/gimpdisplayshell-render.c
      	* app/display/gimpdisplayshell-scale.c
      	* app/display/gimpdisplayshell-scroll.c
      	* app/display/gimpdisplayshell-selection.c
      	* app/display/gimpdisplayshell-title.c
      	* app/display/gimpdisplayshell.c
      	* app/display/gimpnavigationeditor.c
      	* app/display/gimpstatusbar.c: use display->gimp and
      	display->config instead of going via the image. Guard against
      	empty displays in some few places (most places can't be
      	called). Where needed, use the canvas' dimensions instead of the
      	image's dimensions so scroll offsets and scrollbars still have
      	sane values instead of the last image's ones.
      
      	* app/actions/actions.c (action_data_get_gimp)
      	(action_data_get_context): use display->gimp instead of
      	display->image->gimp.
      
      	* app/actions/edit-commands.c (edit_paste_cmd_callback): redirect
      	to "paste as new" if there is an empty display.
      
      	* app/actions/tools-commands.c (tools_select_cmd_callback): don't
      	initialize the new tool on an empty display.
      
      	* app/actions/view-actions.c (view_actions_update): changed lots
      	of sensitivity settings to be insensitive when there is no image
      	(instead of no display).
      
      	* app/actions/view-commands.c: use the display's config object
      	instead of gimp's.
      
      
      svn path=/trunk/; revision=25113
      cee3baea
  20. 08 Jan, 2008 1 commit
    • Sven Neumann's avatar
      removed "add_alpha" parameter from gimp_item_duplicate() and · 4aa7e67c
      Sven Neumann authored
      2008-01-08  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpitem.[ch]: removed "add_alpha" parameter from
      	gimp_item_duplicate() and gimp_item_convert(). This is a relict
      	from the time when only the bottom layer was allowed to have no
      	alpha channel.
      
      	* app/actions/channels-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/vectors-commands.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-quick-mask.c
      	* app/core/gimplayer.c
      	* app/core/gimplayermask.c
      	* app/core/gimpselection.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/file/file-open.c
      	* app/pdb/channel_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/text/gimptextlayer.c
      	* app/vectors/gimpvectors.c
      	* app/vectors/gimpvectorsmodundo.c
      	* app/widgets/gimpchanneltreeview.c
      	* app/widgets/gimpitemtreeview.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimptoolbox-dnd.c
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/layer.pdb: changed accordingly.
      
      svn path=/trunk/; revision=24570
      4aa7e67c
  21. 15 Nov, 2007 1 commit
  22. 26 Jul, 2007 1 commit
    • Sven Neumann's avatar
      moved common code into new utility function · bbdb6da1
      Sven Neumann authored
      2007-07-26  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpdisplayshell-dnd.c: moved common code into new
      	utility function gimp_display_shell_dnd_flush(). Also move focus
      	to the image window from this function.
      
      svn path=/trunk/; revision=23012
      bbdb6da1
  23. 19 Jul, 2007 1 commit
  24. 02 Jun, 2007 1 commit
    • Michael Natterer's avatar
      app/display/gimpdisplayshell-dnd.c app/widgets/gimpitemtreeview.c set the · 3fef6502
      Michael Natterer authored
      2007-06-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell-dnd.c
      	* app/widgets/gimpitemtreeview.c
      	* app/widgets/gimpchanneltreeview.c: set the "linked" property of
      	newly dropped items to FALSE.
      
      	* app/widgets/gimptoolbox-dnd.c (gimp_toolbox_drop_drawable):
      	stylistic cleanup.
      
      
      svn path=/trunk/; revision=22693
      3fef6502
  25. 28 May, 2007 1 commit
  26. 09 Dec, 2006 1 commit
  27. 03 Nov, 2006 2 commits
    • Michael Natterer's avatar
      added gimp_image_add_layers() which takes a list of layers and vierport · e8965219
      Michael Natterer authored
      2006-11-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage.[ch]: added gimp_image_add_layers() which
      	takes a list of layers and vierport coordinates to center the
      	layers in.
      
      	* app/dialogs/file-open-dialog.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/widgets/gimplayertreeview.c: use it instead of having the
      	same code three times.
      e8965219
    • Michael Natterer's avatar
      added value GIMP_UNDO_GROUP_LAYER_ADD. · 725a4e41
      Michael Natterer authored
      2006-11-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-enums.[ch] (enum GimpUndoType): added value
      	GIMP_UNDO_GROUP_LAYER_ADD.
      
      	* app/file/file-open.[ch]: changed file_open_layer() to
      	file_open_layers(), added parameter "gboolean merge_visible",
      	return a GList of layers.
      
      	* app/dialogs/file-open-dialog.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/widgets/gimplayertreeview.c: pass merge_visible = FALSE and
      	add all returned layers to the image. Fixes bug #358082.
      	(contains lots of duplicated code, will factor that out later).
      
      	* tools/pdbgen/pdb/fileops.pdb (load_layer): pass merge_visible = TRUE
      	(load_layers): new wrapper which returns all the image's layers.
      
      	* app/pdb/fileops_cmds.c
      	* app/pdb/internal_procs.c
      	* libgimp/gimpfileops_pdb.[ch]: regenerated.
      
      	* libgimp/gimp.def: changed accordingly.
      725a4e41
  28. 25 Oct, 2006 1 commit
    • Simon Budig's avatar
      extended gimp_vectors_import() and friends with a parameter for returning · ab4d8b03
      Simon Budig authored
      2006-10-25  Simon Budig  <simon@gimp.org>
      
              * app/vectors/gimpvectors-import.[ch]: extended gimp_vectors_import()
              and friends with a parameter for returning the newly generated vectors.
      
              * app/actions/edit-commands.c
              * app/actions/vectors-commands.c
              * app/display/gimpdisplayshell-dnd.c
              * app/widgets/gimpvectorstreeview.c: Changed accordingly.
      
              * app/vectors/vectors-enums.h: moved the GimpVectorsStrokeType to...
              * libgimpbase/gimpbaseenums.h: ... this file.
      
              * app/vectors/Makefile.am: Changed accordingly
              * app/vectors/vectors-enums.c: removed accordingly.
      
              * tools/pdbgen/pdb/vectors.pdb: new functions
              gimp_vectors_new_from_file() and gimp_vectors_new_from_string().
      
              * tools/pdbgen/pdb/paths.pdb: deprecated the previous functions.
      
              * app/pdb/internal_procs.c
              * app/pdb/paths_cmds.c
              * app/pdb/vectors_cmds.c
              * app/vectors/vectors-enums.c
              * libgimp/gimpenums.h
              * tools/pdbgen/enums.pl
              * libgimp/gimppaths_pdb.[ch]
              * libgimp/gimpvectors_pdb.[ch]
              * libgimpbase/gimpbaseenums.c
              * devel-docs/libgimp/tmpl/gimpfontselectbutton.sgml
              * devel-docs/libgimp/tmpl/gimptools.sgml: regenerated.
      ab4d8b03
  29. 09 Oct, 2006 2 commits
    • Michael Natterer's avatar
      app/actions/data-commands.c app/actions/documents-commands.c · 1ed8dd4f
      Michael Natterer authored
      2006-10-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/data-commands.c
      	* app/actions/documents-commands.c
      	* app/actions/drawable-commands.c
      	* app/actions/gradients-commands.c
      	* app/actions/image-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/palettes-commands.c
      	* app/actions/select-commands.c
      	* app/actions/vectors-commands.c
      	* app/core/gimp-contexts.c
      	* app/core/gimp-documents.c
      	* app/core/gimp-edit.c
      	* app/core/gimp-modules.c
      	* app/core/gimp-parasites.c
      	* app/core/gimp-templates.c
      	* app/core/gimp-units.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdatafactory.[ch]
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimagefile.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimppdbprogress.c
      	* app/core/gimpselection.c
      	* app/dialogs/palette-import-dialog.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/gui/session.c
      	* app/gui/themes.c
      	* app/pdb/gimpprocedure.c
      	* app/plug-in/gimpplugin-message.c
      	* app/plug-in/gimpplugin.c
      	* app/plug-in/gimppluginmanager-file.c
      	* app/plug-in/gimppluginmanager.c
      	* app/text/gimptextlayer-xcf.c
      	* app/text/gimptextlayer.c
      	* app/widgets/gimpcontrollers.c
      	* app/widgets/gimpdataeditor.c
      	* app/widgets/gimpdevices.c
      	* app/widgets/gimpdnd-xds.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimptoolbox-dnd.c
      	* app/widgets/gimptoolbox.c
      	* app/widgets/gimpuimanager.c
      	* app/widgets/gimpvectorstreeview.c
      	* tools/pdbgen/pdb/brush.pdb
      	* tools/pdbgen/pdb/gradient.pdb
      	* tools/pdbgen/pdb/palette.pdb: convert lots of g_message() to
      	gimp_message(). Make sure we never pass unknown strings (like
      	error->message) to printf-like functions directly; run them
      	thorugh "%s" instead. Don't translate some messages which should
      	never happen.
      
      	* app/pdb/brush_cmds.c
      	* app/pdb/gradient_cmds.c
      	* app/pdb/palette_cmds.c: regenerated.
      1ed8dd4f
    • 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
  30. 08 Aug, 2006 1 commit
    • Sven Neumann's avatar
      added new function gimp_message() as a replacement for g_message(). Part · 48d054e8
      Sven Neumann authored
      2006-08-08  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimp.[ch]: added new function gimp_message() as a
      	replacement for g_message(). Part of the fix for bug #347214.
      
      	* app/actions/data-commands.c
      	* app/actions/documents-commands.c
      	* app/actions/file-commands.c
      	* app/actions/layers-commands.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimagefile.c
      	* app/core/gimpitem.c
      	* app/core/gimplayer.c
      	* app/dialogs/file-open-dialog.c
      	* app/dialogs/file-open-location-dialog.c
      	* app/dialogs/file-save-dialog.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/pdb/gimppdb.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcolorizetool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimpthresholdtool.c
      	* app/widgets/gimpwidgets-utils.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-private.h
      	* 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/palette.pdb: use gimp_message() instead of
      	gimp_message() whenever we have a GimpProgress.
      
      	* app/pdb/brush_cmds.c
      	* app/pdb/gradient_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/palette_cmds.c: regenerated.
      48d054e8