callback parameters
- From: Jeff Edwards <ecsi sprynet com>
- To: gtk-list gnome org
- Subject: callback parameters
- Date: Fri, 19 May 2000 17:44:37 -0400
Could someone please explain to me why it is reasonable to connect
gtk_widget_destroy() to a button clicked signal, when
gtk_widget_destroy() takes only one parameter?
As far as I can tell by reading the GTK+ source code, the callbacks for
button clicked signals (and every signal, for that matter) _always_ get
called with at least two arguments. Won't calling a function that
expects only one argument potentially screw up the stack? Admittedly, it
seems of work OK in actual practive, but is it really legitimate?
Thanks,
Jeff Edwards
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]