From 8dd572d1ccf960e7a7127b938f45bb564cb9cf43 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 30 Mar 2010 10:26:38 -0400 Subject: [PATCH] ShellGenericContainer: adjust requested height/width for border/padding https://bugzilla.gnome.org/show_bug.cgi?id=614293 --- src/shell-generic-container.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/shell-generic-container.c b/src/shell-generic-container.c index 16b285dcd..caba27456 100644 --- a/src/shell-generic-container.c +++ b/src/shell-generic-container.c @@ -95,6 +95,8 @@ shell_generic_container_get_preferred_width (ClutterActor *actor, if (natural_width_p) *natural_width_p = alloc->natural_size; shell_generic_container_allocation_unref (alloc); + + st_theme_node_adjust_preferred_width (theme_node, min_width_p, natural_width_p); } static void @@ -116,6 +118,8 @@ shell_generic_container_get_preferred_height (ClutterActor *actor, if (natural_height_p) *natural_height_p = alloc->natural_size; shell_generic_container_allocation_unref (alloc); + + st_theme_node_adjust_preferred_height (theme_node, min_height_p, natural_height_p); } static void