diff --git a/src/post_modules/GTK2/source/global.pre b/src/post_modules/GTK2/source/global.pre
index 37053095ad2104e0bf826d1831b48450e68fcfde..7ffb326f0a4b9ac0d8aa4d23fe51d7743ce23c92 100644
--- a/src/post_modules/GTK2/source/global.pre
+++ b/src/post_modules/GTK2/source/global.pre
@@ -65,7 +65,11 @@ static void backend_callback(struct callback *_cb,
     if (my_timercmp (&timeout, <, &next_timeout))
       next_timeout = timeout;
   } else
+#ifdef HAVE_GTK22
+    while(g_main_context_iteration(NULL,0));
+#else
     while(g_main_iteration( 0 ) );
+#endif
 }
 
 static struct callback *backend_cb;