开发者

gtk+ Close second window

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 c开发者_StackOverflow社区licked. Not hide, i need close form.

Thank you


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);

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜