[gtk+/client-side-decorations: 6/50] wip



commit b4b402347958b58a291c9a0f43f47da2d21a0ea6
Author: Cody Russell <crussell canonical com>
Date:   Sat May 16 22:05:10 2009 -0400

    wip

 gtk/gtkwindow.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index f63101a..7e5d86d 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -5077,10 +5077,10 @@ gtk_window_size_allocate (GtkWidget     *widget,
         {
           child_allocation.x = container->border_width + window->frame_left;
           child_allocation.y = container->border_width + window->frame_top;
-          child_allocation.width = MAX (1, (gint)allocation->width - container->border_width * 2
-                                        - window->frame_left - window->frame_right);
-          child_allocation.height = MAX (1, (gint)allocation->height - container->border_width * 2
-                                         - window->frame_top - window->frame_bottom);
+          child_allocation.width = MAX (1, ((gint)allocation->width - container->border_width * 2
+                                            - window->frame_left - window->frame_right));
+          child_allocation.height = MAX (1, ((gint)allocation->height - container->border_width * 2
+                                             - window->frame_top - window->frame_bottom));
         }
       else
         {



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