GNOME Bugzilla – Bug 501596
transient window show strange behaviour when hidden
Last modified: 2007-12-24 19:39:15 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:
Created attachment 100200 [details] testcase
*** This bug has been marked as a duplicate of 504984 ***