app: set paint_mode and opacity separately on mode nodes

so we don't constantly change the operation only because the opacity
varies during painting.
app: update the rotate dialog's spinbutton when the view is rotated
add default shortcut <shift>1 to reset rotation.
app: forgot to invert the matrix in corrective mode when transforming the selection.
app: make gimp_dock_window_constructed() more readable

by adding a local "factory_context" variable instead of calling
gimp_dialog_factory_get_context (dock_window->p->dialog_factory)
multiple times.
Bug 688348 - Layer tab and Images tab: not updated on dropping...

...one image onto another

gimp_dock_window_display_changed(): make sure the "auto-follow-active"
logic works both ways: when the active image or display is changed in
a dockable, update the global context. Fixes multi-window mode.

gimp_context_real_set_display(): make sure a context's display and
image are always in a consistent state and never have a display that
is not display->image: when display is the same as context->display,
check that the context's image matches display->image, so that after a
gimp_context_set_display(), the context is consistent in all
cases. Fixes single-window mode.
Bug 697862 - heal tool quality regression

Switch heal tool back to sRGB, which produces better quality than
linear-light. It is, after all, trying to correct for differences in
perceived brightness.
app: add an unrotated canvas item group to GimpDisplayShell

and put the software cursor and the tool progress there.
Updated Brazilian Portuguese translation
Revert "Updated Brazilian Portuguese translation"

This reverts commit ab168fa2790ad658b059edad95c0414a6b7d727b because
it was the wrong branch - should be gimp-2-8
Merge branch 'master' of git://git.gnome.org/gimp
Bug 692956 - Bring back 'Color from gradient' option to Paint tools

This patch adds a Dynamic for the 'Color From Gradient' option
and three Paint tool presets (Airbrush, Paintbrush, Pencil), which
use this preset.

	new file:   data/dynamics/Color-From-Gradient.gdyn
	new file:   data/tool-presets/Paint/Airbrush-Color-From-Gradient.gtp
	new file:   data/tool-presets/Paint/Paintbrush-Color-From-Gradient.gtp
	new file:   data/tool-presets/Paint/Pencil-Color-From-Gradient.gtp
	modified:   data/dynamics/Makefile.am
	modified:   data/tool-presets/Paint/Makefile.am
 	modified:   AUTHORS
 	modified:   authors.xml
(cherry picked from commit 54b28a5b6015cc54793695035ff2a0112b76de5b)
app: consolidate all transform API in gimpdisplayshell-transform.[ch]

Added complete API for zoom/unzoom (scale and scroll) and
rotate/unrotate, with the same set of functions as the existing
transform/untransform. Moved some special case functions to the
namespaces they belong.
prepare gui for foreground extract phase 1 done
cleanup makefile from plugin attrmpt
Merge branch 'master' of git://git.gnome.org/gimp