After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 501596 - transient window show strange behaviour when hidden
transient window show strange behaviour when hidden
Status: RESOLVED DUPLICATE of bug 504984
Product: gtk+
Classification: Platform
Component: Backend: Win32
2.12.x
Other All
: Normal normal
: ---
Assigned To: gtk-win32 maintainers
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2007-12-04 19:52 UTC by Erik van Pienbroek
Modified: 2007-12-24 19:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
testcase (1019 bytes, text/plain)
2007-12-04 19:53 UTC, Erik van Pienbroek
Details

Description Erik van Pienbroek 2007-12-04 19:52:34 UTC
Please describe the problem:
Hi,

I've created a Glade-based application which contains multiple windows. There is one main window and several popup windows. All of these popup windows are with the 'transient for' flag set to the main window and the modal flag is set to TRUE.

As glade isn't able to re-create destroyed windows, I needed to catch the 'delete_event' signal from each of the popup windows and perform a gtk_window_hide() in it, so that the popup windows get hidden as soon as the user tries to close the window.

This works fine as long as the program isn't minimized. If the program is restored all the windows which were hidden (with gtk_window_hide()) are shown on the screen, but they aren't redrawn.

To make sure this problem isn't caused by Glade, I've switched to using GtkBuilder, but the problem stays so I guess it's a problem in GTK itself.

I've made a small testcase which demonstrates this strange behaviour without using Glade or GtkBuilder.

To reproduce, start the testcase. A window shows up containing a 'click me' button. As soon as you click on this button a new window is shown (with the transient and modal flags set). Now you need to close the new window by using the close button. Now you should only see the first window (containing the 'click me' button). If you minimize this window and restore it, the second window gets shown while it should be hidden.

Steps to reproduce:



Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Erik van Pienbroek 2007-12-04 19:53:35 UTC
Created attachment 100200 [details]
testcase
Comment 2 Cody Russell 2007-12-24 19:39:15 UTC

*** This bug has been marked as a duplicate of 504984 ***