Re: to disabele close window button
- From: Clemens Kirchgatterer <clemens root at>
- To: Jose Eusebio Roza Pando <jeroza alu uah es>, gtk-app-devel-list gnome org
- Subject: Re: to disabele close window button
- Date: Fri, 6 Oct 2000 11:52:42 +0200
on Fri, 06 Oct 2000 Jose Eusebio Roza Pando wrote:
Hi,
I would like to disable the close window button. I want that the user
can not close the window until I say so.
how can I do it?
i have made it by connecting a dummy callback function to the
"delete_event".
static int
dummy_callback(GtkWidget *widget, gpointer data) {
return TRUE;
}
gtk_signal_connect(GTK_OBJECT(window),
"delete_event",
GTK_SIGNAL_FUNC(dummy_callback),
NULL);
but this seems not to work with the "destroy" event. :-(
regards ...
clemens
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]