|
Assuming that you place it in a GtkScrolledWindow, you can use gtk_scrolled_window_get_hadjustment() and gtk_scrolled_window_get_vadjustment() to get the horizontal and vertical adjustments. In the vertical adjustment, the lower and upper values represent the far left of the widget, and the point that will be on the far left when the scrollbar is completely moved to the right. (Does that make sense?)
Therefore, you can use the value property to get the current position in each. However, I'm not completely sure if that is in pixels, so you should test it out. If not, you will have to use the page size and size of the widget to calculate the pixel size, which shouldn't be too difficult.
_________________ Andrew Krause
Foundations of GTK+ Development: Buy now for only $31.49!
|