Bug 251656 - PATCH: glchess no longer works due to gtk tooltip changes
Summary: PATCH: glchess no longer works due to gtk tooltip changes
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-games
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Ray Strode [halfline]
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-08-10 09:28 UTC by Hans de Goede
Modified: 2007-11-30 22:12 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-08-10 09:47:45 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
PATCH: glchess no longer works due to gtk tooltip changes (1.02 KB, patch)
2007-08-10 09:28 UTC, Hans de Goede
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
GNOME Bugzilla 459740 0 None None None Never

Description Hans de Goede 2007-08-10 09:28:04 UTC
glchess exits with this error when run on rawhide:
Traceback (most recent call last):
  File "/usr/bin/glchess", line 20, in <module>
    start_game()
  File "/usr/lib/python2.5/site-packages/glchess/glchess.py", line 3, in start_game
    app = main.Application()
  File "/usr/lib/python2.5/site-packages/glchess/main.py", line 1077, in __init__
    self.ui = UI(self)
  File "/usr/lib/python2.5/site-packages/glchess/main.py", line 985, in __init__
    self.controller = gtkui.GtkUI(self)
  File "/usr/lib/python2.5/site-packages/glchess/gtkui/gtkui.py", line 453, in
__init__
    self.defaultViewController = self.notebook.setDefault(None)
  File "/usr/lib/python2.5/site-packages/glchess/gtkui/gtkui.py", line 95, in
setDefault
    self.defaultView = chessview.GtkView(self.ui, '', feedback)
  File "/usr/lib/python2.5/site-packages/glchess/gtkui/chessview.py", line 254,
in __init__
    tooltip.tip_window.ensure_style()
AttributeError: 'NoneType' object has no attribute 'ensure_style'

The attached patch works around this by not changing the style of the info panel
to the tooltip style, except for having a gray background instead of a yellow
one this doesn't seem to have any ill effects. I'm also submitting this upstream
for a proper fix.

Notice that I will commit this fix to cvs and build it, this bug is just for
tracking things until a real fix is available.

Comment 1 Hans de Goede 2007-08-10 09:28:04 UTC
Created attachment 161042 [details]
PATCH: glchess no longer works due to gtk tooltip changes

Comment 2 Hans de Goede 2007-08-10 09:47:45 UTC
Scrap that I've found the upstream bug, and gtk has been fixed to be backward
compatible (although the yellow background is still gone).



Note You need to log in before you can comment on or make changes to this bug.