Re: to disabele close window button



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]