iamLovingJerk / pychess

Automatically exported from code.google.com/p/pychess
GNU General Public License v3.0
0 stars 0 forks source link

sometimes enter game menu starts with a small editbox #249

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
svn r752

tamas@tami:/adat/svn/pychess$ p
/home/tamas/svn/pychess/lib/pychess/widgets/ionest.py:160: GtkWarning:
gtk_widget_set_size_request: assertion `height >= -1' failed
  widgets["enterGameNotationSidePanel"].get_allocation().height-4)

Original issue reported on code.google.com by gbtami on 1 Nov 2007 at 3:17

Attachments:

GoogleCodeExporter commented 9 years ago
Hm, I'm not able to reproduce it, but I certanly believe it might happen often 
on
faster systems.

Perhaps you can try to change the .realize() call in line 158 to .map()

If that doesn't work either, can you try to change:

widgets["enterGameNotationSidePanel"].realize()
widgets["enterGameNotationFrame"].set_size_request(223,
        widgets["enterGameNotationSidePanel"].get_allocation().height-4)

to:

def callback (widget):
        widgets["enterGameNotationFrame"].set_size_request(223,
widget.get_allocation().height-4)
    widgets["enterGameNotationSidePanel"].connect_after("realize", callback)

Original comment by lobais on 16 Nov 2007 at 9:29

GoogleCodeExporter commented 9 years ago
I can't reproduce this bug again, so i close it.

Original comment by gbtami on 17 Nov 2007 at 7:53

GoogleCodeExporter commented 9 years ago
A way to reproduce:
1) Start PyChess
2) Open a file (tested with Ctrl+O and a pgn)
3) Open the Enter game notation dialog

I can reproduce this every time. Haven't tried the fix from comment 1 though.

Original comment by lobais on 3 Jan 2008 at 3:13

GoogleCodeExporter commented 9 years ago
Fixed in 831.
Like comment 2, only using the size-allocate signal.

Original comment by lobais on 4 Jan 2008 at 11:37