stack: More readability when adding transitions
stack: More readability when adding transitions

This small refactor makes the code more readable when adding more
transition types that have left, right, up, and down variations.

It adds inline boolean functions to tell information about transition
types (avoiding long if clauses) and changes long chains of "else if
(transition_type == ...)" into switch statements. Both are only likely
to get longer as more transition types are added.

https://bugzilla.gnome.org/show_bug.cgi?id=726676

jigpu/gtk,alexlarsson/gtk,jadahl/gtk,Adamovskiy/gtk,ahodesuka/gtk,Sidnioulz/SandboxGtk,Adamovskiy/gtk,Sidnioulz/SandboxGtk,jessevdk/gtk,grubersjoe/adwaita,chergert/gtk,jessevdk/gtk,Lyude/gtk-,chergert/gtk,Lyude/gtk-,ahodesuka/gtk,jigpu/gtk,jigpu/gtk,Adamovskiy/gtk,Adamovskiy/gtk,Adamovskiy/gtk,jadahl/gtk,alexlarsson/gtk,Sidnioulz/SandboxGtk,davidgumberg/gtk,chergert/gtk,jadahl/gtk,jigpu/gtk,chergert/gtk,Lyude/gtk-,alexlarsson/gtk,jadahl/gtk,jessevdk/gtk,jadahl/gtk,Adamovskiy/gtk,ahodesuka/gtk,jessevdk/gtk,Lyude/gtk-,Sidnioulz/SandboxGtk,alexlarsson/gtk,grubersjoe/adwaita,ahodesuka/gtk,jessevdk/gtk,chergert/gtk,grubersjoe/adwaita,Lyude/gtk-,chergert/gtk,grubersjoe/adwaita,chergert/gtk,davidgumberg/gtk,jadahl/gtk,grubersjoe/adwaita,jigpu/gtk,ahodesuka/gtk,ahodesuka/gtk,Lyude/gtk-,jadahl/gtk,Lyude/gtk-,Adamovskiy/gtk,Adamovskiy/gtk,jigpu/gtk,grubersjoe/adwaita,jigpu/gtk,ahodesuka/gtk,davidgumberg/gtk,alexlarsson/gtk,alexlarsson/gtk,grubersjoe/adwaita,alexlarsson/gtk,davidgumberg/gtk,alexlarsson/gtk,davidgumberg/gtk,jigpu/gtk,grubersjoe/adwaita,davidgumberg/gtk,davidgumberg/gtk,Lyude/gtk-,ahodesuka/gtk,Sidnioulz/SandboxGtk,jadahl/gtk,davidgumberg/gtk,chergert/gtk,jessevdk/gtk,jessevdk/gtk,Sidnioulz/SandboxGtk