build: Disable gtk deprecation warnings

It's just too much.
window: Remove input method submenu

Conflicts:
	src/terminal-window.c

(cherry picked from commit b0a51a3edf63722453fcb8a90daf85a1e7eb4d19)
screen: Only remove the CLOEXEC flag

Don't clear all flags.

(cherry picked from commit 62a9cb16b938a3146065fb5af8754d24abfaecc6)
server: Error out on unsupported locale

(cherry picked from commit 27051edaea86908d8852e7bc66d88215b51fc179)
window: Plug a mem leak

(cherry picked from commit bca873ed12458fdbdeec7d7a8f250ac048efcee3)
client: legacy: Strip remote errors

(cherry picked from commit a705bca3b648ba2a0a2f8f53ce42253c3fa1177d)
client: legacy: Abort when passed --disable-factory

This option isn't working anymore, and shouldn't silently use the
server instead of a new process.

https://bugzilla.gnome.org/show_bug.cgi?id=707899
(cherry picked from commit aef122c916719763f6d0d404b4131456d84c482f)
client: legacy: Remove unused code for old options

(cherry picked from commit 3413b724a60951f06d5b75ea6c4daaf44d15aeb2)
data: Fix desktop file categories

gnome-software uses the desktop file categories to sort the applications
it shows.

This commit fixes the categories according to the freedesktop spec,
so that gnome-terminal will appear in the correct category.

For more information:
http://standards.freedesktop.org/menu-spec/latest/apa.html
http://standards.freedesktop.org/menu-spec/latest/apas02.html

https://bugzilla.gnome.org/show_bug.cgi?id=707552
(cherry picked from commit 973744eff9b747f92f8f20f9230460839e4f1fd0)

Conflicts:
	gnome-terminal.desktop.in.in
window: Make terminal close keybinding work for single tab windows

There's no real reason not to allow the same action to also close a
single-tab window.

https://bugzilla.gnome.org/show_bug.cgi?id=701354
(cherry picked from commit 50554c50da9f5c2490d0d9838d179ff281e13d44)