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 784309 - False positive "GtkDialog mapped without a transient parent" warnings when transient parent set via Xlib API
False positive "GtkDialog mapped without a transient parent" warnings when tr...
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Backend: X11
3.22.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2017-06-28 20:57 UTC by Rok Mandeljc
Modified: 2018-05-02 18:38 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proof-of-concept patch (6.82 KB, patch)
2017-06-28 20:57 UTC, Rok Mandeljc
none Details | Review

Description Rok Mandeljc 2017-06-28 20:57:13 UTC
Created attachment 354655 [details] [review]
Proof-of-concept patch

The check for transient parent in gtk_dialog_map() that was introduced by c4ec89cf9 is insufficient, as it does not account for cases when the dialog's transient parent is set via the Xlib API. This results in false positive warnings/messages about the parent not being set.

Among other cases that mix Gtk and Xlib calls, this affects practically every Qt application when Qt platform is using native gtk3 dialogs (either via gtk3 or qgnomeplatform platform theme). It is confusing for end users/developers because the message implies that the problem is in their code, when they cannot really do anything about it (and in fact, their dialogs are properly modal).

In the past, this issue has been mitigated in Qt and qgnomeplatform by installing custom log handler and filtering out this specific message. However, with the switch to structured logging, the log handler set via g_log_set_handler() is bypassed, hence the message is being shown again...

Attached is a proof-of-concept patch for the 3.22 branch that extends the test with an additional check in the X11 gdk backend.
Comment 1 GNOME Infrastructure Team 2018-05-02 18:38:11 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk/issues/843.