show/hide widgets



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I've got a mysterious problem with showing/hiding widgets in my
c-program ...

I create a hbox and pack a label and a slider into it and set them to be
shown, but not the box. Some cycles later I call "gtk_widget_show(box)"
and the whole application stops.

If I don't pack the slider into the box, just the label and can call
"gtk_widget_show(box)", the label appears as wished. And another call of
"gtk_widget_hide(box)" lets it disappear again. Everything fine!

If I pack the slider into the box but don't call the show-method for the
slider it also works.

Another thing I tried, was to let the box always be visible and just try
to add and remove my slider. But the program freezes again.

The same problem exists with checkboxes and normal boxes. I've also
tried some versions without signal connects, but this doesn't change
anything.

It would be great if someone could help me here ...

Thanks in advance

Christopher Leopold
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFBaqlozt/GDRHk1XARAt1OAJ9AUSXdnL9izS195pzcoHm+a1JLmACgpeyB
hQ4ACRqgOHAWUuCSIFc8OS8=
=AKLY
-----END PGP SIGNATURE-----



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