Re: GLib-GObject-WARNING **: invalid cast from `GtkLabel' to `GtkFixed' while generating a dynamic GUI



Please don't top-post.

On Mon, Jan 10, 2005 at 07:03:04AM -0500, anne isac wrote:
> Here is the code for dynamicFrame[]. 

If the arrays are not messed up (i.e., they are allocated
with correct sizes and you don't write after their ends),
dynamicFrame[] should be OK.  But I see another GTK_FIXED()
typecast that was not in the first snippet (fixed30).  It
could never end.

So, use g_log_set_always_fatal(G_LOG_LEVEL_CRITICAL);, let
it dump core when the bad cast happens, and look where
exactly it happens in gdb -- or your favourite gdb frontend:
there's probably a bug in your code so use normal debugging
to locate it (it's likely the problem become clear
immediately after you locate it).

And read http://developer.gnome.org/doc/API/2.0/gtk/GtkFixed.html
Description to learn why GtkFixed is Evil.

Yeti


--
Dynamic IP address is not a crime.



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