Infinite gtk alerts when i right click on icon

From this tuto :

#include <gtk/gtk.h> int main( int argc, char *argv[]) { GtkWidget *window; gtk_init(&argc, &argv); window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_widget_show(window); gtk_main(); return 0; } 

I run the executable file and right-click on the icon, after which endless warnings are sent (the same ones):

 GLib-WARNING **: g_main_context_check() called recursively from within a source check() or prepare() member. GLib-WARNING **: g_main_context_prepare() called recursively from within a source check() or prepare() member. GLib-WARNING **: g_main_context_check() called recursively from within a source check() or prepare() member. .... 

Does anyone know how to fix this warning?

UPDATE

This problem also exists with gtk-demo , is it a gtk error? Can anyone check this out?

Platform: Windows XP

UPDATE2

I found that someone had the same problem:

http://www.dsource.org/forums/viewtopic.php?t=5179&sid=0368cec966f5a135506cf99b24ec5030

+4
source share
1 answer

This is a bug in GTK that has been around for quite some time. This is really a bug in Windows. The error was reported in September 2008. It is still not resolved, but the good news is that there was some activity last week (including the proposed patch). Therefore, it may be fixed in the next release of GTK.

+2
source

Source: https://habr.com/ru/post/1308591/


All Articles