Re: to disabele close window button
- From: Havoc Pennington <hp redhat com>
- To: clemens linux-austria com
- Cc: Jose Eusebio Roza Pando <jeroza alu uah es>, gtk-app-devel-list gnome org
- Subject: Re: to disabele close window button
- Date: 07 Oct 2000 20:15:56 -0400
Clemens Kirchgatterer <clemens root at> writes:
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);
There's a function gtk_true() that works fine for this.
but this seems not to work with the "destroy" event. :-(
Don't destroy the window then. ;-) GTK won't destroy the window,
except in response to delete_event.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]