what are gtk-critical errors?



hola,

i often see errors that look like:

   Gtk-CRITICAL **: file gtkpixmap.c: line 97 (gtk_pixmap_new): assertion
   `val != NULL' failed.

at this point, i realize they're harmless.  but i'm still curious about
what causes them.  what's the usual cause for errors like this?

are they mostly caused by not properly casting an object when passed as
a function argument, like:

   gtk_signal_connect(
      button,
      "clicked",
      callback_function,
      allback_data
   );

instead of:

   gtk_signal_connect(
      GTK_OBJECT(button),
      "clicked",
      GTK_SIGNAL_FUNC(callback_function),
      callback_data
   );


pete

-- 
Make everything as simple as possible, but no simpler.  -- Albert Einstein
GPG Instructions: http://www.dirac.org/linux/gpg
GPG Fingerprint: B9F1 6CF3 47C4 7CD8 D33E 70A9 A3B9 1945 67EA 951D



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]