You can use a single global or perhaps static variable for the window. Then in that first button's callback, check if the window is created and visible. If it is, exit the callback. If it's created but has been hidden, show the window, and if it's not been created, only then call gtk_window_new().

Who is online

Users browsing this forum: No registered users and 6 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