diff --git a/gtk2_ardour/ok_dialog.cc b/gtk2_ardour/ok_dialog.cc
index 32797f027d..ea44c1f367 100644
--- a/gtk2_ardour/ok_dialog.cc
+++ b/gtk2_ardour/ok_dialog.cc
@@ -30,7 +30,7 @@ using namespace Pango;
namespace {
const size_t button_left_padding = 10;
- const size_t button_bottom_padding = 10;
+ const size_t button_bottom_padding = 15;
const size_t font_size = 12;
const size_t label_top_padding = 10;
@@ -60,7 +60,7 @@ namespace {
if ( current_lines_number > max_lines_number )
{
- return current_window_height + (current_lines_number - max_lines_number) * font_size;
+ return current_window_height + (current_lines_number - max_lines_number + 1) * font_size;
} else
return current_window_height;
}
@@ -78,6 +78,7 @@ OkDialog::OkDialog (std::string window_title, std::string info_lines)
{
set_modal (true);
set_resizable (false);
+ this->set_keep_above (true);
_info_label.set_text( info_lines );
this->set_title(window_title);
@@ -106,6 +107,8 @@ OkDialog::OkDialog (std::string window_title, std::string info_lines)
button_width = _ok_button.get_allocation().get_width();
button_height = _ok_button.get_allocation().get_height();
+ _info_label.set_size_request( layout_width, new_window_height - button_height - button_bottom_padding);
+
_layout.put( _ok_button, layout_width - button_width - button_left_padding, new_window_height - button_height - button_bottom_padding);
}
diff --git a/gtk2_ardour/ui/ok_dialog.xml b/gtk2_ardour/ui/ok_dialog.xml
index afb16de23f..e5c0c758af 100644
--- a/gtk2_ardour/ui/ok_dialog.xml
+++ b/gtk2_ardour/ui/ok_dialog.xml
@@ -17,17 +17,18 @@
height="120"
bgnormal="#EDECE8">
+ text=""
+ height="90"/>
+ y="88"/>
diff --git a/gtk2_ardour/ui/yes_no_dialog.xml b/gtk2_ardour/ui/yes_no_dialog.xml
index b0cee88bb4..37c1109928 100644
--- a/gtk2_ardour/ui/yes_no_dialog.xml
+++ b/gtk2_ardour/ui/yes_no_dialog.xml
@@ -17,16 +17,17 @@
height="120"
bgnormal="#EDECE8">
+ y="0"
+ width="350">
+ height="90"
+ style="generic_control"
+ text=""/>
+ y="88"/>
+ y="88"/>
diff --git a/gtk2_ardour/yes_no_dialog.cc b/gtk2_ardour/yes_no_dialog.cc
index e6fa44e35f..1183c8320e 100644
--- a/gtk2_ardour/yes_no_dialog.cc
+++ b/gtk2_ardour/yes_no_dialog.cc
@@ -29,7 +29,7 @@ using namespace Pango;
namespace {
const size_t button_left_padding = 10;
- const size_t button_bottom_padding = 10;
+ const size_t button_bottom_padding = 15;
const size_t font_size = 12;
const size_t label_top_padding = 10;
const size_t between_button_padding = 5;
@@ -60,7 +60,7 @@ namespace {
if ( current_lines_number > max_lines_number )
{
- return current_window_height + (current_lines_number - max_lines_number) * font_size;
+ return current_window_height + (current_lines_number - max_lines_number + 1) * font_size;
} else
return current_window_height;
}
@@ -79,6 +79,7 @@ YesNoDialog::YesNoDialog (std::string window_title, std::string info_lines)
{
set_modal (true);
set_resizable (false);
+ this->set_keep_above (true);
_info_label.set_text( info_lines );
this->set_title(window_title);
@@ -106,6 +107,8 @@ YesNoDialog::YesNoDialog (std::string window_title, std::string info_lines)
guint button_width, button_height;
button_width = _yes_button.get_allocation().get_width();
button_height = _yes_button.get_allocation().get_height();
+
+ _info_label.set_size_request( layout_width, new_window_height - button_height - button_bottom_padding);
_layout.put( _no_button, layout_width - button_width - button_left_padding, new_window_height - button_height - button_bottom_padding);
_layout.put( _yes_button, layout_width - 2*button_width - button_left_padding - between_button_padding, new_window_height - button_height - button_bottom_padding);