GNOME Bugzilla – Bug 777944
GdkMonitor is not implemented for Quartz
Last modified: 2017-03-08 12:08:38 UTC
Created attachment 344562 [details] stack trace After upgrading from 3.20 to 3.22 I am now seeing the following error in the console while running my application under OSX: (my_app:68224): Gdk-WARNING **: GdkQuartzDisplay does not implement the monitor vfuncs
That's not an error. It's a warning. The monitor API is quite new, and no one has yet implemented support for Quartz, so it has to create a fallback monitor, and it warns that it had to do this. I presume your application continues to work after this warning. Would you like to try writing a patch to implement the monitor API?
Hi, Daniel. I don't really know anything about the monitor API. I am reporting this as an application developer. When GTK emits errors or warnings to the console that generally indicates the application developer needs to fix something in their code. I have tried to do that but my debugging indicates there is nothing I can do from the application side. So I am left to ignore the warning and let my users see it and continually report it to me? That's not an ideal scenario. IMHO, this warning should be removed or perhaps triggered only when the application invokes the monitor API.
That's a sensible request. I believe it also precedents in other warnings being 'downgraded' to only appear in debug modes. Let's see what the maintainers think. Hopefully someone will get a chance to implement the monitor API in Quartz before too long. (FWIW, I continue to get one "How does the application know what size to allocate?" message for each run of my program. I guess I could have my program print the bit of code that precisely answers that question, around the same time.)
Looks like there is an implementation of it here: https://github.com/tschoonj/gtk/commits/gtk4-quartz
Tom already filed bug 779184 with a link to his branch, and I've asked him to attach his patches there, so we can track the issue in the other bug. *** This bug has been marked as a duplicate of bug 779184 ***