Take gtk.Statusbar widget hierarchy changes into account

Bug #660194 reported by Olivier Kaloudoff
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Exaile
Fix Released
Medium
Mathias Brodala

Bug Description

Hello,

  I've compiled exaile 3745 on Snow Leopard / Fink (Python 2.6, pygtk2 2.17), but there is a fatal error that prevents Exaile to start (only the splash screen is showed). Did I miss something ?

Olivier

Related branches

Revision history for this message
Olivier Kaloudoff (kalou) wrote :
description: updated
Revision history for this message
Olivier Kaloudoff (kalou) wrote :

Ok reverting to revision 3631 fixes the problem.
Probably a change in xlgui/widgets/info.py is causing this.

Revision history for this message
Mathias Brodala (mathbr) wrote :

What GTK version are you using?

What does the last of the following commands, entered into the interactive Python console yield?

import gtk
statusbar = gtk.Statusbar()
statusbar.get_children()[0].get_children()[0]

Changed in exaile:
milestone: none → 0.3.x
status: New → Incomplete
Revision history for this message
Olivier Kaloudoff (kalou) wrote :

Hi Mathias,

 I'm using gtk+ 2 2.18.9-5
Here is the result of the Python console;

imac:~ kalou$ /sw/bin/python2.6
Python 2.6.6 (r266:84292, Oct 13 2010, 23:25:13)
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtk
>>> statusbar = gtk.Statusbar()
>>> statusbar.get_children()[0].get_children()[0]
<gtk.Label object at 0x1e72148 (GtkLabel at 0x93c060)>

Revision history for this message
Olivier Kaloudoff (kalou) wrote :

Ok ... Problem fixed !

diff /sw/lib/exaile/xlgui/widgets/info.py.orig /sw/lib/exaile/xlgui/widgets/info.py
700c700
< box.pack_start(self.info_label, False)
---
> # box.pack_start(self.info_label, False)

Changed in exaile:
status: Incomplete → Confirmed
Revision history for this message
Mathias Brodala (mathbr) wrote :

No real solution since the re-packing is there for a reason. It would be useful if you could provide us with the full hierarchy below gtk.Statusbar() with your GTK version.

And please don’t change the bug state to Confirmed unless someone has actually confirmed the issue.

Changed in exaile:
status: Confirmed → Incomplete
Revision history for this message
Olivier Kaloudoff (kalou) wrote :

Please tell me how I can provide the full gtk.statusbar() hierarchy. Don't know python at all..

Revision history for this message
Mathias Brodala (mathbr) wrote :

Try this script and post the output.

Revision history for this message
Olivier Kaloudoff (kalou) wrote :

$ head -1 Downloads/statusbar_hierarchy.py
#!/sw/bin/python2.6

$ ./statusbar_hierarchy.py
Statusbar
  Frame
    Label

Revision history for this message
Mathias Brodala (mathbr) wrote :

OK, I can confirm this now. The hierarchy of the statusbar widget was indeed changed with GTK 2.20. Please try the following patch against the latest trunk (r3749)

Changed in exaile:
assignee: nobody → Mathias Brodala (mathbr)
importance: Undecided → Medium
status: Incomplete → Confirmed
Revision history for this message
Olivier Kaloudoff (kalou) wrote :

Just applied patch against r3750, works great . Thank you very much.

Revision history for this message
Mathias Brodala (mathbr) wrote :

OK, commited with r3751.

Changed in exaile:
milestone: 0.3.x → 0.3.3.0
status: Confirmed → Fix Committed
Mathias Brodala (mathbr)
summary: - AttributeError: 'gtk.Label' object has no attribute 'pack_start'
+ Take gtk.Statusbar widget hierarchy changes into account
Changed in exaile:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.