1. 30 Oct, 2010 1 commit
  2. 11 Mar, 2010 1 commit
  3. 07 Mar, 2010 1 commit
  4. 04 Feb, 2010 1 commit
  5. 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
  6. 09 Oct, 2008 1 commit
    • 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
  7. 13 Sep, 2007 1 commit
    • Sven Neumann's avatar
      corrected Pango version number in comment. · 6c3fe663
      Sven Neumann authored
      2007-09-13  Sven Neumann  <sven@gimp.org>
      
      	* app/text/gimpfontlist.c (gimp_font_list_add_font): corrected
      	Pango version number in comment.
      
      	* app/widgets/gimpundoeditor.c (gimp_undo_editor_set_context):
      	chain up after initializing the context. Fixes a warning about
      	gimp_viewable_get_new_preview() being called with a NULL context.
      
      svn path=/trunk/; revision=23523
      6c3fe663
  8. 09 Dec, 2006 1 commit
  9. 17 Nov, 2006 1 commit
    • Michael Natterer's avatar
      Got rid of the word "editor" were it was good for nothing but exposing an · 02de3076
      Michael Natterer authored
      2006-11-17  Michael Natterer  <mitch@gimp.org>
      
      	Got rid of the word "editor" were it was good for nothing but
      	exposing an implementation detail in public API and installed
      	files.  Fixes bug #345251:
      
      	* app/actions/colormap-editor-actions.[ch]
      	* app/actions/colormap-editor-commands.[ch]
      	* app/actions/sample-point-editor-actions.[ch]
      	* app/actions/sample-point-editor-commands.[ch]
      	* menus/colormap-editor-menu.xml
      	* menus/sample-point-editor-menu.xml
      	* menus/selection-editor-menu.xml
      	* menus/undo-editor-menu.xml: removed.
      
      	* app/actions/colormap-actions.[ch]
      	* app/actions/colormap-commands.[ch]
      	* app/actions/sample-points-actions.[ch]
      	* app/actions/sample-points-commands.[ch]
      	* menus/colormap-menu.xml
      	* menus/sample-points-menu.xml
      	* menus/selection-menu.xml
      	* menus/undo-menu.xml: added.
      
      	* app/actions/Makefile.am
      	* menus/Makefile.am
      	* app/actions/actions.c
      	* app/menus/menus.c
      	* app/menus/plug-in-menus.c
      	* app/plug-in/gimppluginprocedure.c
      	* app/widgets/gimpcolormapeditor.c
      	* app/widgets/gimpsamplepointeditor.c
      	* app/widgets/gimpselectioneditor.c
      	* app/widgets/gimpundoeditor.c
      	* plug-ins/common/colormap-remap.c: changed accordingly.
      02de3076
  10. 01 Sep, 2006 1 commit
    • Michael Natterer's avatar
      This commit *should* fix the remaining missing contexts for preview · d9994996
      Michael Natterer authored
      2006-09-01  Michael Natterer  <mitch@gimp.org>
      
      	This commit *should* fix the remaining missing contexts for
      	preview creation. Eek at me if it doesn't.
      
      	* app/core/gimpundo.c: pass a struct containing a context to
      	gimp_undo_create_preview_idle().
      
      	* app/widgets/gimpundoeditor.[ch]: implement
      	GimpDocked::set_context(), remember the context and use it for the
      	undo treeview.
      
      	* app/widgets/gimpviewrenderergradient.c: disable debugging output.
      d9994996
  11. 29 Aug, 2006 1 commit
    • Michael Natterer's avatar
      Changed GimpViewable preview rendering to have a context to get · b53aa45a
      Michael Natterer authored
      2006-08-29  Michael Natterer  <mitch@gimp.org>
      
      	Changed GimpViewable preview rendering to have a context to get
      	FG/BG/whatever from. Use the context to enable dynamic FG/BG
      	colors in gradients. Fixes bug #127676 and bug #352214. Addresses
      	bug #128367 (doesn't fix it because there's no loading/saving and
      	no GUI yet).
      
      	* app/core/core-enums.[ch]: added enum GimpGradientColor to enable
      	specifying gradient colors in terms of foreground and background.
      
      	* app/core/gimpgradient.[ch]: added color_type members to the
      	GimpGradientSegment struct and honor them in
      	gimp_gradient_get_color_at(). Added GimpContext parameters to all
      	functions which finally call get_color_at().
      
      	* app/core/gimp-gradients.c: use the new method to implement the
      	builtin gradients.
      
      	* app/core/gimpviewable.[ch]: added GimpContext parameters to all
      	get_preview() and get_pixbuf() functions.
      
      	* app/core/gimpbrush.c
      	* app/core/gimpbuffer.c
      	* app/core/gimpdrawable-preview.[ch]
      	* app/core/gimpgradient.c
      	* app/core/gimpimage-preview.[ch]
      	* app/core/gimpimagefile.c
      	* app/core/gimppalette.c
      	* app/core/gimppattern.c
      	* app/core/gimpundo.[ch]
      	* app/text/gimpfont.c
      	* app/vectors/gimpvectors-preview.[ch]: changed ::get_preview()
      	and ::get_pixbuf() implementations accordingly.
      
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimppalette-import.[ch]
      	* app/dialogs/dialogs-constructors.c
      	* app/dialogs/palette-import-dialog.c
      	* app/dialogs/resize-dialog.c
      	* app/display/gimpdisplayshell-layer-select.c
      	* app/display/gimpdisplayshell.c
      	* app/display/gimpnavigationeditor.c
      	* app/paint/gimppaintoptions.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimptexttool.c
      	* app/actions/gradient-editor-commands.c
      	* app/widgets/gimpaction.c
      	* app/widgets/gimpbrusheditor.[ch]
      	* app/widgets/gimpbufferview.c
      	* app/widgets/gimpcellrendererviewable.c
      	* app/widgets/gimpchanneltreeview.c
      	* app/widgets/gimpclipboard.c
      	* app/widgets/gimpcoloreditor.c
      	* app/widgets/gimpcomponenteditor.c
      	* app/widgets/gimpcontainerbox.c
      	* app/widgets/gimpcontainercombobox.c
      	* app/widgets/gimpcontainereditor.c
      	* app/widgets/gimpcontainerentry.c
      	* app/widgets/gimpcontainergridview.c
      	* app/widgets/gimpcontainertreeview.[ch]
      	* app/widgets/gimpdataeditor.[ch]
      	* app/widgets/gimpdevicestatus.c
      	* app/widgets/gimpdnd.[ch]
      	* app/widgets/gimpdrawabletreeview.c
      	* app/widgets/gimpfiledialog.c
      	* app/widgets/gimpgradienteditor.[ch]
      	* app/widgets/gimpgradientselect.c
      	* app/widgets/gimpitemtreeview.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimppaletteeditor.[ch]
      	* app/widgets/gimppropwidgets.[ch]
      	* app/widgets/gimpselectioneditor.c
      	* app/widgets/gimpthumbbox.[ch]
      	* app/widgets/gimptoolbox-image-area.c
      	* app/widgets/gimptoolbox-indicator-area.c
      	* app/widgets/gimptooloptionseditor.c
      	* app/widgets/gimpundoeditor.c
      	* app/widgets/gimpvectorstreeview.c
      	* app/widgets/gimpview-popup.[ch]
      	* app/widgets/gimpview.[ch]
      	* app/widgets/gimpviewablebutton.c
      	* app/widgets/gimpviewabledialog.c
      	* app/widgets/gimpviewrenderer.[ch]
      	* app/widgets/gimpviewrenderer-frame.c
      	* app/widgets/gimpviewrendererbrush.c
      	* app/widgets/gimpviewrendererbuffer.c
      	* app/widgets/gimpviewrendererdrawable.c
      	* app/widgets/gimpviewrenderergradient.c
      	* app/widgets/gimpviewrendererimage.c
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/gradient.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/image.pdb: added tons of GimpContext members
      	and parameters, implement GimpDocked::set_context() in many
      	widgets. Pass these locally remembered contexts to GimpViewable
      	functions. Did some minor cleanups on the way. There are still
      	some minor FIXMEs around where the code uses a NULL context (which
      	is allowed by the APIs)
      
      	* app/pdb/drawable_cmds.c
      	* app/pdb/gradient_cmds.c
      	* app/pdb/gradients_cmds.c
      	* app/pdb/image_cmds.c: regenerated.
      b53aa45a
  12. 15 May, 2006 1 commit
  13. 12 Apr, 2006 1 commit
  14. 28 Mar, 2006 1 commit
  15. 18 Jan, 2006 1 commit
    • Michael Natterer's avatar
      define GIMP_PARAM_STATIC_STRINGS which is G_PARAM_STATIC_NAME|NICK|BLURB. · e1ceed51
      Michael Natterer authored
      2006-01-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/config/config-types.c: define GIMP_PARAM_STATIC_STRINGS
      	which is G_PARAM_STATIC_NAME|NICK|BLURB. Also define
      	GIMP_PARAM_READABLE, _WRITABLE and _READWRITE which include
      	GIMP_PARAM_STATIC_STRINGS.
      
      	* app/*/*.c: use them for all object properties so their
      	strings are not copied.
      e1ceed51
  16. 17 Jan, 2006 1 commit
    • Michael Natterer's avatar
      app/actions/dockable-actions.c app/actions/dockable-commands.[ch] · 5236dc6f
      Michael Natterer authored
      2006-01-17  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/dockable-actions.c
      	* app/actions/dockable-commands.[ch]
      	* app/dialogs/dialogs-constructors.[ch]
      	* app/dialogs/dialogs.c
      	* app/display/gimpdisplayshell-layer-select.c
      	* app/widgets/gimpbrusheditor.[ch]
      	* app/widgets/gimpbrushfactoryview.h
      	* app/widgets/gimpbufferview.[ch]
      	* app/widgets/gimpchanneltreeview.c
      	* app/widgets/gimpcomponenteditor.[ch]
      	* app/widgets/gimpcontainerbox.c
      	* app/widgets/gimpcontainercombobox.[ch]
      	* app/widgets/gimpcontainereditor.[ch]
      	* app/widgets/gimpcontainerentry.[ch]
      	* app/widgets/gimpcontainergridview.[ch]
      	* app/widgets/gimpcontainerpopup.[ch]
      	* app/widgets/gimpcontainertreeview.[ch]
      	* app/widgets/gimpcontainerview.[ch]
      	* app/widgets/gimpdatafactoryview.[ch]
      	* app/widgets/gimpdevicestatus.c
      	* app/widgets/gimpdialogfactory.[ch]
      	* app/widgets/gimpdocumentview.[ch]
      	* app/widgets/gimpfontview.[ch]
      	* app/widgets/gimpgradienteditor.[ch]
      	* app/widgets/gimpimageview.[ch]
      	* app/widgets/gimpitemtreeview.[ch]
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimpmenudock.c
      	* app/widgets/gimppatternfactoryview.[ch]
      	* app/widgets/gimppropwidgets.[ch]
      	* app/widgets/gimpselectioneditor.[ch]
      	* app/widgets/gimpsessioninfo.[ch]
      	* app/widgets/gimptemplateview.[ch]
      	* app/widgets/gimptooloptionseditor.c
      	* app/widgets/gimptoolview.[ch]
      	* app/widgets/gimpundoeditor.[ch]
      	* app/widgets/gimpviewablebox.c
      	* app/widgets/gimpviewablebutton.[ch]
      	* app/widgets/gimpviewabledialog.[ch]
      	* app/widgets/gimpviewrenderer.c: change the word "preview" to
      	"view" whereever we talk about GimpView or GimpViewRenderer
      	objects or their sizes. Ther were renamed from "Preview" a long
      	time ago and we had a preview/view naming mess ever since.
      5236dc6f
  17. 19 Dec, 2005 1 commit
  18. 05 Sep, 2005 1 commit
  19. 28 May, 2005 1 commit
  20. 27 May, 2005 1 commit
  21. 29 Aug, 2004 1 commit
    • David Odin's avatar
      Renamed GimpPreviewSize to GimpViewSize. · b7f58e16
      David Odin authored
      * app/core/core-enums.h: Renamed GimpPreviewSize to GimpViewSize.
      
      * app/core/core-enums.c: Regenerated.
      
      * app/actions/dockable-actions.c
      
      * app/config/gimpcoreconfig.c
      * app/config/gimpcoreconfig.h
      * app/config/gimpdisplayconfig.c
      * app/config/gimpdisplayconfig.h
      
      * app/core/gimpundo.c
      
      * app/display/gimpnavigationeditor.c
      
      * app/gui/dialogs.c
      * app/gui/file-open-location-dialog.c
      
      * app/tools/gimppaintoptions-gui.c
      * app/tools/gimptextoptions.c
      
      * app/widgets/gimpbrushselect.c
      * app/widgets/gimpcontainerpopup.c
      * app/widgets/gimpcontainerview.c
      * app/widgets/gimpdialogfactory.c
      * app/widgets/gimpfontselect.c
      * app/widgets/gimpgradientselect.c
      * app/widgets/gimppaletteselect.c
      * app/widgets/gimppatternselect.c
      * app/widgets/gimpselectioneditor.c
      * app/widgets/gimpsessioninfo.c
      * app/widgets/gimptemplateeditor.c
      * app/widgets/gimpundoeditor.c
      * app/widgets/gimpundoeditor.h
      * app/widgets/gimpviewablebutton.c: Changed accordingly.
      b7f58e16
  22. 12 Jul, 2004 1 commit
    • Michael Natterer's avatar
      app/core/gimpundo.[ch] app/core/gimpitemundo.[ch] removed all _new() · da74f126
      Michael Natterer authored
      2004-07-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpundo.[ch]
      	* app/core/gimpitemundo.[ch]
      	* app/text/gimptextundo.[ch]: removed all _new() functions and
      	added properties and GObject::constructor() implementations
      	instead.
      
      	* app/core/gimpimage-undo.[ch] (gimp_image_undo_push): added
      	"GType undo_gtype" parameter and allow to pass name-value pairs as
      	"...". Une the new GParameter utility functions to construct the
      	appropriate undo step with g_object_newv().
      
      	(gimp_image_undo_push_item): removed.
      
      	(gimp_image_undo_push_undo): removed. Merged its code back into
      	gimp_image_undo_push(), where it originally came from.
      
      	* app/core/gimpimage-undo-push.c
      	* app/core/gimpundostack.c
      	* app/paint/gimppaintcore-undo.c
      	* app/tools/gimptransformtool-undo.c
      	* app/widgets/gimpundoeditor.c: changed accordingly.
      da74f126
  23. 28 May, 2004 1 commit
    • Michael Natterer's avatar
      app/widgets/gimpcontainergridview.[ch] removed "reorderable" from · a9932fca
      Michael Natterer authored
      2004-05-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpcontainergridview.[ch]
      	* app/widgets/gimpcontainertreeview.[ch]: removed "reorderable"
      	from gimp_container_foo_view_new().
      
      	* app/widgets/gimpcontainereditor.[ch]: removed "reorderable" from
      	gimp_container_editor_construct(). Automatically set the view to
      	reorderable if the viewed container has no sort_func.
      
      	* app/widgets/gimpbufferview.c
      	* app/widgets/gimpdatafactoryview.c
      	* app/widgets/gimpdocumentview.c
      	* app/widgets/gimpimageview.c
      	* app/widgets/gimptemplateview.c
      	* app/widgets/gimptoolview.c
      	* app/widgets/gimpundoeditor.c: removed reoderable stuff because
      	GimpContainerEditor does this generically now.
      
      	* app/widgets/gimpcontainerpopup.c
      	* app/widgets/gimpfontview.c: set reorderable to FALSE because
      	they should not be reodered even if they don't have a sort_func.
      
      	* app/gui/font-select.c: removed reorderable stuff. Some cleanup.
      
      	* app/gui/brush-select.c
      	* app/gui/gradient-select.c
      	* app/gui/palette-select.c
      	* app/gui/pattern-select.c: same cleanups as in font-select.c
      a9932fca
  24. 24 May, 2004 1 commit
    • Michael Natterer's avatar
      Long overdue core container cleanup: · 1c62ddef
      Michael Natterer authored
      2004-05-24  Michael Natterer  <mitch@gimp.org>
      
      	Long overdue core container cleanup:
      
      	* app/core/gimplist.[ch]: added "unique-names" and "sort-func"
      	properties and merged the resp. code from GimpDataList into
      	GimpList. Removed "policy" parameters from gimp_list_new() and
      	added "unique_names". Added new constructor gimp_list_new_weak().
      	Made public function gimp_list_uniquefy_name() private.
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpdatalist.[ch]: removed. Its functionality is
      	entirely in GimpList now.
      
      	* app/core/gimpdata.[ch]: added gimp_data_name_compare() which
      	used to live in GimpDataList.
      
      	* app/core/gimp.c
      	* app/core/gimpdatafactory.c
      	* app/core/gimpimage.c
      	* app/core/gimptoolinfo.c
      	* app/core/gimpundostack.c
      	* app/paint/gimp-paint.c
      	* app/tools/gimp-tools.c
      	* app/widgets/gimpdevices.c
      	* app/widgets/gimptemplateeditor.c
      	* app/widgets/gimpundoeditor.c: changed list creation accordingly.
      
      	Made gimp->templates, gimp->named_buffers, tool_info->presets and
      	the image's lists of layers, channels and vectors automatically
      	ensure unique names.
      
      	* app/widgets/gimptemplateview.c
      	* app/actions/file-commands.c
      	* app/actions/templates-commands.c
      	* app/actions/tool-options-commands.c: removed calls to
      	gimp_list_uniquefy_name().
      
      	* app/core/gimpitem.c: removed major insanity where the items
      	themselves where ensuring their unique names. Bah!
      
      	* app/core/gimplayer.c (gimp_layer_name_changed): chain up
      	conditionally.
      
      	* app/core/gimplayermask.c (gimp_layer_mask_name_changed): removed
      	because there is no need any more to keep the parent
      	implementation from being invoked.
      1c62ddef
  25. 12 May, 2004 1 commit
    • Michael Natterer's avatar
      app/actions/documents-actions.c app/actions/documents-commands.c · 2632cd8f
      Michael Natterer authored
      2004-05-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/documents-actions.c
      	* app/actions/documents-commands.c
      	* app/actions/edit-actions.c
      	* app/actions/edit-commands.[ch]
      	* app/actions/layers-actions.c
      	* app/actions/layers-commands.c
      	* app/actions/select-actions.c
      	* app/actions/select-commands.[ch]
      	* app/actions/vectors-actions.c
      	* app/actions/vectors-commands.[ch]: added tooltips for actions
      	which are now used for dialog buttons, added callback
      	implementations which formerly lived in various widgets, moved
      	some actions around and did some general cleanups.
      
      	* menus/image-menu.xml.in: s/edit-stroke/select-stroke/
      
      	* menus/Makefile.am
      	* menus/selection-editor-menu.xml: new popup menu.
      
      	* app/menus/menus.c: register <SelectionEditor> and <UndoEditor>
      	UI managers.
      
      	* app/widgets/gimpeditor.[ch]: added construct properties
      	"menu-factory", "menu-identifier", "ui-path" and "popup-data".
      	Implement GObject::constructor() and create the UI manager
      	if all needed properties were set. Enables creating action
      	buttons at widget construction time because they need a
      	UI manager.
      
      	(gimp_editor_add_action_button): changed to take a va_list of
      	"extended" actions which are invoked if the resp. button emits
      	"extended_clicked". Store the actions and their modifier masks in
      	a list attached to the button.
      
      	* app/widgets/gimpcontainerview.c
      	(gimp_container_view_item_selected): if the view has container
      	*and* context, simply change the context and return.
      
      	(gimp_container_view_context_changed): don't emit "select_item"
      	manually but simply call gimp_container_view_select_item().
      
      	(gimp_container_view_viewable_dropped): use
      	gimp_container_view_item_selected() instead of changing the
      	context directly.
      
      	* app/widgets/gimpcontainereditor.c
      	(gimp_container_editor_select_item): update the UI manager.
      
      	* app/widgets/gimpdockable.c: don't try to fiddle with the
      	dialog's menu if it doesn't have a ui_path (happens if the UI
      	manager is just a collection of actions for the dialog buttons and
      	has no menu registered).
      
      	* app/widgets/gimpimageeditor.c: connect to the image's "flush"
      	signal and update the UI manager in the callback.
      
      	* app/widgets/gimpitemtreeview.c: use GimpEditor's construct
      	properties to create the UI manager so GimpItemTreeView subclasses
      	can have action buttons. Update the UI manager in
      	gimp_item_tree_view_select_item().
      
      	* app/widgets/gimpbufferview.c
      	* app/widgets/gimpcolormapeditor.c
      	* app/widgets/gimpcontainergridview.c
      	* app/widgets/gimpdatafactoryview.c
      	* app/widgets/gimpfontview.c
      	* app/widgets/gimpimageview.c
      	* app/widgets/gimptemplateview.c
      	* app/widgets/gimptoolview.c: changed calls to
      	gimp_editor_add_action_button() accordingly and removed some
      	unneeded select_item() implementations.
      
      	* app/widgets/gimpchanneltreeview.c
      	* app/widgets/gimpvectorstreeview.[ch]
      	* app/widgets/gimpdocumentview.[ch]
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimpselectioneditor.[ch]
      	* app/widgets/gimpundoeditor.[ch]: use action buttons and removed
      	lots of callbacks which went to the resp. action callbacks.
      
      	* app/widgets/widgets-types.h: removed some now unneeded function
      	prototypes.
      
      	* app/gui/dialogs-constructors.c: changed (simplified) many dialog
      	constructors accordingly.
      2632cd8f
  26. 10 May, 2004 1 commit
    • Michael Natterer's avatar
      app/widgets/widgets-types.h made GimpContainerView an interface. Added · 930b621b
      Michael Natterer authored
      2004-05-11  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpcontainerview.[ch]: made GimpContainerView an
      	interface. Added accessors for all members in the private struct
      	and made it really private.
      
      	* app/widgets/gimpcontainerbox.[ch]: derive it from GimpEditor and
      	implement GimpContainerViewInterface and its properties.
      
      	* app/widgets/gimpchanneltreeview.c
      	* app/widgets/gimpcontainergridview.c
      	* app/widgets/gimpcontainertreeview.c
      	* app/widgets/gimpcontainertreeview-dnd.c
      	* app/widgets/gimpdrawabletreeview.c
      	* app/widgets/gimpitemtreeview.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimpvectorstreeview.c: implement
      	GimpContainerViewInterface and use the new accessor functions.
      
      	* app/widgets/gimpcontainerpopup.c
      	* app/widgets/gimpdocumentview.c: changed accordingly.
      
      	* app/widgets/gimptemplateview.c
      	* app/widgets/gimpcontainereditor.c
      	* app/widgets/gimpundoeditor.c
      	* app/actions/palettes-commands.c: #include "gimpcontainerview.h"
      930b621b
  27. 04 May, 2004 2 commits
    • Michael Natterer's avatar
      removed code duplication by adding utility function · eb152e21
      Michael Natterer authored
      2004-05-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpundoeditor.c: removed code duplication by adding
      	utility function gimp_undo_editor_update_buttons(), some general
      	cleanups.
      eb152e21
    • Michael Natterer's avatar
      emit the "undo-freeze" and "undo-thaw" signals only on the first freeze · a3059675
      Michael Natterer authored
      2004-05-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage.c (gimp_image_undo_freeze,thaw): emit the
      	"undo-freeze" and "undo-thaw" signals only on the first freeze and
      	last thaw, not on any of them.
      
      	* app/widgets/gimphelp-ids.h: added GIMP_HELP_EDIT_UNDO_CLEAR.
      
      	* app/widgets/gimpundoeditor.[ch]: added a "Clear Undo History"
      	button. Fixes bug #136300.
      
      	Also don't attach to the image's undo stack if the image's undo is
      	disabled and set the buttons' sensitivity accordingly. Should fix
      	all kinds of unpredictable undo history brokenness.
      a3059675
  28. 07 Mar, 2004 1 commit
    • Sven Neumann's avatar
      Made size of undo previews configurable. Not dynamic for now, but at least · 28bb855a
      Sven Neumann authored
      2004-03-07  Sven Neumann  <sven@gimp.org>
      
      	Made size of undo previews configurable. Not dynamic for now, but
      	at least not hardcoded any longer. Fixes bug #119905:
      
      	* app/config/gimpcoreconfig.[ch]
      	* app/config/gimprc-blurbs.h: added "undo-preview-size" property.
      
      	* app/core/gimpundo.[ch]: use the new property instead of a
      	hardcoded value.
      
      	* app/widgets/gimpundoeditor.[ch]: added a "preview-size"
      	construct property.
      
      	* app/gui/dialogs-constructors.c: changed accordingly.
      
      	* app/gui/preferences-dialog.c: added a widget to control the undo
      	preview size.
      28bb855a
  29. 25 Nov, 2003 1 commit
    • Michael Natterer's avatar
      added GIMP_UNDO_EVENT_UNDO_FREEZE and GIMP_UNDO_EVENT_UNDO_THAW. · 29ddc678
      Michael Natterer authored
      2003-11-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-enums.[ch]: added GIMP_UNDO_EVENT_UNDO_FREEZE
      	and GIMP_UNDO_EVENT_UNDO_THAW.
      
      	* app/core/gimpimage.c: emit undo events in
      	gimp_image_undo_freeze() and gimp_image_undo_thaw().
      
      	* app/widgets/gimpundoeditor.c: made it aware of FREEZE/THAW signals
      	and robust against evil stuff like freezing/thawing the undo
      	in the middle of an open undo group. Fixes bug #124421.
      
      	* plug-ins/script-fu/scripts/circuit.scm: push and undo group
      	instead of disabling/enabling undo.
      29ddc678
  30. 24 Aug, 2003 1 commit
    • Michael Natterer's avatar
      app/display/gimpdisplayshell-filter-dialog.c · 61122751
      Michael Natterer authored
      2003-08-24  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell-filter-dialog.c
      	* app/display/gimpdisplayshell-scale.c
      	* app/display/gimpnavigationview.c
      	* app/gui/dialogs-menu.c
      	* app/gui/documents-menu.c
      	* app/gui/error-console-menu.c
      	* app/gui/gradient-editor-commands.c
      	* app/gui/gradient-editor-menu.c
      	* app/gui/image-menu.c
      	* app/gui/select-commands.c
      	* app/gui/tool-options-dialog.c
      	* app/gui/toolbox-menu.c
      	* app/gui/vectors-menu.c
      	* app/widgets/gimpbufferview.c
      	* app/widgets/gimpchanneltreeview.c
      	* app/widgets/gimpdocumentview.c
      	* app/widgets/gimpeditor.[ch]
      	* app/widgets/gimperrorconsole.c
      	* app/widgets/gimpgradienteditor.c
      	* app/widgets/gimpitemtreeview.[ch]
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimpselectioneditor.c
      	* app/widgets/gimptemplateview.c
      	* app/widgets/gimpundoeditor.c
      	* app/widgets/gimpvectorstreeview.c
      	* app/widgets/gimphelp-ids.h: added and updated more help IDs.
      61122751
  31. 08 Apr, 2003 1 commit
    • Michael Natterer's avatar
      app/widgets/gimpbrushfactoryview.[ch] app/widgets/gimpbufferview.[ch] · f20e559b
      Michael Natterer authored
      2003-04-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpbrushfactoryview.[ch]
      	* app/widgets/gimpbufferview.[ch]
      	* app/widgets/gimpcontainereditor.[ch]
      	* app/widgets/gimpcontainergridview.[ch]
      	* app/widgets/gimpcontainertreeview.[ch]
      	* app/widgets/gimpcontainerview.[ch]
      	* app/widgets/gimpdatafactoryview.[ch]
      	* app/widgets/gimpdocumentview.[ch]
      	* app/widgets/gimpimageview.[ch]
      	* app/widgets/gimpitemtreeview.[ch]
      	* app/widgets/gimptemplateview.[ch]: removed "min_item_x" and
      	"min_item_y" parameters all over the place. Added
      	"preview_border_width" instead.
      
      	* app/widgets/gimpmenuitem.c: ensure that all menu items have the
      	same height.
      
      	* app/widgets/gimpcontainerpopup.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimpundoeditor.c
      	* app/gui/brush-select.c
      	* app/gui/dialogs-commands.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/font-select.c
      	* app/gui/gradient-select.c
      	* app/gui/palette-select.c
      	* app/gui/pattern-select.c: changed accordingly.
      
      	* app/gui/dialogs-constructors.c: removed the borders from the tool
      	and template lists.
      f20e559b
  32. 04 Apr, 2003 1 commit
    • Michael Natterer's avatar
      #define GIMP_UNDO_PREVIEW_SIZE 64 · c27429c8
      Michael Natterer authored
      2003-04-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpundo.h: #define GIMP_UNDO_PREVIEW_SIZE 64
      
      	* app/core/gimpundo.c (gimp_undo_create_preview_private):
      	* app/widgets/gimpundoeditor.c (gimp_undo_editor_init): use it.
      c27429c8
  33. 25 Mar, 2003 1 commit
    • Sven Neumann's avatar
      Makefile.am removed this header file. · 28fddfd5
      Sven Neumann authored
      2003-03-25  Sven Neumann  <sven@gimp.org>
      
      	* Makefile.am
      	* gimpintl.h: removed this header file.
      
      	* gimpmiscui.c: include libgimp-intl.h.
      
      	* gimp.c (gimp_main): call setlocale() and bind to the libgimp
      	textdomain so that plug-ins don't need to do that explicitely.
      
      	* libgimp/stdplugins-intl.h: added the functionality that used to
      	live in gimpintl.h and removed the libgimp related stuff. Got rid
      	of the INIT_I18N_UI() macro.
      
      	* plug-ins/*/*.c: removed all occurances of INIT_I18N_UI().
      	Plug-ins simply call INIT_I18N() once in their run() function.
      
      	* plug-ins/script-fu/script-fu-intl.h: added the functionality
      	that used to live in gimpintl.h and removed the libgimp related
      	stuff.
      
      	* app/Makefile.am
      	* app/gimp-intl.h: new file that defines the gettext macros for
      	the GIMP core.
      
      	* app/*/*.c: include gimp-intl.h instead of libgimp/gimpintl.h.
      
      	* plug-ins/script-fu/scripts/test-sphere.scm: fixed typos.
      28fddfd5
  34. 20 Mar, 2003 1 commit
    • Sven Neumann's avatar
      default the fill_type to GIMP_BACKGROUND_FILL (as in gimp_initialize()). · af066154
      Sven Neumann authored
      2003-03-20  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpimage-new.c (gimp_image_new_values_new): default
      	the fill_type to GIMP_BACKGROUND_FILL (as in gimp_initialize()).
      
      	* app/gui/file-commands.c
      	* app/gui/file-new-dialog.c: made more dialogs transient for their
      	parent window.
      
      	* app/widgets/gimpcontainertreeview.c
      	* app/widgets/gimpimageeditor.c
      	* app/widgets/gimpundoeditor.c: simplified a little bit.
      af066154
  35. 27 Feb, 2003 1 commit
    • Michael Natterer's avatar
      added virtual function get_popup_size() which returns a boolean indicating · 0614aa53
      Michael Natterer authored
      2003-02-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpviewable.[ch]: added virtual function
      	get_popup_size() which returns a boolean indicating if a popup is
      	needed and its size.
      
      	* app/core/gimpbrush.c
      	* app/core/gimpbrushpipe.c
      	* app/core/gimpbuffer.c
      	* app/core/gimpdrawable-preview.[ch]
      	* app/core/gimpdrawable.c
      	* app/core/gimpgradient.c
      	* app/core/gimpimage.c
      	* app/core/gimppalette.c
      	* app/core/gimppattern.c
      	* app/core/gimpundo.c: implement it.
      
      	* app/widgets/gimppreview.[ch]: removed virtual functions
      	needs_popup() and create_popup(). Removed the code which creates
      	the popup and the popup members of the GimpPreview struct.
      
      	* app/widgets/gimppreview-popup.[ch]: new files providing the
      	utility function gimp_preview_popup_show() which can show popups
      	from any widget, not just from a GimpPreview. Checks if a popup is
      	needed using gimp_viewable_get_popup_size().
      
      	* app/widgets/gimpcellrendererviewable.c: show popups here too.
      
      	* app/widgets/gimpbrushpreview.c
      	* app/widgets/gimpbufferpreview.c
      	* app/widgets/gimpdrawablepreview.c
      	* app/widgets/gimpimagepreview.c: removed needs_popup() and
      	create_popup() implementations.
      
      	* app/widgets/gimpnavigationpreview.c: removed empty render()
      	implementation.
      
      	* app/widgets/gimpundoeditor.c: use a tree instead of a list view.
      
      	* app/widgets/gimpgradientpreview.[ch]
      	* app/widgets/gimppalettepreview.[ch]
      	* app/widgets/gimppatternpreview.[ch]: removed because they only
      	implemented the removed popup functions.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpmenuitem.c
      	* app/widgets/gimppreview-utils.c: changed accordingly
      0614aa53
  36. 20 Feb, 2003 2 commits
    • Michael Natterer's avatar
      app/widgets/Makefile.am app/widgets/widgets-types.h new GimpEditor · 94bdcbcc
      Michael Natterer authored
      2003-02-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpimageeditor.[ch]: new GimpEditor subclass adding
      	a GimpImage pointer and a virtual set_image() function.
      
      	* app/widgets/gimpcolormapeditor.[ch]
      	* app/widgets/gimpselectioneditor.[ch]
      	* app/widgets/gimpundoeditor.[ch]: derive them from GimpImageEditor.
      	Removed the public set_image() functions.
      
      	* app/gui/colormap-editor-commands.c
      	* app/gui/colormap-editor-menu.c: changed accordingly.
      
      	* app/gui/dialogs-constructors.c: removed lots of code duplication
      	and use the uniform GimpImageEditor API. Misc cleanups.
      94bdcbcc
    • Michael Natterer's avatar
      Reimplemented the undo history: · c8b4394d
      Michael Natterer authored
      2003-02-20  Michael Natterer  <mitch@gimp.org>
      
      	Reimplemented the undo history:
      
      	* app/Makefile.am
      	* app/undo_history.[ch]: removed.
      
      	Changes/cleanups to the undo system to enable/simplify the new
      	undo history implementation:
      
      	* app/core/core-types.h: removed enum undo_event_t. Removed the
      	GimpImage parameter from GimpUndoPopFunc and GimpUndoFreeFunc
      	because GimpUndo has a GimpImage pointer now (see below).
      
      	* app/core/core-enums.[ch]: added enum GimpUndoEvent. Added an
      	enum value for REDO_EXPIRED.
      
      	* app/core/gimpimage.[ch]: added a GimpUndo pointer to the
      	"undo_event" signal which needs to be passed for all events except
      	UNDO_FREE.
      
      	* app/display/gimpdisplayshell-handlers.c: changed accordingly.
      
      	* app/core/gimpundo.[ch]: added a GimpImage pointer to the
      	GimpUndo struct. Removed GimpImage parameters all over the
      	place. Added preview stuff. The preview creation needs to be
      	triggered explicitly using gimp_undo_create_preview() because the
      	GimpUndo can't know when it's possible to create the preview.
      
      	* app/core/gimpimage-undo-push.c
      	* app/paint/gimppaintcore-undo.c
      	* app/tools/gimptransformtool-undo.c: changed accordingly, cleanup.
      
      	* app/core/gimpundostack.[ch]: ditto. Return the freed undo from
      	gimp_undo_stack_free_bottom(). Removed unused container signal
      	handlers.
      
      	* app/core/gimpimage-undo.c: free the redo stack the same way old
      	undos are freed (from bottom up). Emit "undo_event" with event ==
      	REDO_EXPIRED for each removed redo.
      
      	* app/core/gimpmarshal.list: added new marshallers.
      
      	New undo history implementation:
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpundoeditor.[ch]
      	* app/widgets/gimpundopreview.[ch]: new widgets for the undo
      	step previews and the history itself.
      
      	* app/widgets/gimppreview-utils.c: added GimpUndoPreview to the
      	list of possible preview types.
      
      	* app/gui/dialogs-constructors.[ch]
      	* app/gui/dialogs-menu.c
      	* app/gui/dialogs.c
      	* app/gui/image-menu.c
      	* app/gui/toolbox-menu.c: removed the old and added the new undo
      	history to the dialog factory and the various dialog menus.
      
      	* app/widgets/gimpdnd.[ch]: don't warn if a GType has no
      	corresponding DND type. Instead, return FALSE from the function
      	that failed.
      
      	* app/widgets/gimppreview.c: check the return value of gimpdnd
      	functions.  Not only add drag sources but also remove them when no
      	longer needed.
      
      	* app/widgets/gimpselectioneditor.h: removed unneeded inclusion of
      	"gui/gui-types.h".
      c8b4394d