Re: GtkRange and adjust_bounds
- From: Owen Taylor <otaylor redhat com>
- To: Michael Smith <michael hurts ca>
- Cc: gtk-list gnome org
- Subject: Re: GtkRange and adjust_bounds
- Date: 07 Apr 2003 10:06:36 -0400
On Sun, 2003-04-06 at 23:40, Michael Smith wrote:
> Hi,
>
> I'm looking for a way to automatically grow a pixmap in a
> GtkScrolledWindow if the user tries to scroll farther to the right or
> bottom when the scroll thumb is already at the edge.
>
> I've tried a bunch of things and there doesn't seem to be a documented way
> of finding out if someone attempts to scroll when the thumb is at the
> edge. GtkScrolledWindow's GtkAdjustment emits value_changed if the value
> has changed, but in this case it won't have changed.
>
> I dug through the GTK 2.2 source and the adjust_bounds signal in GtkRange
> seems to do exactly what I want: it's emitted whenever someone clicks the
> scroll buttons or drags the thumb. My question is, since the signal isn't
> documented anywhere, can I rely on it still being there in a later
> release? :)
Yes. (It is at least listed in the docs:
http://developer.gnome.org/doc/API/2.2/gtk/GtkRange.html
even if it isn't described.)
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]