Rework destruction of FrameMain's children

wxCocoa doesn't like reparenting SubsGrid to NULL, so instead
recursively destroy all of FrameMain's children other than SubsGrid and
its parent. Fixes a crash on exit on OS X.

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6783 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Set the initial values of the color picker before binding events

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6784 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Fix infinite loop when changing the color in the color picker on OS X

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6785 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Remove hardcoded widths for the labels in the color picker

This results in the controls being slightly misaligned, but that's not
as bad as truncating the labels.

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6786 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Always use change_value for setting spin ctrls in the color picker

With wxCocoa the change events from SetValue are processed immediately,
resulting in significant breakage as in some cases multiple spin
controls need to be set at once. Even on other platforms where things
appeared to work due to the change notifications being delayed, they
still didn't do anything useful and slowed updates down slightly.

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6787 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Set both the initial and value fields of spin controls in the preferences dialog since wx ports are inconsistent about which is used

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6788 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Flush options after asking the first-startup questions

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6789 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Move the logic for Enter in a time edit to SubsEditBox

It doesn't make any sense for the time edits used elsewhere, and it made
Enter in a time edit not close dialogs.

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6790 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Remove out of date bug workaround

Panel borders no longer make update region coordinates be out of sync
with drawing coordinates.

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6791 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Always use wxPATH_WIN for wxFileName::GetForbiddenChars

While it's possible to have files with the DOS-only forbidden characters
on other platforms, wx doesn't actually support them very well.

Closes #1489.

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6792 93549f3f-7f0a-0410-a4b3-e966c9c94f04
stdout log emitter: flush stdout after every printf() if stdout is not a terminal

This makes it possible to watch aegisub's output in realtime even if its
stdout is redirected to a file.

From: cantabile <cantabile.desu@gmail.com>

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6793 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Preferences: rearrange the "Colors" page a bit

Make it look less asymmetrical.

From: cantabile <cantabile.desu@gmail.com>

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6794 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Preferences, Colors page: make the box sizers expand

This way the Colors page behaves more or less like the other pages.

From: cantabile <cantabile.desu@gmail.com>

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6795 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Preferences: give the font and path textboxes a minimum width of 160 px

The default minimum width was too small.

From: cantabile <cantabile.desu@gmail.com>

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6796 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Alsa player: avoid allocating an array of negative size and add some printfs for debugging.

From: cantabile <cantabile.desu@gmail.com>

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6797 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Never focus the comment checkbox (wxGTK only)

The checkbox can be toggled using its accelerator, without needing to
switch focus back to whatever was focused before.

From: cantabile <cantabile.desu@gmail.com>

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6798 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Silence three gcc warnings ("ambiguous else")

From: cantabile <cantabile.desu@gmail.com>

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6799 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Move two accelerators

SubsEditBox: move accelerator so it doesn't conflict with "Timing" menu.
Dummy video dialog: move accelerator so it doesn't conflict with the
Cancel button.

From: cantabile <cantabile.desu@gmail.com>

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6800 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Dummy video dialog: make the OK button the default button of the dialog

Done by imitating the buttons in the timing postprocessor.

From: cantabile <cantabile.desu@gmail.com>

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6801 93549f3f-7f0a-0410-a4b3-e966c9c94f04
Make the Jump To dialog less silly

- Don't set arbitrary sizes for the labels and textboxes.
- Get rid of the horizontal box sizers because the labels just wouldn't
  center vertically. Use a grid sizer instead.
- Use a wxStdDialogButtonSizer instead of creating the buttons manually.

From: cantabile <cantabile.desu@gmail.com>

git-svn-id: svn+ssh://aegisub/var/svn/aegisub/trunk@6802 93549f3f-7f0a-0410-a4b3-e966c9c94f04