]> Pileus Git - ~andy/gtk/blobdiff - gdk/x11/gdkmain-x11.c
use g_atexit() instead of ATEXIT.
[~andy/gtk] / gdk / x11 / gdkmain-x11.c
index 5494657e7dc9aea65a7376beb458c22fa79c6a5d..867dadef60cf73dea188ed722e725cace65794ba 100644 (file)
@@ -571,8 +571,7 @@ gdk_init (int        *argc,
   button_number[0] = -1;
   button_number[1] = -1;
   
-  if (ATEXIT (gdk_exit_func))
-    g_warning ("unable to register exit function");
+  g_atexit (gdk_exit_func);
   
   gdk_visual_init ();
   gdk_window_init ();