From 1b0f6b1d69bcad74c6127690cebc1c14486e8c1d Mon Sep 17 00:00:00 2001 From: Nick Mainsbridge Date: Fri, 26 Oct 2007 15:31:46 +0000 Subject: [PATCH] pending state dialog tweaks git-svn-id: svn://localhost/ardour2/trunk@2577 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/ardour_ui.cc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 0e52748e55..c2f9a1d533 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -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 ()) {