Gimp/app/actions
Michael Natterer a1cd4144df Bug 704118 - crash on invalid number of PLTE entries
Make sure an indexed image always has a colormap. This was the case
before, except one could set a NULL colormap via the PDB.

Add gimp_image_unset_colormap(), and make gimp_image_set_colormap()
never set the colormap to NULL, even if NULL is passed. Change the
only places where actual unsetting makes sense to use unset().

Make some GUI places deal gracefully with palettes/colormaps with zero
entries.

(cherry picked from commit 37372555e5)
2013-07-14 22:33:52 +02:00
..
.gitignore Added .gitignore files generated with git svn create-ignore. 2009-01-31 11:37:44 +00:00
actions-types.h app: Make 'Export to' fall back to 'Export...' 2011-06-30 23:45:25 +02:00
actions.c app: rename all tool-preset dialog related things to "tool presets" 2011-10-09 21:55:58 +02:00
actions.h Bug 367388 - Small/percentage adjustment actions for tool-value and tip-sizes 2010-08-20 21:11:16 +02:00
brush-editor-actions.c app (actions): Remove dead variables and code 2011-10-10 09:53:24 +05:30
brush-editor-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
brushes-actions.c app: Add support for multiple items selection 2010-03-07 18:59:27 +02:00
brushes-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
buffers-actions.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
buffers-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
buffers-commands.c Move gimp_edit_paste_as_new() to gimp_image_new_from_buffer() 2010-02-09 22:32:49 +01:00
buffers-commands.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
channels-actions.c Use gimp_item_get_container_iter() instead of the GimpImage iter APIs 2009-08-01 22:54:49 +02:00
channels-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
channels-commands.c app: introduce GimpItem::to_selection() 2010-07-20 23:09:19 +02:00
channels-commands.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
colormap-actions.c Bug 704118 - crash on invalid number of PLTE entries 2013-07-14 22:33:52 +02:00
colormap-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
colormap-commands.c app: Introduce gimp_dialog_factory_get_singleton() 2010-02-28 23:23:24 +01:00
colormap-commands.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
config-actions.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
config-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
config-commands.c check that the action has a gimp pointer attached before using it 2009-10-09 00:33:27 +02:00
config-commands.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
context-actions.c changed "Aspect" to "Aspect Ratio". 2009-03-19 22:16:41 +00:00
context-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
context-commands.c app: Add and use gimp_dialog_factory_find_widget() 2012-01-10 19:47:52 +01:00
context-commands.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
cursor-info-actions.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
cursor-info-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
cursor-info-commands.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
cursor-info-commands.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
data-commands.c app: move the GimpWindowStrategy interface from display/ to widgets/ 2012-01-30 23:33:21 +01:00
data-commands.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
data-editor-commands.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
data-editor-commands.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
debug-actions.c app: Add File -> Debug -> Dump Keyboard Shortcuts menu command 2009-05-08 20:13:27 +02:00
debug-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
debug-commands.c Bug 676566 - Window title becomes "Untitled" after exporting without saving 2012-07-17 22:59:09 +02:00
debug-commands.h app: Add File -> Debug -> Dump Keyboard Shortcuts menu command 2009-05-08 20:13:27 +02:00
dialogs-actions.c app: Add and use gimp_dialog_factory_find_widget() 2012-01-10 19:47:52 +01:00
dialogs-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
dialogs-commands.c app: move the GimpWindowStrategy interface from display/ to widgets/ 2012-01-30 23:33:21 +01:00
dialogs-commands.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
dock-actions.c actions: dock-close had a default shortcut colliding with view-close. 2013-05-25 07:19:09 +09:00
dock-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
dock-commands.c Move the Image Selection Menu to GimpDockWindow 2009-12-05 21:21:24 +01:00
dock-commands.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
dockable-actions.c Bug 346881 - Remove redundant title of tab and move menu button up 2010-06-12 01:24:39 +02:00
dockable-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
dockable-commands.c app: don't rely on gtk_container_remove() to always destroy the child 2012-02-21 00:36:18 +01:00
dockable-commands.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
documents-actions.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
documents-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
documents-commands.c app: move all GimpImagefile members to private 2011-03-02 12:26:04 +01:00
documents-commands.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
drawable-actions.c app: use <primary> instead of <control> in accelerator strings 2011-09-16 22:59:58 +02:00
drawable-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
drawable-commands.c Add actions and callbacks to toggle "lock-content" on drawables and vectors 2009-08-20 21:19:43 +02:00
drawable-commands.h Add actions and callbacks to toggle "lock-content" on drawables and vectors 2009-08-20 21:19:43 +02:00
dynamics-actions.c app: fix typo: s/Dynamicss/Dynamics/ 2011-08-20 08:43:29 +02:00
dynamics-actions.h some missing files 2009-10-10 11:23:40 +03:00
dynamics-editor-actions.c Change user-visible strings from "Dynamics" to "Paint Dynamics" 2009-10-18 13:03:40 +02:00
dynamics-editor-actions.h Further changes to make dynamics editor and its menu. 2009-07-30 11:55:17 -03:00
edit-actions.c app: use <primary> instead of <control> in accelerator strings 2011-09-16 22:59:58 +02:00
edit-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
edit-commands.c app: move the GimpWindowStrategy interface from display/ to widgets/ 2012-01-30 23:33:21 +01:00
edit-commands.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
error-console-actions.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
error-console-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
error-console-commands.c app: add GimpTextBuffer, a GtkTextBuffer subclass 2010-02-25 17:41:10 +01:00
error-console-commands.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
file-actions.c app: can't call view_actions_setup() from file_actions_setup() 2013-05-25 07:09:20 +09:00
file-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
file-commands.c Bug 685557 - fix closing and saving a new image. 2012-11-28 00:01:25 +09:00
file-commands.h app: Rename 'Save as Template' to 'Create Template' 2009-05-16 09:48:22 +02:00
fonts-actions.c app (fonts-actions): Delete dead variables and code 2011-10-08 18:10:09 +05:30
fonts-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
fonts-commands.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
fonts-commands.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
gradient-editor-actions.c Build with GSEAL_ENABLE 2009-10-17 18:59:40 +02:00
gradient-editor-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
gradient-editor-commands.c libgimpwidgets: add gtk_scale_new() to gimp3migration.[ch] 2011-10-02 14:36:41 +02:00
gradient-editor-commands.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
gradients-actions.c app: Add support for multiple items selection 2010-03-07 18:59:27 +02:00
gradients-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
gradients-commands.c app: Always use gimp_object_get_name() 2009-08-29 12:41:29 +02:00
gradients-commands.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
help-actions.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
help-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
help-commands.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
help-commands.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
image-actions.c app: use <primary> instead of <control> in accelerator strings 2011-09-16 22:59:58 +02:00
image-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
image-commands.c Bug 625167 - Problem exporting floating selections from within layer groups 2011-02-14 09:45:59 +01:00
image-commands.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
images-actions.c Move "disp_count" and "instance_count" to GimpImagePrivate 2010-02-03 21:22:00 +01:00
images-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
images-commands.c Move "disp_count" and "instance_count" to GimpImagePrivate 2010-02-03 21:22:00 +01:00
images-commands.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
layers-actions.c app: pull virtual modifier replacement into gimp_get_mod_string() 2011-10-06 22:56:05 +02:00
layers-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
layers-commands.c Port stuff to gimp_item_is_text_layer() 2010-10-05 07:39:00 +02:00
layers-commands.h Add "layers-merge-group" action, callback and menu items 2009-09-21 19:17:02 +02:00
Makefile.am Remove the makefile.msc build system, it is unmaintained since 2008 2011-12-16 15:53:56 +01:00
palette-editor-actions.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
palette-editor-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
palette-editor-commands.c app: Introduce gimp_dialog_factory_get_singleton() 2010-02-28 23:23:24 +01:00
palette-editor-commands.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
palettes-actions.c app: Add support for multiple items selection 2010-03-07 18:59:27 +02:00
palettes-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
palettes-commands.c app: add lots of accessors to GimpPalette 2010-10-27 14:36:44 +02:00
palettes-commands.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
patterns-actions.c app: Add support for multiple items selection 2010-03-07 18:59:27 +02:00
patterns-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
plug-in-actions.c Review the last few commits and apply some style fanaticism 2012-02-07 20:36:55 +01:00
plug-in-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
plug-in-commands.c Use gimp_display_get_image() instead of display->image 2009-10-06 19:20:44 +02:00
plug-in-commands.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
quick-mask-actions.c Move the quick mask members to GimpImagePrivate 2010-02-04 09:49:45 +01:00
quick-mask-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
quick-mask-commands.c Move the quick mask members to GimpImagePrivate 2010-02-04 09:49:45 +01:00
quick-mask-commands.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
sample-points-actions.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
sample-points-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
sample-points-commands.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
sample-points-commands.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
select-actions.c app: use <primary> instead of <control> in accelerator strings 2011-09-16 22:59:58 +02:00
select-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
select-commands.c app: move the GimpWindowStrategy interface from display/ to widgets/ 2012-01-30 23:33:21 +01:00
select-commands.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
templates-actions.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
templates-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
templates-commands.c app: add gimp_container_get_neighbor_of() to GimpContainer 2011-03-13 02:14:44 +01:00
templates-commands.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
text-editor-actions.c Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
text-editor-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
text-editor-commands.c app: add GimpTextBuffer, a GtkTextBuffer subclass 2010-02-25 17:41:10 +01:00
text-editor-commands.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
text-tool-actions.c app: honor the "gtk-show-input-method-menu" setting 2010-10-14 00:13:35 +02:00
text-tool-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
text-tool-commands.c app: rename GimpTextTool::text_buffer to just ::buffer 2010-02-25 17:49:33 +01:00
text-tool-commands.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
tool-options-actions.c app: set the sensitivity of the tool options' preset menu items 2012-02-06 22:04:34 +01:00
tool-options-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
tool-options-commands.c app: move the GimpWindowStrategy interface from display/ to widgets/ 2012-01-30 23:33:21 +01:00
tool-options-commands.h app: remove the old tool presets system 2011-03-23 09:27:29 +01:00
tool-preset-editor-actions.c app (tool-preset-editor): Delete dead code and variables 2011-10-04 14:37:36 +05:30
tool-preset-editor-actions.h app: add missing files 2010-04-04 01:16:31 +03:00
tool-presets-actions.c app: rename all tool-preset dialog related things to "tool presets" 2011-10-09 21:55:58 +02:00
tool-presets-actions.h app: rename all tool-preset dialog related things to "tool presets" 2011-10-09 21:55:58 +02:00
tools-actions.c app: rename GimpToolInfo::menu_path to ::menu_label 2012-02-14 10:00:26 +01:00
tools-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
tools-commands.c app: Fixes to brush scale->size replacement 2010-10-30 21:38:54 +03:00
tools-commands.h app: Expose brush size in pixels, not as ratio 2010-10-30 19:51:07 +03:00
vectors-actions.c app/libgimp*: remove stuff found by -Wunused-but-set-variable 2011-05-01 23:23:19 +02:00
vectors-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
vectors-commands.c Bug 598253 - Bug when copying path from a document to another document 2010-11-27 22:28:34 +01:00
vectors-commands.h Add actions and callbacks to toggle "lock-content" on drawables and vectors 2009-08-20 21:19:43 +02:00
view-actions.c Bug 685559 - view-close action modified to close only an image view. 2013-05-25 07:08:37 +09:00
view-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
view-commands.c app: view_close_cmd_callback(): don't forbid to close images without layers 2013-07-03 09:26:03 +02:00
view-commands.h Bug 685559 - view-close action modified to close only an image view. 2013-05-25 07:08:37 +09:00
window-actions.c app (actions): Rewrite code to conditionally declare vars 2011-10-11 10:08:59 +05:30
window-actions.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
window-commands.c Remove two stray semicolons making if bodies always run 2011-04-08 13:20:37 +02:00
window-commands.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
windows-actions.c Bug 676566 - Window title becomes "Untitled" after exporting without saving 2012-07-17 22:59:09 +02:00
windows-actions.h app: Change GimpDialogFactory signals to "dock-window-added/removed" 2009-09-26 13:11:42 +02:00
windows-commands.c Move gimp_session_info_clear_info() into gimp_session_info_restore() 2011-06-14 23:34:12 +02:00
windows-commands.h app: make Alt+Tab and Alt+Shift+Tab cycle through all open displays 2011-05-30 23:46:50 +02:00