window: Subtract shadow from passed in width for height

... and height for width in size requests. Fixes mislayout in
control-center universal access panel.
This commit is contained in:
Benjamin Otte 2014-04-29 19:26:06 +02:00
parent 73aa7bd2f5
commit 8b15cd33ee

View File

@ -8405,6 +8405,8 @@ gtk_window_get_preferred_width_for_height (GtkWidget *widget,
{
get_shadow_width (widget, &window_border);
height -= window_border.top + window_border.bottom;
if (priv->title_box != NULL &&
gtk_widget_get_visible (priv->title_box) &&
gtk_widget_get_child_visible (priv->title_box))
@ -8515,6 +8517,8 @@ gtk_window_get_preferred_height_for_width (GtkWidget *widget,
{
get_shadow_width (widget, &window_border);
width -= window_border.left + window_border.right;
if (priv->title_box != NULL &&
gtk_widget_get_visible (priv->title_box) &&
gtk_widget_get_child_visible (priv->title_box))