Re: Close a single window?
- From: Ronald Bultje <rbultje ronald bitfreak net>
- To: Mattias Persson <matper-8 student luth se>, gtk-list gnome org
- Subject: Re: Close a single window?
- Date: Mon, 23 Jul 2001 10:10:09 +0200
At 09:45 23-07-2001 +0200, Mattias Persson wrote:
How do I close a singel window, for instance a popup
window by pressing a button? In java there is a
function dispose(), is there a similar function in gtk?
GtkWidget *button, *popup_window;
[...]
button = gtk_button_new_with_label("Close me");
gtk_signal_connect_object(GTK_OBJECT(button), "clicked",
gtk_widget_destroy, GTK_OBJECT(popup_window));
[...]
where popup_window is your window.
Ronald
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]