Return type question ...
- From: "Andrew P. Lentvorski" <andrewl deliverator io com>
- To: gtk-list redhat com
- Subject: Return type question ...
- Date: Wed, 20 Jan 1999 01:34:22 -0600
Why do the gtk_XXXXXX_new() functions return a pointer to GtkWidget instead
of a pointer to XXXXXX?
I presume this was a design decision made somewhere, but is this being carried
solely for backward compatibility? Or is there a really important reason
that I should be making everything a GtkWidget rather than casting it
immediately like:
button = GTK_BUTTON(gtk_button_new_with_label("button));
Or is this just a religious war?
Andy L.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]