making it work for clutter 1.0

Bug #590598 reported by Eric Forgeot
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyHalebarde
Fix Committed
Critical
Olivier Le Thanh Duong

Bug Description

even if I never managed to make the 0.3 version work on Archlinux, I noticed in the latest clutter they manage to rationalise a bit the code, so it seems the call to CairoTexture (for ex. line 103 in boardwidget.py is no longer:

from cluttercairo import CairoTexture

but:

from clutter import CairoTexture

Now I can finally load the board, but when I click on a pawn, I get:

  File "/usr/lib/python2.6/site-packages/halebarde/game.py", line 104, in get_unit
    return self.board.board[x][y]
TypeError: list indices must be integers, not float
[12.15625, 2.75]

Revision history for this message
Olivier Le Thanh Duong (olethanh) wrote :

Sorry we haven't been working on pyhalebarde recently, mainly because pyclutter was totally broken in ubuntu karmic.
The following branch fix pyhalebarde to work with recent clutter (tested it under Lucid with clutter 1.0.0)

Revision history for this message
Laurent Peuch (psycojoker) wrote :

Hello Eric,

Thanks for this bug repport and sorry for the late answer.

Olivier: your patch is fine for me, we can merge it into master if Eric confirm it works for him.

Revision history for this message
Eric Forgeot (eforgeot) wrote :

Hello,

I've just compiled it on archlinux, and it works fine. Btw it's the first time I managed to make the 0.3 release work, so I'm quite happy :) Thank you for this fix.

Revision history for this message
Laurent Peuch (psycojoker) wrote :

Good news :)

Are you free for a 0.3.1 release ?

Changed in pyhalebarde:
importance: Undecided → Critical
assignee: nobody → Olivier Le Thanh Duong (olethanh)
status: New → Fix Committed
Revision history for this message
Laurent Peuch (psycojoker) wrote :

Damn, "Olivier: are you free for a 0.3.1 release ?"

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.