The problem with this code is that, after the window is set as visible, it is not actually visible immediately. When "show" is emitted, then the window is exposed with "expose-event". So, you should use the "event-after" signal, checking whether the expose-event is done. For example:

Thanks a lot for your hint, this is a good step forward, but I realized that
I have been asked for "x" each time I minimize and maximize again the
window, how can I avoid this and being asked for x only once?

I exposed the problem, I first tried to solve with
idle function, but i realized this was locking the gtk loop,
so I used threads. I am a newbye with both C and GTK+
particularly I am learning C using the book
"C/C++ von den Grundlagen zur professionellen Programmierung"
from Ulrich Kaiser and Kecher, and when it comes to the graphical
staff, they used some simplified libraries shipped with a CD,
but since I am on linux (cd is 4 windows) I choose to
face the problem by using GTK+.

Who is online

Users browsing this forum: Yahoo [Bot] and 4 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum