Re: 答复: A question about GTK Scale

2008-04-17 Thread Alvis Koon
gt; adj1 = gtk_adjustment_new (0.0, 0.0, 1001, 0.1, 1.0, 1.0); > slider = gtk_vscale_new (GTK_ADJUSTMENT (adj1)); > > it did work. > > Any idea why? > > > -邮件原件- > 发件人: Christopher Backhouse [mailto:[EMAIL PROTECTED] > 发送时间: 2008年4月16日 9:40 > 收件人:

答复: A question about GTK Scale

2008-04-16 Thread Ke Jin
(0.0, 0.0, 1001, 0.1, 1.0, 1.0); slider = gtk_vscale_new (GTK_ADJUSTMENT (adj1)); it did work. Any idea why? -邮件原件- 发件人: Christopher Backhouse [mailto:[EMAIL PROTECTED] 发送时间: 2008年4月16日 9:40 收件人: Ke Jin 抄送: gtk-app-devel-list@gnome.org 主题: Re: A question about GTK Scale Perhaps it ta

Re: A question about GTK Scale

2008-04-16 Thread Christopher Backhouse
Perhaps it takes 2 iterations of the main loop for the vscale to update. What happens if you try while(gtk_events_pending()) gtk_main_iteration(); instead? Ke Jin wrote: > Dear All, > I have a VScale in my interface and I created button named "Play" that > once the button is clicked, the scale w

A question about GTK Scale

2008-04-16 Thread Ke Jin
Dear All, I have a VScale in my interface and I created button named "Play" that once the button is clicked, the scale will move automatically. Below is the function connected to the button. And it performed strangely. The scale was not updated every iteration of the loop, which means the value