[hyena/gtk3] Widgets: Mark parameters for GetPreferredSize as out



commit 13e02086899f4d07ff12fd7157c6a0a360e8e082
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date:   Mon Jun 6 20:56:17 2011 +0200

    Widgets: Mark parameters for GetPreferredSize as out
    
    Parameters to Widget.GetPreferredSize are out params in the lastest gtk#
    master, as they should be.

 Hyena.Gui/Hyena.Widgets/AnimatedBox.cs    |    2 +-
 Hyena.Gui/Hyena.Widgets/AnimatedWidget.cs |    2 +-
 Hyena.Gui/Hyena.Widgets/MenuButton.cs     |    2 +-
 Hyena.Gui/Hyena.Widgets/RoundedFrame.cs   |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/Hyena.Gui/Hyena.Widgets/AnimatedBox.cs b/Hyena.Gui/Hyena.Widgets/AnimatedBox.cs
index 959cba1..098d01f 100644
--- a/Hyena.Gui/Hyena.Widgets/AnimatedBox.cs
+++ b/Hyena.Gui/Hyena.Widgets/AnimatedBox.cs
@@ -211,7 +211,7 @@ namespace Hyena.Widgets
 
             foreach (AnimatedWidget widget in Widgets) {
                 Requisition req, nat;
-                widget.GetPreferredSize (req, nat);
+                widget.GetPreferredSize (out req, out nat);
 
                 if (horizontal) {
                     width += req.Width;
diff --git a/Hyena.Gui/Hyena.Widgets/AnimatedWidget.cs b/Hyena.Gui/Hyena.Widgets/AnimatedWidget.cs
index fdbf4ea..d71fc72 100644
--- a/Hyena.Gui/Hyena.Widgets/AnimatedWidget.cs
+++ b/Hyena.Gui/Hyena.Widgets/AnimatedWidget.cs
@@ -146,7 +146,7 @@ namespace Hyena.Widgets
             var requisition = new Requisition ();
             if (Widget != null) {
                 Requisition req, nat;
-                Widget.GetPreferredSize (req, nat);
+                Widget.GetPreferredSize (out req, out nat);
                 widget_alloc.Width = req.Width;
                 widget_alloc.Height = req.Height;
             }
diff --git a/Hyena.Gui/Hyena.Widgets/MenuButton.cs b/Hyena.Gui/Hyena.Widgets/MenuButton.cs
index e28fd76..7dbc764 100644
--- a/Hyena.Gui/Hyena.Widgets/MenuButton.cs
+++ b/Hyena.Gui/Hyena.Widgets/MenuButton.cs
@@ -160,7 +160,7 @@ namespace Hyena.Widgets
         private void PositionMenu (Menu menu, out int x, out int y, out bool push_in)
         {
             Gtk.Requisition menu_req, nat_req;
-            menu.GetPreferredSize (menu_req, nat_req);
+            menu.GetPreferredSize (out menu_req, out nat_req);
             int monitor_num = Screen.GetMonitorAtWindow (Window);
             Gdk.Rectangle monitor = Screen.GetMonitorGeometry (monitor_num < 0 ? 0 : monitor_num);
 
diff --git a/Hyena.Gui/Hyena.Widgets/RoundedFrame.cs b/Hyena.Gui/Hyena.Widgets/RoundedFrame.cs
index bc32d99..bab0e8d 100644
--- a/Hyena.Gui/Hyena.Widgets/RoundedFrame.cs
+++ b/Hyena.Gui/Hyena.Widgets/RoundedFrame.cs
@@ -113,7 +113,7 @@ namespace Hyena.Widgets
             if (child != null && child.Visible) {
                 // Add the child's width/height
                 Requisition child_requisition, nat_requisition;
-                child.GetPreferredSize (child_requisition, nat_requisition);
+                child.GetPreferredSize (out child_requisition, out nat_requisition);
                 requisition.Width = Math.Max (0, child_requisition.Width);
                 requisition.Height = child_requisition.Height;
             } else {



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