From fae07ee445b6ad1f129140a7b432bb48249fd194 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Fri, 11 Dec 2009 17:28:42 +0000 Subject: [PATCH] 3415: gtk.HBox in src/widgets/statusbar.py; changes in latest gtk svn: r13766 --- src/widgets/statusbar.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/widgets/statusbar.py b/src/widgets/statusbar.py index f0387da8b..722cb2257 100644 --- a/src/widgets/statusbar.py +++ b/src/widgets/statusbar.py @@ -163,8 +163,13 @@ class Statusbar(gtk.HBox): self._set_packing() if ralign: - label = new_bar.get_children()[0].get_children()[0] - label.set_alignment(xalign=1.0, yalign=0.5) + frame = new_bar.get_children()[0] + obj = frame.get_children()[0] + # obj was a gtk.Label (GTK 2.16.6), + # now it is is gtk.HBox (GTK 2.19.1) + while not isinstance(obj, gtk.Label): + obj = obj.get_children()[0] + obj.set_alignment(xalign=1.0, yalign=0.5) new_bar_id = self._get_next_id() self._bars[new_bar_id] = new_bar