pending state dialog tweaks

git-svn-id: svn://localhost/ardour2/trunk@2577 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Nick Mainsbridge 2007-10-26 15:31:46 +00:00
parent cc862d31bd
commit 1b0f6b1d69
1 changed files with 9 additions and 3 deletions

View File

@ -2875,6 +2875,8 @@ ARDOUR_UI::disk_speed_dialog_gone (int ignored_response, MessageDialog* msg)
int
ARDOUR_UI::pending_state_dialog ()
{
HBox* hbox = new HBox();
Image* image = new Image (Stock::DIALOG_QUESTION, ICON_SIZE_DIALOG);
ArdourDialog dialog ("pending state dialog");
Label message (_("\
This session appears to have been in\n\
@ -2885,12 +2887,16 @@ Ardour can recover any captured audio for\n\
you, or it can ignore it. Please decide\n\
what you would like to do.\n"));
dialog.get_vbox()->pack_start (message);
dialog.add_button (_("Recover from crash"), RESPONSE_ACCEPT);
hbox->pack_start (*image, PACK_EXPAND_WIDGET, 12);
hbox->pack_end (message, PACK_EXPAND_PADDING, 12);
dialog.get_vbox()->pack_start(*hbox, PACK_EXPAND_PADDING, 6);
dialog.add_button (_("Ignore crash data"), RESPONSE_REJECT);
dialog.add_button (_("Recover from crash"), RESPONSE_ACCEPT);
dialog.set_default_response (RESPONSE_ACCEPT);
dialog.set_position (WIN_POS_CENTER);
message.show();
image->show();
hbox->show();
//dialog.get_vbox()->show();
switch (dialog.run ()) {