[metacity/cowbell] fix width calculation



commit 2718da7bb89e3bfa5945c72c65091841c30c7a78
Author: Thomas Thurman <tthurman gnome org>
Date:   Wed Oct 28 19:11:49 2009 -0400

    fix width calculation

 src/ui/theme.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/ui/theme.c b/src/ui/theme.c
index 50e6aef..3570571 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -853,7 +853,7 @@ cowbell_get_button_width (MetaTheme              *theme,
       aspect_ratio = width/height;
     }
 
-  result = width / aspect_ratio;
+  result = button_height * aspect_ratio;
 
   if (min_width!=0 && result<min_width) result = min_width;
   if (max_width!=0 && result>max_width) result = max_width;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]