view src/toolbar.phi @ 34394:a400c8f9506f v9.1.0123

patch 9.1.0123: MS-Windows: system() may deadlock Commit: https://github.com/vim/vim/commit/52ecc76c7fa1865603f27bc838efaeaa03cad77c Author: GuyBrush <miguel.barro@live.com> Date: Wed Feb 21 20:16:38 2024 +0100 patch 9.1.0123: MS-Windows: system() may deadlock Problem: MS-Windows: system() may deadlock when calling binaries that expect stdin Solution: Ignore the SHELL_EXPAND flag (GuyBrush) This happens on binaries that expect stdin. For example: :echo system("xxd") will cause a deadlock. SHELL_EXPAND is a flag devoted to support the linux implementation of the backtick-expansion mechanism. On linux backtic-expansion relies in the function mch_expand_wildchars() (os_unix.c) that delegates on each specific shell (bash, sh, csh, zsh) the expansion. Basically it composes a shell command that does the expansion and redirects the output to a file and call_shell() it. On windows backtick-expansion is performed by Vim itself. On linux SHELL_EXPAND modifies how mch_call_shell_fork() (os_unix.c) works. This function: - relies on posix fork() to spawn a child process to execute a external command. - Child and parent process communicate using pipes (or pseudoterminal if available). User input (type ahead content) is processed in a loop only if !(SHELL_EXPAND || SHELL_COOKED). Though signals are used to detect Ctrl-C in all cases (the input loop is not necessary to interrupt the function). In the backtick-expansion the external command is the shell command that provides the expansion. For the child redirection: - SHELL_EXPAND replaces stdin, stdout & stderr to /dev/null. This is why the shell command composed includes redirection (otherwise output would be lost). - !SHELL_EXPAND replaces stdin, stdout & stderr with the parent created pipes (or pseudoterminal). Note that the use of SIGINT signal prevents mch_call_shell_fork() from hanging vim. On Windows mch_system_piped() (os_win32.c) (which is only used when the GUI is running) mimics mch_call_shell_fork() (os_unix.c). Win32 lacks fork() and relies on CreateProcessW() and only has pipe support (not pseudoterminal) which makes the implementation much different. But, the key idea is that windows lacks signals, the OS provides support for console apps but gvim is not one. The only way of detecting a Ctrl-C is actually processing user input (type ahead content). By ignoring the user input under SHELL_EXPAND the function can hang gvim. Ignoring SHELL_EXPAND flag has no consequence in Windows because as mentioned above it is only meaningful in linux. closes: #13988 Signed-off-by: GuyBrush <miguel.barro@live.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Wed, 21 Feb 2024 20:30:02 +0100
parents 3fc0f57ecb91
children
line wrap: on
line source

/* Builtin icons for the toolbar in photon */

static PgColor_t tb_palette[] = {
	PgRGB(0,0,0),
	PgRGB(128,0,0),
	PgRGB(128,128,0),
	PgRGB(128,128,128),
	PgRGB(192,192,192),
	PgRGB(255,0,0),
	PgRGB(255,255,0),
	PgRGB(255,255,255),
};

static uint8_t tb_close_data[] = {
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x14,0x44,0x44,0x44,0x14,0x44,0x44,
	0x44,0x41,0x51,0x00,0x00,0x01,0x51,0x04,0x44,
	0x44,0x15,0x55,0x14,0x44,0x15,0x55,0x13,0x44,
	0x44,0x41,0x55,0x51,0x41,0x55,0x51,0x03,0x44,
	0x44,0x40,0x15,0x55,0x15,0x55,0x17,0x03,0x44,
	0x44,0x40,0x41,0x55,0x55,0x51,0x47,0x03,0x44,
	0x44,0x40,0x44,0x15,0x55,0x14,0x47,0x03,0x44,
	0x44,0x40,0x41,0x55,0x55,0x51,0x47,0x03,0x44,
	0x44,0x40,0x15,0x55,0x15,0x55,0x17,0x03,0x44,
	0x44,0x41,0x55,0x51,0x41,0x55,0x51,0x03,0x44,
	0x44,0x15,0x55,0x14,0x44,0x15,0x55,0x13,0x44,
	0x44,0x41,0x51,0x44,0x44,0x41,0x55,0x51,0x44,
	0x44,0x40,0x14,0x44,0x44,0x44,0x15,0x13,0x44,
	0x44,0x40,0x77,0x77,0x77,0x77,0x41,0x03,0x44,
	0x44,0x40,0x00,0x00,0x00,0x00,0x00,0x03,0x44,
	0x44,0x44,0x44,0x33,0x33,0x33,0x33,0x33,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
};

static PhImage_t tb_close_phi = {
	Pg_IMAGE_PALETTE_NIBBLE,
	0,
	9,
	{ 18,18 },
	420393992,
	8,
	NULL,
	PgGrey(0xc0),
	0,
	Ph_USE_TRANSPARENCY,
	0,
	0,
	NULL,
	0,
	NULL,
	tb_palette,
	tb_close_data
};

static uint8_t tb_copy_data[] = {
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x40,0x00,0x00,0x00,0x00,0x04,0x44,0x44,0x44,
	0x40,0x77,0x77,0x77,0x77,0x03,0x44,0x44,0x44,
	0x40,0x70,0x00,0x00,0x00,0x00,0x00,0x00,0x44,
	0x40,0x77,0x77,0x07,0x77,0x77,0x77,0x70,0x44,
	0x40,0x70,0x00,0x07,0x00,0x00,0x00,0x70,0x34,
	0x40,0x77,0x77,0x07,0x77,0x77,0x77,0x70,0x34,
	0x40,0x70,0x00,0x07,0x00,0x00,0x00,0x70,0x34,
	0x40,0x77,0x77,0x07,0x77,0x77,0x77,0x70,0x34,
	0x40,0x70,0x07,0x07,0x00,0x00,0x00,0x70,0x34,
	0x40,0x77,0x77,0x07,0x77,0x77,0x77,0x70,0x34,
	0x40,0x00,0x00,0x07,0x00,0x77,0x77,0x70,0x34,
	0x44,0x33,0x33,0x07,0x77,0x77,0x77,0x70,0x34,
	0x44,0x44,0x44,0x00,0x00,0x00,0x00,0x00,0x34,
	0x44,0x44,0x44,0x44,0x33,0x33,0x33,0x33,0x34,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
};

static PhImage_t tb_copy_phi = {
	Pg_IMAGE_PALETTE_NIBBLE,
	0,
	9,
	{ 18,18 },
	420393992,
	8,
	NULL,
	PgGrey(0xc0),
	0,
	Ph_USE_TRANSPARENCY,
	0,
	0,
	NULL,
	0,
	NULL,
	tb_palette,
	tb_copy_data
};

static uint8_t tb_ctags_data[] = {
	0x44,0x44,0x40,0x04,0x00,0x00,0x04,0x44,0x44,
	0x44,0x44,0x07,0x70,0x77,0x77,0x70,0x44,0x44,
	0x44,0x44,0x07,0x77,0x77,0x77,0x77,0x04,0x44,
	0x44,0x44,0x07,0x70,0x77,0x77,0x00,0x70,0x44,
	0x44,0x44,0x40,0x04,0x00,0x00,0x34,0x00,0x44,
	0x44,0x42,0x24,0x42,0x40,0x00,0x42,0x40,0x44,
	0x44,0x23,0x66,0x66,0x60,0x00,0x36,0x66,0x03,
	0x42,0x36,0x66,0x66,0x60,0x00,0x36,0x66,0x03,
	0x23,0x64,0x34,0x66,0x60,0x00,0x36,0x66,0x03,
	0x26,0x63,0x03,0x66,0x60,0x00,0x36,0x66,0x03,
	0x36,0x64,0x34,0x66,0x60,0x00,0x36,0x66,0x03,
	0x30,0x66,0x66,0x66,0x60,0x00,0x36,0x66,0x03,
	0x43,0x06,0x66,0x66,0x60,0x00,0x36,0x66,0x03,
	0x44,0x30,0x00,0x00,0x00,0x00,0x30,0x00,0x03,
	0x44,0x43,0x33,0x33,0x30,0x00,0x33,0x33,0x33,
	0x44,0x44,0x44,0x44,0x40,0x00,0x34,0x44,0x44,
	0x44,0x44,0x44,0x44,0x40,0x00,0x34,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x33,0x34,0x44,0x44,
};

static PhImage_t tb_ctags_phi = {
	Pg_IMAGE_PALETTE_NIBBLE,
	0,
	9,
	{ 18,18 },
	420393992,
	8,
	NULL,
	PgGrey(0xc0),
	0,
	Ph_USE_TRANSPARENCY,
	0,
	0,
	NULL,
	0,
	NULL,
	tb_palette,
	tb_ctags_data
};

static uint8_t tb_cut_data[] = {
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x40,0x44,0x44,0x40,0x34,0x44,0x44,
	0x44,0x44,0x40,0x34,0x44,0x40,0x34,0x44,0x44,
	0x44,0x44,0x44,0x04,0x44,0x03,0x44,0x44,0x44,
	0x44,0x44,0x44,0x03,0x44,0x03,0x44,0x44,0x44,
	0x44,0x44,0x44,0x40,0x40,0x34,0x44,0x44,0x44,
	0x44,0x44,0x44,0x40,0x30,0x34,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x03,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x40,0x00,0x34,0x44,0x44,0x44,
	0x44,0x44,0x43,0x03,0x44,0x03,0x44,0x44,0x44,
	0x44,0x44,0x00,0x03,0x44,0x00,0x04,0x44,0x44,
	0x44,0x40,0x33,0x03,0x44,0x03,0x40,0x44,0x44,
	0x44,0x40,0x44,0x03,0x44,0x03,0x40,0x34,0x44,
	0x44,0x40,0x44,0x03,0x44,0x03,0x40,0x34,0x44,
	0x44,0x44,0x00,0x33,0x44,0x40,0x03,0x44,0x44,
	0x44,0x44,0x33,0x44,0x44,0x43,0x34,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
};

static PhImage_t tb_cut_phi = {
	Pg_IMAGE_PALETTE_NIBBLE,
	0,
	9,
	{ 18,18 },
	420393992,
	8,
	NULL,
	PgGrey(0xc0),
	0,
	Ph_USE_TRANSPARENCY,
	0,
	0,
	NULL,
	0,
	NULL,
	tb_palette,
	tb_cut_data
};

static uint8_t tb_find_data[] = {
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x40,0x00,0x00,0x00,0x00,0x44,0x44,0x44,0x44,
	0x40,0x77,0x77,0x77,0x70,0x04,0x44,0x44,0x44,
	0x40,0x77,0x77,0x77,0x70,0x40,0x44,0x44,0x44,
	0x40,0x77,0x77,0x77,0x70,0x00,0x04,0x44,0x44,
	0x40,0x77,0x77,0x77,0x77,0x77,0x04,0x44,0x44,
	0x40,0x77,0x77,0x77,0x70,0x00,0x04,0x44,0x44,
	0x40,0x77,0x77,0x77,0x04,0x44,0x40,0x44,0x44,
	0x40,0x77,0x77,0x70,0x47,0x74,0x44,0x04,0x44,
	0x40,0x77,0x77,0x70,0x47,0x44,0x44,0x04,0x44,
	0x40,0x77,0x77,0x70,0x44,0x44,0x44,0x04,0x44,
	0x40,0x77,0x77,0x70,0x44,0x47,0x44,0x04,0x44,
	0x40,0x77,0x77,0x77,0x04,0x44,0x40,0x44,0x44,
	0x40,0x77,0x77,0x77,0x70,0x00,0x04,0x00,0x44,
	0x40,0x77,0x77,0x77,0x77,0x77,0x04,0x00,0x04,
	0x40,0x00,0x00,0x00,0x00,0x00,0x04,0x40,0x04,
	0x44,0x44,0x33,0x33,0x33,0x33,0x33,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
};

static PhImage_t tb_find_phi = {
	Pg_IMAGE_PALETTE_NIBBLE,
	0,
	9,
	{ 18,18 },
	420393992,
	8,
	NULL,
	PgGrey(0xc0),
	0,
	Ph_USE_TRANSPARENCY,
	0,
	0,
	NULL,
	0,
	NULL,
	tb_palette,
	tb_find_data
};

static uint8_t tb_find_help_data[] = {
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x00,0x00,0x03,0x44,0x44,0x44,0x44,
	0x44,0x40,0x04,0x43,0x00,0x34,0x44,0x44,0x44,
	0x44,0x00,0x34,0x44,0x00,0x04,0x44,0x44,0x44,
	0x44,0x00,0x34,0x44,0x00,0x00,0x44,0x44,0x44,
	0x44,0x30,0x04,0x40,0x47,0x74,0x04,0x44,0x44,
	0x44,0x44,0x44,0x04,0x44,0x74,0x40,0x44,0x44,
	0x44,0x44,0x44,0x07,0x77,0x74,0x70,0x44,0x44,
	0x44,0x44,0x40,0x04,0x77,0x44,0x40,0x44,0x44,
	0x44,0x44,0x40,0x00,0x47,0x74,0x03,0x44,0x44,
	0x44,0x44,0x44,0x44,0x00,0x00,0x30,0x04,0x44,
	0x44,0x44,0x40,0x03,0x44,0x44,0x40,0x00,0x44,
	0x44,0x44,0x40,0x03,0x44,0x44,0x44,0x00,0x44,
	0x44,0x44,0x40,0x03,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x33,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
};

static PhImage_t tb_find_help_phi = {
	Pg_IMAGE_PALETTE_NIBBLE,
	0,
	9,
	{ 18,18 },
	420393992,
	8,
	NULL,
	PgGrey(0xc0),
	0,
	Ph_USE_TRANSPARENCY,
	0,
	0,
	NULL,
	0,
	NULL,
	tb_palette,
	tb_find_help_data
};

static uint8_t tb_find_next_data[] = {
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x00,0x00,0x00,0x00,0x04,0x44,0x44,0x44,
	0x44,0x07,0x77,0x77,0x77,0x00,0x44,0x44,0x44,
	0x44,0x07,0x77,0x77,0x77,0x04,0x04,0x44,0x44,
	0x44,0x07,0x17,0x77,0x77,0x00,0x00,0x44,0x44,
	0x44,0x77,0x11,0x77,0x77,0x77,0x70,0x44,0x44,
	0x11,0x11,0x15,0x17,0x77,0x00,0x00,0x44,0x44,
	0x15,0x55,0x55,0x51,0x70,0x44,0x44,0x04,0x44,
	0x15,0x55,0x55,0x55,0x14,0x77,0x44,0x40,0x44,
	0x15,0x55,0x55,0x51,0x04,0x74,0x44,0x40,0x44,
	0x11,0x11,0x15,0x17,0x04,0x44,0x44,0x40,0x44,
	0x44,0x77,0x11,0x77,0x04,0x44,0x74,0x40,0x44,
	0x44,0x07,0x17,0x77,0x70,0x44,0x44,0x04,0x44,
	0x44,0x07,0x77,0x77,0x77,0x00,0x00,0x40,0x04,
	0x44,0x07,0x77,0x77,0x77,0x77,0x70,0x40,0x00,
	0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x44,0x00,
	0x44,0x44,0x43,0x33,0x33,0x33,0x33,0x34,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
};

static PhImage_t tb_find_next_phi = {
	Pg_IMAGE_PALETTE_NIBBLE,
	0,
	9,
	{ 18,18 },
	420393992,
	8,
	NULL,
	PgGrey(0xc0),
	0,
	Ph_USE_TRANSPARENCY,
	0,
	0,
	NULL,
	0,
	NULL,
	tb_palette,
	tb_find_next_data
};

static uint8_t tb_find_prev_data[] = {
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x00,0x00,0x00,0x00,0x04,0x44,0x44,0x44,
	0x44,0x07,0x77,0x77,0x77,0x00,0x44,0x44,0x44,
	0x44,0x07,0x77,0x77,0x77,0x04,0x04,0x44,0x44,
	0x44,0x47,0x17,0x77,0x77,0x00,0x00,0x44,0x44,
	0x44,0x71,0x17,0x77,0x77,0x77,0x70,0x44,0x44,
	0x44,0x15,0x11,0x11,0x17,0x00,0x00,0x44,0x44,
	0x41,0x55,0x55,0x55,0x10,0x44,0x44,0x04,0x44,
	0x15,0x55,0x55,0x55,0x04,0x77,0x44,0x40,0x44,
	0x41,0x55,0x55,0x55,0x04,0x74,0x44,0x40,0x44,
	0x44,0x15,0x11,0x11,0x04,0x44,0x44,0x40,0x44,
	0x44,0x71,0x17,0x77,0x04,0x44,0x74,0x40,0x44,
	0x44,0x47,0x17,0x77,0x70,0x44,0x44,0x04,0x44,
	0x44,0x07,0x77,0x77,0x77,0x00,0x00,0x40,0x04,
	0x44,0x07,0x77,0x77,0x77,0x77,0x70,0x40,0x00,
	0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x44,0x00,
	0x44,0x44,0x43,0x33,0x33,0x33,0x33,0x34,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
};

static PhImage_t tb_find_prev_phi = {
	Pg_IMAGE_PALETTE_NIBBLE,
	0,
	9,
	{ 18,18 },
	420393992,
	8,
	NULL,
	PgGrey(0xc0),
	0,
	Ph_USE_TRANSPARENCY,
	0,
	0,
	NULL,
	0,
	NULL,
	tb_palette,
	tb_find_prev_data
};

static uint8_t tb_help_data[] = {
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x00,0x00,0x03,0x44,0x44,0x44,
	0x44,0x44,0x40,0x04,0x43,0x00,0x34,0x44,0x44,
	0x44,0x44,0x00,0x34,0x44,0x00,0x04,0x44,0x44,
	0x44,0x44,0x00,0x34,0x44,0x00,0x04,0x44,0x44,
	0x44,0x44,0x30,0x04,0x43,0x00,0x34,0x44,0x44,
	0x44,0x44,0x44,0x44,0x40,0x03,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x00,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x40,0x03,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x40,0x03,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x40,0x03,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x40,0x03,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x40,0x03,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x33,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
};

static PhImage_t tb_help_phi = {
	Pg_IMAGE_PALETTE_NIBBLE,
	0,
	9,
	{ 18,18 },
	420393992,
	8,
	NULL,
	PgGrey(0xc0),
	0,
	Ph_USE_TRANSPARENCY,
	0,
	0,
	NULL,
	0,
	NULL,
	tb_palette,
	tb_help_data
};

static uint8_t tb_jump_data[] = {
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x42,0x22,0x22,0x22,0x22,0x22,0x22,0x24,
	0x44,0x23,0x66,0x66,0x66,0x66,0x66,0x66,0x03,
	0x42,0x36,0x66,0x66,0x66,0x66,0x66,0x66,0x03,
	0x23,0x64,0x34,0x66,0x66,0x66,0x66,0x66,0x03,
	0x26,0x63,0x03,0x66,0x66,0x66,0x66,0x66,0x03,
	0x36,0x64,0x34,0x66,0x66,0x66,0x66,0x66,0x03,
	0x30,0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x03,
	0x43,0x06,0x66,0x66,0x66,0x66,0x66,0x66,0x03,
	0x44,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x03,
	0x44,0x43,0x33,0x33,0x33,0x33,0x33,0x33,0x33,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
};

static PhImage_t tb_jump_phi = {
	Pg_IMAGE_PALETTE_NIBBLE,
	0,
	9,
	{ 18,18 },
	420393992,
	8,
	NULL,
	PgGrey(0xc0),
	0,
	Ph_USE_TRANSPARENCY,
	0,
	0,
	NULL,
	0,
	NULL,
	tb_palette,
	tb_jump_data
};

static uint8_t tb_load_session_data[] = {
	0x44,0x44,0x44,0x44,0x11,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x41,0x55,0x14,0x44,0x44,0x44,
	0x44,0x44,0x44,0x15,0x55,0x51,0x44,0x44,0x44,
	0x44,0x44,0x41,0x11,0x55,0x11,0x14,0x44,0x44,
	0x44,0x44,0x44,0x41,0x55,0x14,0x44,0x44,0x44,
	0x44,0x44,0x44,0x41,0x55,0x14,0x44,0x44,0x44,
	0x44,0x44,0x44,0x41,0x55,0x14,0x44,0x44,0x44,
	0x44,0x44,0x44,0x41,0x11,0x14,0x44,0x44,0x44,
	0x44,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x44,
	0x44,0x07,0x77,0x77,0x77,0x77,0x74,0x43,0x04,
	0x40,0x77,0x77,0x77,0x77,0x77,0x77,0x33,0x04,
	0x40,0x74,0x44,0x44,0x44,0x44,0x55,0x33,0x04,
	0x40,0x74,0x44,0x44,0x44,0x44,0x44,0x33,0x04,
	0x40,0x70,0x00,0x00,0x00,0x00,0x04,0x33,0x03,
	0x40,0x77,0x77,0x77,0x77,0x77,0x74,0x33,0x03,
	0x40,0x43,0x33,0x33,0x33,0x33,0x33,0x30,0x34,
	0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x44,
	0x44,0x44,0x33,0x33,0x33,0x33,0x33,0x34,0x44,
};

static PhImage_t tb_load_session_phi = {
	Pg_IMAGE_PALETTE_NIBBLE,
	0,
	9,
	{ 18,18 },
	420393992,
	8,
	NULL,
	PgGrey(0xc0),
	0,
	Ph_USE_TRANSPARENCY,
	0,
	0,
	NULL,
	0,
	NULL,
	tb_palette,
	tb_load_session_data
};

static uint8_t tb_macro_data[] = {
	0x44,0x44,0x43,0x00,0x34,0x44,0x44,0x44,0x44,
	0x44,0x44,0x30,0x77,0x03,0x44,0x44,0x44,0x44,
	0x44,0x44,0x07,0x77,0x70,0x34,0x44,0x44,0x44,
	0x44,0x43,0x07,0x77,0x70,0x34,0x44,0x44,0x44,
	0x44,0x44,0x30,0x77,0x03,0x44,0x44,0x44,0x44,
	0x44,0x44,0x40,0x00,0x00,0x34,0x44,0x44,0x44,
	0x44,0x40,0x00,0x00,0x70,0x34,0x44,0x44,0x44,
	0x44,0x30,0x77,0x77,0x77,0x04,0x44,0x44,0x44,
	0x44,0x00,0x77,0x77,0x77,0x00,0x44,0x44,0x44,
	0x44,0x43,0x00,0x00,0x77,0x30,0x44,0x44,0x44,
	0x44,0x44,0x30,0x00,0x77,0x70,0x34,0x44,0x44,
	0x44,0x44,0x00,0x77,0x77,0x70,0x04,0x44,0x44,
	0x44,0x43,0x07,0x77,0x77,0x77,0x00,0x44,0x44,
	0x44,0x40,0x77,0x70,0x00,0x77,0x70,0x04,0x44,
	0x44,0x07,0x77,0x03,0x40,0x07,0x77,0x70,0x44,
	0x44,0x07,0x70,0x34,0x44,0x30,0x77,0x70,0x44,
	0x44,0x30,0x00,0x44,0x44,0x43,0x00,0x03,0x44,
	0x44,0x43,0x34,0x44,0x44,0x44,0x43,0x04,0x44,
};

static PhImage_t tb_macro_phi = {
	Pg_IMAGE_PALETTE_NIBBLE,
	0,
	9,
	{ 18,18 },
	420393992,
	8,
	NULL,
	PgGrey(0xc0),
	0,
	Ph_USE_TRANSPARENCY,
	0,
	0,
	NULL,
	0,
	NULL,
	tb_palette,
	tb_macro_data
};

static uint8_t tb_make_data[] = {
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x00,0x40,0x00,0x00,0x44,0x44,0x44,
	0x44,0x40,0x77,0x07,0x77,0x77,0x04,0x44,0x44,
	0x44,0x40,0x77,0x77,0x77,0x77,0x70,0x44,0x44,
	0x44,0x40,0x73,0x07,0x77,0x70,0x07,0x04,0x44,
	0x44,0x44,0x00,0x40,0x00,0x03,0x40,0x04,0x44,
	0x44,0x44,0x44,0x44,0x00,0x04,0x44,0x04,0x44,
	0x44,0x44,0x44,0x44,0x00,0x03,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x00,0x03,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x00,0x03,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x00,0x03,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x00,0x03,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x00,0x03,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x00,0x03,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x00,0x03,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x00,0x03,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x43,0x33,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
};

static PhImage_t tb_make_phi = {
	Pg_IMAGE_PALETTE_NIBBLE,
	0,
	9,
	{ 18,18 },
	420393992,
	8,
	NULL,
	PgGrey(0xc0),
	0,
	Ph_USE_TRANSPARENCY,
	0,
	0,
	NULL,
	0,
	NULL,
	tb_palette,
	tb_make_data
};

static uint8_t tb_maximize_data[] = {
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x70,0x00,0x00,0x00,0x00,0x00,0x44,0x44,
	0x44,0x70,0x44,0x44,0x44,0x44,0x70,0x44,0x44,
	0x44,0x70,0x44,0x74,0x44,0x44,0x70,0x34,0x44,
	0x44,0x70,0x47,0x74,0x04,0x44,0x70,0x34,0x44,
	0x44,0x70,0x44,0x40,0x00,0x44,0x70,0x34,0x44,
	0x44,0x70,0x44,0x00,0x00,0x04,0x70,0x34,0x44,
	0x44,0x70,0x44,0x44,0x44,0x44,0x70,0x34,0x44,
	0x44,0x70,0x44,0x44,0x44,0x44,0x70,0x34,0x44,
	0x44,0x70,0x44,0x00,0x00,0x04,0x70,0x34,0x44,
	0x44,0x70,0x44,0x40,0x00,0x44,0x70,0x34,0x44,
	0x44,0x70,0x44,0x44,0x04,0x44,0x70,0x34,0x44,
	0x44,0x70,0x44,0x44,0x44,0x44,0x70,0x34,0x44,
	0x44,0x70,0x44,0x44,0x44,0x44,0x70,0x34,0x44,
	0x44,0x70,0x77,0x77,0x77,0x77,0x70,0x34,0x44,
	0x44,0x70,0x00,0x00,0x00,0x00,0x00,0x34,0x44,
	0x44,0x44,0x43,0x33,0x33,0x33,0x33,0x34,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
};

static PhImage_t tb_maximize_phi = {
	Pg_IMAGE_PALETTE_NIBBLE,
	0,
	9,
	{ 18,18 },
	420393992,
	8,
	NULL,
	PgGrey(0xc0),
	0,
	Ph_USE_TRANSPARENCY,
	0,
	0,
	NULL,
	0,
	NULL,
	tb_palette,
	tb_maximize_data
};

static uint8_t tb_maxwidth_data[] = {
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x70,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,
	0x70,0x44,0x44,0x44,0x44,0x44,0x44,0x47,0x04,
	0x70,0x44,0x74,0x40,0x44,0x04,0x44,0x47,0x03,
	0x70,0x47,0x74,0x00,0x44,0x00,0x44,0x47,0x03,
	0x70,0x44,0x40,0x00,0x44,0x00,0x04,0x47,0x03,
	0x70,0x44,0x44,0x00,0x44,0x00,0x44,0x47,0x03,
	0x70,0x44,0x44,0x40,0x44,0x04,0x44,0x47,0x03,
	0x70,0x77,0x77,0x77,0x77,0x77,0x77,0x77,0x03,
	0x70,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,
	0x44,0x43,0x33,0x33,0x33,0x33,0x33,0x33,0x33,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
};

static PhImage_t tb_maxwidth_phi = {
	Pg_IMAGE_PALETTE_NIBBLE,
	0,
	9,
	{ 18,18 },
	420393992,
	8,
	NULL,
	PgGrey(0xc0),
	0,
	Ph_USE_TRANSPARENCY,
	0,
	0,
	NULL,
	0,
	NULL,
	tb_palette,
	tb_maxwidth_data
};

static uint8_t tb_minimize_data[] = {
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x40,0x00,0x00,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x00,0x04,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x40,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x47,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x44,
	0x47,0x04,0x44,0x44,0x44,0x44,0x47,0x04,0x44,
	0x47,0x04,0x47,0x44,0x44,0x44,0x47,0x03,0x44,
	0x47,0x04,0x44,0x44,0x44,0x44,0x47,0x03,0x44,
	0x47,0x04,0x44,0x44,0x44,0x44,0x77,0x03,0x44,
	0x47,0x07,0x77,0x77,0x77,0x77,0x77,0x03,0x44,
	0x47,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x44,
	0x44,0x44,0x33,0x33,0x33,0x33,0x33,0x33,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x40,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x00,0x04,0x44,0x44,0x44,0x44,
	0x44,0x44,0x40,0x00,0x00,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
};

static PhImage_t tb_minimize_phi = {
	Pg_IMAGE_PALETTE_NIBBLE,
	0,
	9,
	{ 18,18 },
	420393992,
	8,
	NULL,
	PgGrey(0xc0),
	0,
	Ph_USE_TRANSPARENCY,
	0,
	0,
	NULL,
	0,
	NULL,
	tb_palette,
	tb_minimize_data
};

static uint8_t tb_minwidth_data[] = {
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x47,0x00,0x00,0x00,0x44,0x44,0x44,
	0x44,0x44,0x47,0x04,0x44,0x70,0x44,0x44,0x44,
	0x40,0x44,0x47,0x04,0x74,0x70,0x34,0x44,0x04,
	0x40,0x04,0x47,0x04,0x44,0x70,0x34,0x40,0x04,
	0x40,0x00,0x47,0x04,0x44,0x70,0x34,0x00,0x04,
	0x40,0x04,0x47,0x04,0x44,0x70,0x34,0x40,0x04,
	0x40,0x44,0x47,0x04,0x44,0x70,0x34,0x44,0x04,
	0x44,0x44,0x47,0x07,0x77,0x70,0x34,0x44,0x44,
	0x44,0x44,0x47,0x00,0x00,0x00,0x34,0x44,0x44,
	0x44,0x44,0x44,0x44,0x33,0x33,0x34,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
};

static PhImage_t tb_minwidth_phi = {
	Pg_IMAGE_PALETTE_NIBBLE,
	0,
	9,
	{ 18,18 },
	420393992,
	8,
	NULL,
	PgGrey(0xc0),
	0,
	Ph_USE_TRANSPARENCY,
	0,
	0,
	NULL,
	0,
	NULL,
	tb_palette,
	tb_minwidth_data
};

static uint8_t tb_new_data[] = {
	0x44,0x44,0x44,0x44,0x43,0x44,0x37,0x34,0x44,
	0x44,0x44,0x44,0x44,0x47,0x34,0x37,0x34,0x73,
	0x44,0x44,0x44,0x44,0x44,0x73,0x07,0x07,0x37,
	0x40,0x00,0x00,0x00,0x00,0x07,0x77,0x70,0x33,
	0x40,0x44,0x44,0x44,0x44,0x77,0x77,0x77,0x77,
	0x40,0x44,0x74,0x44,0x44,0x07,0x07,0x70,0x33,
	0x40,0x47,0x74,0x44,0x43,0x47,0x07,0x07,0x44,
	0x40,0x44,0x44,0x44,0x34,0x47,0x07,0x33,0x74,
	0x40,0x44,0x44,0x44,0x44,0x47,0x07,0x34,0x37,
	0x40,0x44,0x44,0x44,0x44,0x47,0x03,0x44,0x43,
	0x40,0x44,0x44,0x44,0x44,0x47,0x03,0x44,0x44,
	0x40,0x44,0x44,0x44,0x44,0x47,0x03,0x44,0x44,
	0x40,0x44,0x44,0x44,0x44,0x47,0x03,0x44,0x44,
	0x40,0x44,0x44,0x44,0x44,0x47,0x03,0x44,0x44,
	0x40,0x44,0x44,0x44,0x44,0x47,0x03,0x44,0x44,
	0x40,0x77,0x77,0x77,0x77,0x77,0x03,0x44,0x44,
	0x40,0x00,0x00,0x00,0x00,0x00,0x03,0x44,0x44,
	0x44,0x44,0x33,0x33,0x33,0x33,0x33,0x44,0x44,
};

static PhImage_t tb_new_phi = {
	Pg_IMAGE_PALETTE_NIBBLE,
	0,
	9,
	{ 18,18 },
	420393992,
	8,
	NULL,
	PgGrey(0xc0),
	0,
	Ph_USE_TRANSPARENCY,
	0,
	0,
	NULL,
	0,
	NULL,
	tb_palette,
	tb_new_data
};

static uint8_t tb_new_session_data[] = {
	0x44,0x44,0x34,0x43,0x73,0x44,0x34,0x44,0x44,
	0x44,0x44,0x43,0x40,0x70,0x43,0x44,0x44,0x44,
	0x44,0x44,0x33,0x07,0x77,0x03,0x34,0x44,0x44,
	0x44,0x44,0x77,0x77,0x77,0x77,0x74,0x44,0x44,
	0x44,0x44,0x33,0x07,0x77,0x03,0x34,0x44,0x44,
	0x44,0x44,0x43,0x40,0x70,0x43,0x44,0x44,0x44,
	0x44,0x44,0x34,0x43,0x73,0x44,0x34,0x44,0x44,
	0x44,0x44,0x44,0x44,0x34,0x44,0x44,0x44,0x44,
	0x44,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x44,
	0x44,0x07,0x77,0x77,0x77,0x77,0x74,0x43,0x04,
	0x40,0x77,0x77,0x77,0x77,0x77,0x77,0x33,0x04,
	0x40,0x74,0x44,0x44,0x44,0x44,0x55,0x33,0x04,
	0x40,0x74,0x44,0x44,0x44,0x44,0x44,0x33,0x04,
	0x40,0x70,0x00,0x00,0x00,0x00,0x04,0x33,0x03,
	0x40,0x77,0x77,0x77,0x77,0x77,0x74,0x33,0x03,
	0x40,0x43,0x33,0x33,0x33,0x33,0x33,0x30,0x34,
	0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x44,
	0x44,0x44,0x33,0x33,0x33,0x33,0x33,0x34,0x44,
};

static PhImage_t tb_new_session_phi = {
	Pg_IMAGE_PALETTE_NIBBLE,
	0,
	9,
	{ 18,18 },
	420393992,
	8,
	NULL,
	PgGrey(0xc0),
	0,
	Ph_USE_TRANSPARENCY,
	0,
	0,
	NULL,
	0,
	NULL,
	tb_palette,
	tb_new_session_data
};

static uint8_t tb_open_data[] = {
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x00,0x00,0x00,0x00,0x03,0x44,0x44,
	0x44,0x44,0x07,0x77,0x77,0x70,0x70,0x34,0x44,
	0x44,0x44,0x07,0x77,0x77,0x70,0x77,0x03,0x44,
	0x44,0x44,0x07,0x77,0x77,0x70,0x00,0x03,0x44,
	0x44,0x00,0x07,0x77,0x77,0x77,0x77,0x00,0x04,
	0x44,0x04,0x04,0x44,0x44,0x44,0x47,0x04,0x04,
	0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x03,0x03,
	0x07,0x77,0x77,0x77,0x77,0x77,0x70,0x03,0x03,
	0x40,0x74,0x44,0x44,0x44,0x44,0x43,0x03,0x03,
	0x40,0x74,0x44,0x44,0x44,0x44,0x44,0x03,0x03,
	0x44,0x07,0x44,0x44,0x44,0x44,0x44,0x30,0x03,
	0x44,0x07,0x44,0x44,0x44,0x44,0x44,0x40,0x03,
	0x44,0x40,0x73,0x33,0x33,0x33,0x33,0x33,0x03,
	0x44,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x03,
	0x44,0x44,0x43,0x33,0x33,0x33,0x33,0x33,0x33,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
};

static PhImage_t tb_open_phi = {
	Pg_IMAGE_PALETTE_NIBBLE,
	0,
	9,
	{ 18,18 },
	420393992,
	8,
	NULL,
	PgGrey(0xc0),
	0,
	Ph_USE_TRANSPARENCY,
	0,
	0,
	NULL,
	0,
	NULL,
	tb_palette,
	tb_open_data
};

static uint8_t tb_paste_data[] = {
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x40,0x00,0x04,0x44,0x44,0x44,0x44,
	0x44,0x44,0x40,0x00,0x04,0x44,0x44,0x44,0x44,
	0x44,0x00,0x04,0x44,0x40,0x00,0x34,0x44,0x44,
	0x40,0x43,0x00,0x00,0x00,0x33,0x03,0x44,0x44,
	0x40,0x43,0x33,0x33,0x33,0x33,0x03,0x44,0x44,
	0x40,0x43,0x34,0x00,0x00,0x00,0x00,0x00,0x44,
	0x40,0x43,0x34,0x07,0x77,0x77,0x77,0x70,0x44,
	0x40,0x43,0x34,0x07,0x00,0x00,0x00,0x70,0x34,
	0x40,0x43,0x34,0x07,0x77,0x77,0x77,0x70,0x34,
	0x40,0x43,0x34,0x07,0x77,0x77,0x77,0x70,0x34,
	0x40,0x43,0x34,0x07,0x00,0x00,0x00,0x70,0x34,
	0x40,0x43,0x34,0x07,0x77,0x77,0x77,0x70,0x34,
	0x44,0x00,0x00,0x07,0x00,0x77,0x77,0x70,0x34,
	0x44,0x43,0x33,0x07,0x77,0x77,0x77,0x70,0x34,
	0x44,0x44,0x44,0x00,0x00,0x00,0x00,0x00,0x34,
	0x44,0x44,0x44,0x44,0x33,0x33,0x33,0x33,0x34,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
};

static PhImage_t tb_paste_phi = {
	Pg_IMAGE_PALETTE_NIBBLE,
	0,
	9,
	{ 18,18 },
	420393992,
	8,
	NULL,
	PgGrey(0xc0),
	0,
	Ph_USE_TRANSPARENCY,
	0,
	0,
	NULL,
	0,
	NULL,
	tb_palette,
	tb_paste_data
};

static uint8_t tb_print_data[] = {
	0x44,0x40,0x00,0x00,0x00,0x00,0x04,0x44,0x44,
	0x44,0x40,0x77,0x77,0x77,0x77,0x04,0x44,0x44,
	0x44,0x40,0x70,0x00,0x77,0x77,0x03,0x44,0x44,
	0x44,0x40,0x77,0x77,0x77,0x77,0x03,0x44,0x44,
	0x44,0x40,0x70,0x00,0x77,0x77,0x03,0x44,0x44,
	0x44,0x40,0x77,0x77,0x77,0x77,0x03,0x44,0x44,
	0x44,0x40,0x70,0x00,0x00,0x77,0x03,0x44,0x44,
	0x44,0x40,0x77,0x77,0x77,0x77,0x03,0x44,0x44,
	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x44,
	0x07,0x77,0x77,0x77,0x77,0x77,0x77,0x30,0x44,
	0x07,0x55,0x44,0x44,0x44,0x44,0x44,0x30,0x34,
	0x07,0x44,0x44,0x44,0x44,0x44,0x44,0x30,0x34,
	0x07,0x44,0x44,0x44,0x44,0x44,0x44,0x30,0x34,
	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x34,
	0x40,0x44,0x44,0x44,0x44,0x44,0x44,0x03,0x34,
	0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x44,
	0x44,0x43,0x33,0x33,0x33,0x33,0x33,0x33,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
};

static PhImage_t tb_print_phi = {
	Pg_IMAGE_PALETTE_NIBBLE,
	0,
	9,
	{ 18,18 },
	420393992,
	8,
	NULL,
	PgGrey(0xc0),
	0,
	Ph_USE_TRANSPARENCY,
	0,
	0,
	NULL,
	0,
	NULL,
	tb_palette,
	tb_print_data
};

static uint8_t tb_redo_data[] = {
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x00,0x00,0x04,0x40,0x04,0x44,
	0x44,0x44,0x00,0x77,0x77,0x70,0x07,0x03,0x44,
	0x44,0x40,0x77,0x77,0x77,0x77,0x77,0x03,0x44,
	0x44,0x40,0x77,0x00,0x00,0x77,0x77,0x03,0x44,
	0x44,0x07,0x70,0x33,0x30,0x77,0x77,0x03,0x44,
	0x44,0x07,0x70,0x34,0x07,0x77,0x77,0x03,0x44,
	0x44,0x07,0x70,0x34,0x00,0x00,0x00,0x03,0x44,
	0x44,0x07,0x70,0x34,0x43,0x33,0x03,0x33,0x44,
	0x44,0x07,0x70,0x34,0x44,0x40,0x70,0x44,0x44,
	0x44,0x40,0x77,0x00,0x00,0x07,0x70,0x34,0x44,
	0x44,0x40,0x77,0x77,0x77,0x77,0x03,0x34,0x44,
	0x44,0x44,0x00,0x77,0x77,0x70,0x33,0x44,0x44,
	0x44,0x44,0x44,0x00,0x00,0x03,0x34,0x44,0x44,
	0x44,0x44,0x44,0x43,0x33,0x33,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
};

static PhImage_t tb_redo_phi = {
	Pg_IMAGE_PALETTE_NIBBLE,
	0,
	9,
	{ 18,18 },
	420393992,
	8,
	NULL,
	PgGrey(0xc0),
	0,
	Ph_USE_TRANSPARENCY,
	0,
	0,
	NULL,
	0,
	NULL,
	tb_palette,
	tb_redo_data
};

static uint8_t tb_replace_data[] = {
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x00,0x00,0x00,0x00,0x04,0x44,0x44,0x44,
	0x44,0x07,0x77,0x77,0x77,0x00,0x44,0x44,0x44,
	0x44,0x07,0x00,0x77,0x77,0x07,0x04,0x44,0x44,
	0x44,0x34,0x00,0x37,0x77,0x00,0x00,0x44,0x44,
	0x44,0x40,0x70,0x07,0x77,0x77,0x70,0x44,0x44,
	0x44,0x30,0x00,0x03,0x77,0x77,0x70,0x34,0x44,
	0x44,0x07,0x77,0x00,0x77,0x77,0x70,0x34,0x44,
	0x40,0x03,0x73,0x00,0x07,0x77,0x40,0x34,0x44,
	0x44,0x47,0x77,0x77,0x77,0x77,0x74,0x34,0x44,
	0x44,0x07,0x55,0x44,0x57,0x77,0x00,0x00,0x44,
	0x44,0x07,0x35,0x44,0x55,0x77,0x03,0x70,0x04,
	0x44,0x07,0x73,0x55,0x55,0x57,0x00,0x00,0x44,
	0x44,0x07,0x77,0x77,0x55,0x77,0x03,0x70,0x04,
	0x44,0x07,0x77,0x77,0x57,0x77,0x03,0x70,0x04,
	0x44,0x00,0x00,0x00,0x40,0x04,0x00,0x00,0x44,
	0x44,0x44,0x43,0x33,0x33,0x33,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
};

static PhImage_t tb_replace_phi = {
	Pg_IMAGE_PALETTE_NIBBLE,
	0,
	9,
	{ 18,18 },
	420393992,
	8,
	NULL,
	PgGrey(0xc0),
	0,
	Ph_USE_TRANSPARENCY,
	0,
	0,
	NULL,
	0,
	NULL,
	tb_palette,
	tb_replace_data
};

static uint8_t tb_save_data[] = {
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x44,
	0x44,0x04,0x07,0x77,0x77,0x77,0x70,0x40,0x44,
	0x44,0x04,0x07,0x77,0x77,0x77,0x70,0x00,0x34,
	0x44,0x04,0x07,0x77,0x77,0x77,0x70,0x40,0x34,
	0x44,0x04,0x07,0x77,0x77,0x77,0x70,0x40,0x34,
	0x44,0x04,0x07,0x77,0x77,0x77,0x70,0x40,0x34,
	0x44,0x04,0x07,0x77,0x77,0x77,0x70,0x40,0x34,
	0x44,0x04,0x40,0x00,0x00,0x00,0x04,0x40,0x34,
	0x44,0x04,0x44,0x44,0x44,0x44,0x44,0x40,0x34,
	0x44,0x04,0x40,0x00,0x00,0x00,0x00,0x40,0x34,
	0x44,0x04,0x40,0x00,0x00,0x04,0x40,0x40,0x34,
	0x44,0x04,0x40,0x00,0x00,0x04,0x40,0x40,0x34,
	0x44,0x04,0x40,0x00,0x00,0x04,0x40,0x40,0x34,
	0x44,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x34,
	0x44,0x44,0x33,0x33,0x33,0x33,0x33,0x33,0x34,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
};

static PhImage_t tb_save_phi = {
	Pg_IMAGE_PALETTE_NIBBLE,
	0,
	9,
	{ 18,18 },
	420393992,
	8,
	NULL,
	PgGrey(0xc0),
	0,
	Ph_USE_TRANSPARENCY,
	0,
	0,
	NULL,
	0,
	NULL,
	tb_palette,
	tb_save_data
};

static uint8_t tb_save_all_data[] = {
	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x44,0x44,
	0x04,0x07,0x77,0x77,0x77,0x70,0x70,0x44,0x44,
	0x04,0x07,0x77,0x77,0x77,0x70,0x00,0x34,0x44,
	0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,
	0x04,0x00,0x40,0x77,0x77,0x77,0x77,0x07,0x04,
	0x04,0x00,0x40,0x77,0x77,0x77,0x77,0x00,0x03,
	0x04,0x00,0x40,0x77,0x77,0x77,0x77,0x04,0x03,
	0x04,0x40,0x40,0x77,0x77,0x77,0x77,0x04,0x03,
	0x04,0x40,0x40,0x77,0x77,0x77,0x77,0x04,0x03,
	0x04,0x40,0x40,0x77,0x77,0x77,0x77,0x04,0x03,
	0x04,0x40,0x44,0x00,0x00,0x00,0x00,0x44,0x03,
	0x04,0x40,0x44,0x44,0x44,0x44,0x44,0x44,0x03,
	0x04,0x40,0x44,0x00,0x00,0x00,0x00,0x04,0x03,
	0x40,0x00,0x44,0x00,0x00,0x00,0x77,0x04,0x03,
	0x44,0x30,0x44,0x00,0x00,0x00,0x77,0x04,0x03,
	0x44,0x40,0x44,0x00,0x00,0x00,0x77,0x04,0x03,
	0x44,0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x03,
	0x44,0x44,0x43,0x33,0x33,0x33,0x33,0x33,0x34,
};

static PhImage_t tb_save_all_phi = {
	Pg_IMAGE_PALETTE_NIBBLE,
	0,
	9,
	{ 18,18 },
	420393992,
	8,
	NULL,
	PgGrey(0xc0),
	0,
	Ph_USE_TRANSPARENCY,
	0,
	0,
	NULL,
	0,
	NULL,
	tb_palette,
	tb_save_all_data
};

static uint8_t tb_save_session_data[] = {
	0x44,0x44,0x44,0x41,0x11,0x14,0x44,0x44,0x44,
	0x44,0x44,0x44,0x41,0x55,0x14,0x44,0x44,0x44,
	0x44,0x44,0x44,0x41,0x55,0x14,0x44,0x44,0x44,
	0x44,0x44,0x44,0x41,0x55,0x14,0x44,0x44,0x44,
	0x44,0x44,0x41,0x11,0x55,0x11,0x14,0x44,0x44,
	0x44,0x44,0x44,0x15,0x55,0x51,0x44,0x44,0x44,
	0x44,0x44,0x44,0x41,0x55,0x14,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x11,0x44,0x44,0x44,0x44,
	0x44,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x44,
	0x44,0x07,0x77,0x77,0x77,0x77,0x74,0x43,0x04,
	0x40,0x77,0x77,0x77,0x77,0x77,0x77,0x33,0x04,
	0x40,0x74,0x44,0x44,0x44,0x44,0x55,0x33,0x04,
	0x40,0x74,0x44,0x44,0x44,0x44,0x44,0x33,0x04,
	0x40,0x70,0x00,0x00,0x00,0x00,0x04,0x33,0x03,
	0x40,0x77,0x77,0x77,0x77,0x77,0x74,0x33,0x03,
	0x40,0x43,0x33,0x33,0x33,0x33,0x33,0x30,0x34,
	0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x44,
	0x44,0x44,0x33,0x33,0x33,0x33,0x33,0x34,0x44,
};

static PhImage_t tb_save_session_phi = {
	Pg_IMAGE_PALETTE_NIBBLE,
	0,
	9,
	{ 18,18 },
	420393992,
	8,
	NULL,
	PgGrey(0xc0),
	0,
	Ph_USE_TRANSPARENCY,
	0,
	0,
	NULL,
	0,
	NULL,
	tb_palette,
	tb_save_session_data
};

static uint8_t tb_shell_data[] = {
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x40,0x00,0x40,0x00,0x44,0x44,0x44,
	0x44,0x44,0x03,0x43,0x33,0x43,0x04,0x44,0x44,
	0x44,0x40,0x47,0x43,0x03,0x47,0x40,0x44,0x44,
	0x44,0x40,0x34,0x74,0x34,0x74,0x30,0x44,0x44,
	0x44,0x03,0x44,0x44,0x04,0x44,0x43,0x04,0x44,
	0x40,0x34,0x03,0x74,0x34,0x73,0x04,0x30,0x44,
	0x40,0x44,0x43,0x74,0x04,0x73,0x44,0x40,0x44,
	0x40,0x47,0x40,0x37,0x37,0x30,0x47,0x40,0x34,
	0x40,0x34,0x74,0x04,0x04,0x04,0x74,0x30,0x34,
	0x44,0x03,0x74,0x34,0x44,0x34,0x73,0x03,0x44,
	0x44,0x40,0x34,0x44,0x74,0x44,0x30,0x34,0x44,
	0x44,0x44,0x04,0x47,0x77,0x44,0x03,0x44,0x44,
	0x44,0x44,0x00,0x34,0x44,0x30,0x03,0x44,0x44,
	0x44,0x40,0x34,0x44,0x44,0x44,0x30,0x34,0x44,
	0x44,0x40,0x00,0x00,0x00,0x00,0x00,0x34,0x44,
	0x44,0x44,0x43,0x33,0x33,0x33,0x33,0x34,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
};

static PhImage_t tb_shell_phi = {
	Pg_IMAGE_PALETTE_NIBBLE,
	0,
	9,
	{ 18,18 },
	420393992,
	8,
	NULL,
	PgGrey(0xc0),
	0,
	Ph_USE_TRANSPARENCY,
	0,
	0,
	NULL,
	0,
	NULL,
	tb_palette,
	tb_shell_data
};

static uint8_t tb_split_data[] = {
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x70,0x00,0x00,0x00,0x00,0x00,0x44,0x44,
	0x44,0x70,0x44,0x44,0x44,0x44,0x70,0x44,0x44,
	0x44,0x70,0x44,0x74,0x44,0x44,0x70,0x34,0x44,
	0x44,0x70,0x47,0x74,0x44,0x44,0x70,0x34,0x44,
	0x44,0x70,0x44,0x44,0x44,0x44,0x70,0x34,0x44,
	0x44,0x70,0x44,0x44,0x44,0x44,0x70,0x34,0x44,
	0x44,0x70,0x77,0x77,0x77,0x77,0x70,0x34,0x44,
	0x44,0x70,0x00,0x00,0x00,0x00,0x00,0x34,0x44,
	0x44,0x70,0x33,0x33,0x33,0x33,0x70,0x34,0x44,
	0x44,0x70,0x44,0x74,0x44,0x44,0x70,0x34,0x44,
	0x44,0x70,0x47,0x74,0x44,0x44,0x70,0x34,0x44,
	0x44,0x70,0x44,0x44,0x44,0x44,0x70,0x34,0x44,
	0x44,0x70,0x44,0x44,0x44,0x44,0x70,0x34,0x44,
	0x44,0x70,0x77,0x77,0x77,0x77,0x70,0x34,0x44,
	0x44,0x70,0x00,0x00,0x00,0x00,0x00,0x34,0x44,
	0x44,0x44,0x43,0x33,0x33,0x33,0x33,0x34,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
};

static PhImage_t tb_split_phi = {
	Pg_IMAGE_PALETTE_NIBBLE,
	0,
	9,
	{ 18,18 },
	420393992,
	8,
	NULL,
	PgGrey(0xc0),
	0,
	Ph_USE_TRANSPARENCY,
	0,
	0,
	NULL,
	0,
	NULL,
	tb_palette,
	tb_split_data
};

static uint8_t tb_undo_data[] = {
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x00,0x44,0x00,0x00,0x04,0x44,0x44,0x44,
	0x44,0x07,0x00,0x77,0x77,0x70,0x04,0x44,0x44,
	0x44,0x07,0x77,0x77,0x77,0x77,0x70,0x44,0x44,
	0x44,0x07,0x77,0x70,0x00,0x07,0x70,0x34,0x44,
	0x44,0x07,0x77,0x70,0x33,0x30,0x77,0x04,0x44,
	0x44,0x07,0x77,0x77,0x04,0x40,0x77,0x03,0x44,
	0x44,0x00,0x00,0x00,0x03,0x40,0x77,0x03,0x44,
	0x44,0x43,0x03,0x33,0x33,0x40,0x77,0x03,0x44,
	0x44,0x40,0x70,0x44,0x44,0x40,0x77,0x03,0x44,
	0x44,0x40,0x77,0x00,0x00,0x07,0x70,0x33,0x44,
	0x44,0x44,0x07,0x77,0x77,0x77,0x70,0x34,0x44,
	0x44,0x44,0x40,0x77,0x77,0x70,0x03,0x34,0x44,
	0x44,0x44,0x44,0x00,0x00,0x03,0x33,0x44,0x44,
	0x44,0x44,0x44,0x43,0x33,0x33,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
};

static PhImage_t tb_undo_phi = {
	Pg_IMAGE_PALETTE_NIBBLE,
	0,
	9,
	{ 18,18 },
	420393992,
	8,
	NULL,
	PgGrey(0xc0),
	0,
	Ph_USE_TRANSPARENCY,
	0,
	0,
	NULL,
	0,
	NULL,
	tb_palette,
	tb_undo_data
};

static uint8_t tb_vsplit_data[] = {
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
	0x47,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x44,
	0x47,0x04,0x44,0x47,0x03,0x44,0x44,0x70,0x44,
	0x47,0x04,0x47,0x47,0x03,0x44,0x74,0x70,0x34,
	0x47,0x04,0x77,0x47,0x03,0x47,0x74,0x70,0x34,
	0x47,0x04,0x44,0x47,0x03,0x44,0x44,0x70,0x34,
	0x47,0x04,0x44,0x47,0x03,0x44,0x44,0x70,0x34,
	0x47,0x04,0x44,0x47,0x03,0x44,0x44,0x70,0x34,
	0x47,0x04,0x44,0x47,0x03,0x44,0x44,0x70,0x34,
	0x47,0x04,0x44,0x47,0x03,0x44,0x44,0x70,0x34,
	0x47,0x04,0x44,0x47,0x03,0x44,0x44,0x70,0x34,
	0x47,0x04,0x44,0x47,0x03,0x44,0x44,0x70,0x34,
	0x47,0x04,0x44,0x47,0x03,0x44,0x44,0x70,0x34,
	0x47,0x04,0x44,0x47,0x03,0x44,0x44,0x70,0x34,
	0x47,0x07,0x77,0x77,0x07,0x77,0x77,0x70,0x34,
	0x47,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x34,
	0x44,0x44,0x33,0x33,0x33,0x33,0x33,0x33,0x34,
	0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,
};

static PhImage_t tb_vsplit_phi = {
	Pg_IMAGE_PALETTE_NIBBLE,
	0,
	9,
	{ 18,18 },
	420393992,
	8,
	NULL,
	PgGrey(0xc0),
	0,
	Ph_USE_TRANSPARENCY,
	0,
	0,
	NULL,
	0,
	NULL,
	tb_palette,
	tb_vsplit_data
};