Bug 551306 – Color picker for text tool does not show selected palette

2008-09-08  Michael Natterer  <mitch@gimp.org>

	Bug 551306 – Color picker for text tool does not show selected
	palette

	* app/tools/gimptexttool.c (gimp_text_tool_register): add
	GIMP_CONTEXT_PALETTE_MASK to the tool option's context mask so the
	color popup's palette follows the globally selected palette.


svn path=/trunk/; revision=26899
This commit is contained in:
Michael Natterer 2008-09-08 12:50:41 +00:00 committed by Michael Natterer
parent 52142fde13
commit 3827523fe7
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,12 @@
2008-09-08 Michael Natterer <mitch@gimp.org>
Bug 551306 Color picker for text tool does not show selected
palette
* app/tools/gimptexttool.c (gimp_text_tool_register): add
GIMP_CONTEXT_PALETTE_MASK to the tool option's context mask so the
color popup's palette follows the globally selected palette.
2008-09-08 Sven Neumann <sven@gimp.org> 2008-09-08 Sven Neumann <sven@gimp.org>
* authors.xml: restored alphabetic order. Use real name instead of * authors.xml: restored alphabetic order. Use real name instead of

View File

@ -153,7 +153,9 @@ gimp_text_tool_register (GimpToolRegisterCallback callback,
(* callback) (GIMP_TYPE_TEXT_TOOL, (* callback) (GIMP_TYPE_TEXT_TOOL,
GIMP_TYPE_TEXT_OPTIONS, GIMP_TYPE_TEXT_OPTIONS,
gimp_text_options_gui, gimp_text_options_gui,
GIMP_CONTEXT_FOREGROUND_MASK | GIMP_CONTEXT_FONT_MASK, GIMP_CONTEXT_FOREGROUND_MASK |
GIMP_CONTEXT_FONT_MASK |
GIMP_CONTEXT_PALETTE_MASK /* for the color popup's palette tab */,
"gimp-text-tool", "gimp-text-tool",
_("Text"), _("Text"),
_("Text Tool: Create or edit text layers"), _("Text Tool: Create or edit text layers"),