Bug 251656

Summary: PATCH: glchess no longer works due to gtk tooltip changes
Product: [Fedora] Fedora Reporter: Hans de Goede <hdegoede>
Component: gnome-gamesAssignee: Ray Strode [halfline] <rstrode>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: hdegoede
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-08-10 09:47:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
PATCH: glchess no longer works due to gtk tooltip changes none

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).