I have 2 froms, primary and secondary in my gtk+ application. In second from i have GtkButton – close. How can i close this form when button clicked. Not hide, i need close form.
Thank you
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are adding the form to the main window, in the callback function you can remove that from from the main window using the corresponding API and destroy the widget.
Your form is of type GtkWidget and hence you can remove and destroy the form. After this set the current form to the prev form on the main window. And
gtk_widget_show_all(main_window);