GNOME Bugzilla – Bug 593805
Critical when calling gtk_dialog_run() on a non-modal dialog
Last modified: 2009-09-01 14:40:58 UTC
Created attachment 142245 [details] Test case for critical, compile with: gcc `pkg-config gtk+-2.0 --cflags --libs` testbug.c -o testbug Calling gtk_dialog_run() on a non-modal dialog generates the following critical: Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE' failed I don't think it should do that. The documentation for gtk_dialog_run() says: "Also, during gtk_dialog_run() the dialog will be modal." implying that gtk_dialog_run() will make the dialog modal even if it is not. Furthermore, I seem to remember doing this in earlier versions of GTK without any complaint, but I can't verify that right now. A test program is attached which reproduces the critical.
*** This bug has been marked as a duplicate of bug 581633 ***