Re: X crash when switching in full-screen mode




Hello everybody out there!

        Well, I have made some progress. Attached to this message, a tarball
with some code which actually can start in full-screen mode. But I
cannot be certain there is no major flaw.

        Here is what I did, and why. It will be nice if someone can confirm I
am not mistaken.

        After investigating the web, it seems a widget has to go through the
following steps during its life:

                — creation;

                — property setting (which is usually made into constructor);

                — realizing (assigning back-end resources, e.g. an X Window);

                — mapping (make widget appearing on screen);

                — show (actually does the previous two steps);

                — unmapping (removing widget from screen);

                — hide (simple version of unmap);

                — destroying.

        I have put “show();” before asking for full-screen mode, and then the
code became been able to start into full-screen mode. I have tried with
just “realize();”, but it was not enough to avoid X crashing. So it
seems to me Gtk+ cannot set a widget into full-screen mode before having
mapped it.

        My question is: did someone know if I get it well, or did I still
missed something?

        Regards.

                                                        Yoann

Attachment: lesson2.tar.gz
Description: GNU Zip compressed data



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