change value of an adjustment
- From: Suleyman <sgulsuner hekim net>
- To: gtk listesi <gtk-app-devel-list gnome org>
- Subject: change value of an adjustment
- Date: Thu, 01 Mar 2001 01:34:12 +0200
hi I'm am new at GTK and the list.
I'm trying to change the value of an adjustment after create it, but it
doesn't for. here is the code of my way? what is wrong? or what is the
way of doing it.
can anyone give an example code?
thanx.
----- the code --
int main ...
{
..
adj1= gtk_adjustment_new(87, 87, 109, 0.1, 0.05, 0.05);
gtk_adjustment_set_value(adj1, 50 );
hscale2 = gtk_hscale_new (GTK_ADJUSTMENT (adj1));
gtk_widget_show (hscale2);
..
..
gtk_signal_connect (GTK_OBJECT (kanal5), "clicked",
GTK_SIGNAL_FUNC (stat_5),
NULL);
...
...
}
void stat_3 (void) {zipla (3);
void stat_4 (void) {zipla (4);
void stat_5 (void) {zipla (5);
...
...
void zipla (int i, GtkAdjustment *adj1) {
frekans = saved_freq[i];
gtk_adjustment_set_value(adj1, frekans );
}
--
Suleyman Gulsuner
Dokuz Eylul Universitesi
TIp Fakultesi
Inciralti/IZMIR
Love& Respect& Linux
}\/\/{
| |
(.)(.)
| C |)
(___ |
)__|
/ \\
/ \\
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]