Re: Patch to remove redundant code
- From: Owen Taylor <otaylor redhat com>
- To: "Matthias Clasen" <matthiasc poet de>
- Cc: <gtk-devel-list gnome org>
- Subject: Re: Patch to remove redundant code
- Date: Thu, 31 Jan 2002 11:09:37 -0500 (EST)
"Matthias Clasen" <matthiasc poet de> writes:
> Speaking about redundant code, what is the purpose of functions like
"Hmmm, I think we might need to do something if the adjustment's bounds/step
change. Not sure what. Let me put in a prototype." (Or so I'd guess;
that code has been there forever.)
[ The only legitimate reason for the bounds of a viewport to change
is if the viewport changes them itself, so nothing should be needed. ]
Regards,
Owen
> static void
> gtk_viewport_adjustment_changed (GtkAdjustment *adjustment,
> gpointer data)
> {
> GtkViewport *viewport;
>
> g_return_if_fail (adjustment != NULL);
> g_return_if_fail (GTK_IS_VIEWPORT (data));
>
> viewport = GTK_VIEWPORT (data);
> }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]