Updating branch refs/heads/master to d2aa4ba996f1cfe962ce642ba7f8d177a90b13eb (commit) from 3f39b90e612ed3c2ef9c3298dc8b4aeea899a5e9 (commit)
commit d2aa4ba996f1cfe962ce642ba7f8d177a90b13eb Author: Christian Dywan <christ...@twotoasts.de> Date: Fri Jun 4 22:19:27 2010 +0200 Boxes in PostlerScrolled implicitly use a viewport postler/postler-scrolled.vala | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/postler/postler-scrolled.vala b/postler/postler-scrolled.vala index fa3fa7c..6e7884b 100644 --- a/postler/postler-scrolled.vala +++ b/postler/postler-scrolled.vala @@ -12,8 +12,12 @@ public class Postler.ScrolledWindow : Gtk.ScrolledWindow { public ScrolledWindow (Gtk.Widget? child) { set_policy (Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC); - if (child != null) - add (child); + if (child != null) { + if (child is Gtk.Box) + add_with_viewport (child); + else + add (child); + } } } _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org http://foo-projects.org/mailman/listinfo/xfce4-commits