GNOME Bugzilla – Bug 467776
Find Transaction dialog disappears immediately + possible fix
Last modified: 2011-04-29 13:22:41 UTC
OS: FreeBSD 6.2-STABLE #0: Sun Jun 3 19:55:09 PDT 2007 GTK: gtk-2.10.12_2 In moving from gnucash-2.0.5 to 2.2.0, I found that the "find" dialog disappears immediately after it is created (i.e., it flashes on the screen for only an instant). I commented out this part of changeset 16078 in src/gnome-search/dialog-search.c: // gtk_widget_hide (sw->dialog); and that prevented the find dialog from disappearing. I do not know why the subsequent call to gtk_widget_show() (also part of changeset 16978) does not cause the dialog window to stay visible. Since I'm unfamiliar with the windows issues that prompted changeset 16978, I'm hoping someone else can identify the best way to fix it.
Created attachment 93875 [details] small test program What do you see if you compile this attachment via gcc -o test test.c `pkg-config --cflags --libs gtk+-2.0` and execute test? I do not understand why that happens what you describe, maybe it is a GTK+ bug. BTW, what window manager do you use? I assume you applied the change to the glade file as in r16078, right?
I compiled your test program as specified and ran it. There is a brief appearance of a window - it vanishes as soon as it appears so I have to watch closely. The test program does not exit on its own. My window manager is fvwm-2.5.21. I left the search.glade and tax.glade files as they were in gnucash-2.2.0 (that is, I did not undo change 16078 for those files).
What do the gtk+ devs think about that?
I tried the test program also with gtk-2.10.14 on FreeBSD as above: problem still exists.
This issue has been fixed in fvwm cvs. Fvwm <= 2.5.24 does not like windows being requested to be moved to the withdrawn state between the map request and the time they actually are mapped. It is perfectly legal according to ICCCM2, so this was a bug in fvwm.
p-fbsd-bugs@treehouse.napa.ca.us; Can you confirm this bug is fixed for you, so this bug can be closed ?
Test program works for me now on FreeBSD 8.2-PRERELEASE (Jan 11, 2011) with gtk-2.22.1_1 and fvwm-2.5.31. gnucash-2.2.9_10 does not seem to have the line of code in question anymore (as far as I can tell) and the "Find" dialog comes up normally. Thanks!
By the way, I am the same person as p-fbsd-bugs.
Marking as OBSOLETE. Thanks!