[Xfce4-commits] <postler:master> Fix requisition of Postler.Flowbox for Gtk3

Christian Dywan noreply at xfce.org
Thu Jul 7 19:58:03 CEST 2011


Updating branch refs/heads/master
         to a1b00e9e18cc85ae23fb0524061ccd6e6e3f86a8 (commit)
       from 6c5c194762729c9e4807a3f73c371f2e2c431338 (commit)

commit a1b00e9e18cc85ae23fb0524061ccd6e6e3f86a8
Author: Lucas Baudin <xapantu at gmail.com>
Date:   Thu Jul 7 18:31:12 2011 +0200

    Fix requisition of Postler.Flowbox for Gtk3
    
    Fixes: https://bugs.launchpad.net/postler/+bug/806899

 postler/postler-flowbox.vala |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/postler/postler-flowbox.vala b/postler/postler-flowbox.vala
index dd27909..c51616e 100644
--- a/postler/postler-flowbox.vala
+++ b/postler/postler-flowbox.vala
@@ -54,6 +54,7 @@ namespace Postler {
 
 #if HAVE_GTK3
         public override void size_allocate (Gtk.Allocation allocation) {
+            set_allocation (allocation);
 #else
         public override void size_allocate (Gdk.Rectangle allocation) {
 #endif
@@ -63,11 +64,10 @@ namespace Postler {
 
             foreach (var child in children) {
                 if (child.visible) {
+                    Gtk.Requisition child_size;
 #if HAVE_GTK3
-                    Gtk.Requisition? child_size = null;
-                    child.get_requisition (child_size);
+                    child.get_preferred_size (out child_size, null);
 #else
-                    Gtk.Requisition child_size;
                     child.size_request (out child_size);
 #endif
                     width += child_size.width;
@@ -90,11 +90,10 @@ namespace Postler {
             int row = 1;
             foreach (var child in children) {
                 if (child.visible) {
+                    Gtk.Requisition child_size;
 #if HAVE_GTK3
-                    Gtk.Requisition? child_size = null;
-                    child.get_requisition (child_size);
+                    child.get_preferred_size (out child_size, null);
 #else
-                    Gtk.Requisition child_size;
                     child.size_request (out child_size);
 #endif
                     width += child_size.width;



More information about the Xfce4-commits mailing list