Re: Question about type casting.
- From: Tristan Van Berkom <tristan van berkom gmail com>
- To: DC A <adc4444 hotmail com>
- Cc: gtk-list gnome org
- Subject: Re: Question about type casting.
- Date: Sat, 08 Oct 2005 02:04:14 -0400
DC A wrote:
Thanks a lot for clearify this matter. So the bottom line is when there
is no mention
about the type of widget in argument we can use GtkWidget there, right?
Well there's always mention of an argument type in a function header, and
we still respect that argument.
Its just that so many widgets are containers for other widgets, and they all
take GtkWidget * arguments.
So I guess the bottom line you are looking for is, when calling a function
and passing it an argument that was already declared as the correct type,
there is no need to redundantly cast it again.
Cheers,
-Tristan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]