GtkRange value_changed meaning...
- From: Carlos Savoretti <csavoretti clubsanjorge com ar>
- To: Gtk Mailing List <gtk-app-devel-list gnome org>
- Subject: GtkRange value_changed meaning...
- Date: 15 Sep 2004 17:44:07 -0300
Hi all,
I need to catch when the vertical scrollbar from scrolledwindow
reach the max. value, it is the ending bottom. So I'm trying doing
the following:
1) Firstly set a convenient range of just one page varying from 0-1000
with:
gtk_range_set_increments(GTK_RANGE(
GTK_SCROLLED_WINDOW(scrolledwindow1)->vscrollbar),
1.0,
1000.0);
gtk_range_set_range(GTK_RANGE(
GTK_SCROLLED_WINDOW(scrolledwindow1)->vscrollbar),
0.0,
1000.0);
2) Then handle the "value-changed" :
g_signal_connect((gpointer)
GTK_RANGE(
GTK_SCROLLED_WINDOW(scrolledwindow1)->vscrollbar),
"value_changed",
G_CALLBACK(on_scrolledwindow_vscrollbar_value_changed),
(gpointer)ddc_data);
Inside the callback I use:
gdouble value = gtk_range_get_value(range);
But this `value' seems arbitrary to me because have no relation with the
disired limits set above.
Any clue ?
A lot of thanks.
Carlos Savoretti
csavoretti clubsanjorge com ar
...
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]