1. 03 Jul, 2019 1 commit
    • Michael Natterer's avatar
      app: GtkAction -> GAction madness part two · 3b6b3fc1
      Michael Natterer authored
      Change all action callbacks so they can be invoked by a GAction:
      
      - add GimpActionCallback typedef:
        void (* cb) (GimpAction*, GVariant*, gpointer)
      - change all action callbacks to the GimpActionCallback signature
      - add "gimp-activate" and "gimp-change-state" signals to GimpAction,
        with the same signature as the resp. GAction signals
      - remove all other custom action signals and only use the new
        GimpAction signals
      - pass around appropriate GVariants containing booleans, int32,
        strings
      - badly hack around to force a GimpProcedure pointer into a
        uint64 variant
      - remove all G_CALLBACK() casts from all action callbacks,
        they all have the same signature now
      3b6b3fc1
  2. 02 Jul, 2019 2 commits
    • Michael Natterer's avatar
      app: change all action callback signatures to use GimpAction · b9d47f2d
      Michael Natterer authored
      instead of GtkAction, which is correct now because all our actions
      implement the GimpAction interface.
      b9d47f2d
    • Michael Natterer's avatar
      app: start porting away from GtkAction and friends · 86e07c16
      Michael Natterer authored
      Step one: get rid of all those deprecation warnings that make
      it hard to see any other warnings:
      
      - add a lot of dummy API to GimpAction, GimpActionGroup, GimpUIManager
        etc. which simply forwards to the deprecated GTK functions, they
        will all go away again later
      - rename GimpAction to GimpActionImpl
      - add interface GimpAction that is implemented by all action classes,
        creates a common interface and allows to remove some duplicated
        logic from GimpToggleAction and GimpRadioAction, and at the same
        time adds more features
      86e07c16
  3. 11 Jul, 2018 1 commit
  4. 24 Jun, 2018 3 commits
  5. 21 Jun, 2018 1 commit
  6. 13 Jun, 2018 1 commit
  7. 20 May, 2018 1 commit
  8. 25 Apr, 2018 1 commit
  9. 13 Apr, 2018 1 commit
  10. 09 Oct, 2017 1 commit
    • Ell's avatar
      app: use get_{left,right}_flat_color() in gradient editor · 32de4878
      Ell authored
      Use gimp_gradient_get_{left,right}_flat_color(), instead of
      gimp_gradient_get_color_at(), to get the selection endpoints'
      colors in the gradient editor, so that the correct colors are used
      under any condition (in particular, if there are 0-length
      segments.)
      32de4878
  11. 05 Mar, 2017 1 commit
  12. 12 Feb, 2017 1 commit
  13. 13 May, 2015 1 commit
  14. 24 Feb, 2015 1 commit
  15. 02 May, 2012 1 commit
  16. 02 Oct, 2011 1 commit
  17. 30 Sep, 2011 1 commit
  18. 10 Apr, 2011 1 commit
  19. 07 Jan, 2011 1 commit
  20. 30 Oct, 2010 1 commit
  21. 28 Feb, 2010 1 commit
    • Martin Nordholts's avatar
      app: Introduce gimp_dialog_factory_get_singleton() · 11b1300b
      Martin Nordholts authored
      Instead of including dialogs/dialogs.h everywhere, introduce
      gimp_dialog_factory_get_singleton(). The dialog factory singleton is
      still initialized by dialogs.c though.
      
      Right now the assumption is that we never will have another dialog
      factory instance around. There were so many problems before when we
      had four of them, so let's just keep one of them around.
      11b1300b
  22. 31 Oct, 2009 1 commit
  23. 15 Jul, 2009 1 commit
  24. 12 Jul, 2009 1 commit
  25. 07 Jul, 2009 1 commit
  26. 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
  27. 09 Dec, 2006 1 commit
  28. 01 Sep, 2006 1 commit
    • Michael Natterer's avatar
      added GimpContext parameters and create the GimpView with that context. · a6dbb78d
      Michael Natterer authored
      2006-09-01  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpviewabledialog.[ch]: added GimpContext
      	parameters and create the GimpView with that context.
      
      	* app/widgets/gimpcolordialog.[ch]
      	* app/dialogs/convert-dialog.[ch]
      	* app/dialogs/desaturate-dialog.[ch]
      	* app/dialogs/grid-dialog.[ch]
      	* app/dialogs/image-properties-dialog.[ch]
      	* app/dialogs/layer-add-mask-dialog.[ch]
      	* app/dialogs/offset-dialog.[ch]
      	* app/dialogs/print-size-dialog.[ch]
      	* app/dialogs/resize-dialog.[ch]
      	* app/dialogs/scale-dialog.[ch]
      	* app/dialogs/stroke-dialog.[ch]
      	* app/dialogs/template-options-dialog.[ch]
      	* app/dialogs/vectors-options-dialog.[ch]: added GimpContext
      	parameters here too and pass them to gimp_viewable_dialog_new().
      
      	* app/actions/colormap-editor-commands.c
      	* app/actions/drawable-commands.c
      	* app/actions/gradient-editor-commands.c
      	* app/actions/image-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/palette-editor-commands.c
      	* app/actions/select-commands.c
      	* app/actions/vectors-commands.c
      	* app/actions/view-commands.c
      	* app/dialogs/channel-options-dialog.c
      	* app/dialogs/dialogs-constructors.c
      	* app/dialogs/image-merge-layers-dialog.c
      	* app/dialogs/image-scale-dialog.c
      	* app/dialogs/layer-options-dialog.c
      	* app/display/gimpdisplayshell-filter-dialog.c
      	* app/display/gimpdisplayshell-scale.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.c
      	* app/tools/gimpvectortool.c
      	* app/widgets/gimpcolorpanel.c
      	* app/widgets/gimpcontrollereditor.c
      	* app/widgets/gimpcontrollerlist.c
      	* app/widgets/gimptoolbox-color-area.c: pass contexts to above
      	dialog constructors.
      a6dbb78d
  29. 31 Aug, 2006 1 commit
    • Michael Natterer's avatar
      app/actions/gradient-editor-actions.c added actions and callbacks to · 8486d32a
      Michael Natterer authored
      2006-09-01  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/gradient-editor-actions.c
      	* app/actions/gradient-editor-commands.[ch]: added actions and
      	callbacks to select a gradient segment's left and right color
      	type. Handle FG/BG color correctly in a few places. Use
      	GimpDataEditor's context instead of the user context.
      
      	* menus/gradient-editor-menu.xml: added the actions to the menu.
      
      	Cleanup:
      
      	* app/actions/palette-editor-actions.c
      	* app/actions/palette-editor-commands.c: use GimpDataEditor's
      	context instead of the user context.
      
      	* app/actions/brush-editor-actions.c: remove unused context
      	variable.
      8486d32a
  30. 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
  31. 12 Apr, 2006 1 commit
  32. 07 Jul, 2005 1 commit
    • Sven Neumann's avatar
      app/actions/gradient-editor-commands.c app/widgets/gimpcolordialog.c · 0c9b36d8
      Sven Neumann authored
      2005-07-07  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/gradient-editor-commands.c
      	* app/widgets/gimpcolordialog.c
      	* app/widgets/gimpdock.c
      	* plug-ins/gflare/gflare.c
      	* plug-ins/script-fu/script-fu-server.c: specify alternative
      	button order in some places that were missed earlier (spotted by
      	Stephan Binner).
      0c9b36d8
  33. 27 May, 2005 1 commit
  34. 06 May, 2005 1 commit
    • Michael Natterer's avatar
      added enum for the "load_color" actions. · b4f94205
      Michael Natterer authored
      2005-05-06  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/gradient-editor-commands.h: added enum for the
      	"load_color" actions.
      
      	* app/actions/gradient-editor-actions.c
      	* app/actions/gradient-editor-commands.c: use the new enum instead
      	of magic values, cleanup.
      
      	* app/actions/palette-editor-commands.c: cleanup.
      
      	* app/widgets/gimpbrusheditor.c
      	* app/widgets/gimpdataeditor.c: cleanup.
      
      	* app/widgets/gimpgradienteditor.c: added GtkObject::destroy() and
      	GtkWidget::unmap() implementations which destroy the color dialog.
      	Destroy color dialogs by cancelling them via gtk_dialog_response(),
      	so temporarily changed colors are restored correctly. Refactored
      	my last commit below a bit. Various cleanups.
      
      	* app/widgets/gimppaletteeditor.[ch]: no need to remember the
      	buttons in the GimpPaletteEditor struct.
      b4f94205
  35. 26 Feb, 2005 1 commit
    • Sven Neumann's avatar
      removed the "last_visited" field from GimpGradient. Instead added the new · 8de1e94b
      Sven Neumann authored
      2005-02-27  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpgradient.[ch]: removed the "last_visited" field
      	from GimpGradient. Instead added the new function
      	gimp_gradient_get_color_at_segment() that allows the caller to do
      	the same optimization.
      
      	* app/actions/gradient-editor-commands.c
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimppalette-import.c
      	* app/paint/gimppaintoptions.c
      	* app/widgets/gimpgradienteditor.c
      	* app/widgets/gimpgradientselect.c
      	* app/widgets/gimpviewrenderergradient.c: changed accordingly.
      
      	* app/pdb/gradient_cmds.c
      	* app/pdb/gradients_cmds.c: regenerated.
      8de1e94b
  36. 10 Feb, 2005 1 commit
    • Sven Neumann's avatar
      app/actions/data-commands.c app/actions/edit-commands.c · 3fef8514
      Sven Neumann authored
      2005-02-10  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/data-commands.c
      	* app/actions/edit-commands.c
      	* app/actions/error-console-commands.c
      	* app/actions/file-commands.c
      	* app/actions/gradient-editor-commands.c
      	* app/actions/gradients-commands.c
      	* app/actions/plug-in-commands.c
      	* app/actions/templates-commands.c
      	* app/actions/text-editor-commands.c
      	* app/actions/tool-options-commands.c
      	* app/dialogs/image-new-dialog.c
      	* app/dialogs/resize-dialog.c
      	* app/display/gimpdisplayshell-close.c
      	* app/display/gimpdisplayshell-filter-dialog.c
      	* app/display/gimpdisplayshell-scale.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimptexttool.c
      	* libgimp/gimpexport.c
      	* libgimpwidgets/gimpcolorbutton.c
      	* libgimpwidgets/gimpfileentry.c
      	* libgimpwidgets/gimpquerybox.c
      	* libgimpwidgets/gimpunitmenu.c: applied another patch by Patrice
      	Tremblay to make more dialogs obey the alternative button order
      	setting (bug #166678).
      3fef8514
  37. 21 Dec, 2004 1 commit
    • Michael Natterer's avatar
      if the dialog is insensitive, disable all actions which modify the · 30aa9051
      Michael Natterer authored
      2004-12-21  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/gradient-editor-actions.c
      	(gradient_editor_actions_update): if the dialog is insensitive,
      	disable all actions which modify the gradient. Fixes bug #161411.
      
      	* app/actions/gradient-editor-commands.c: update the UI manager
      	after setting the dialog sensitive/insensitive so te above works.
      30aa9051