Re: Using VScales widgets



Chamindu Ruwin Munasinghe wrote:

Hi
        I'm new to development on Linux platform. I am trying to make a
simple application using Glade. I'm  using two  VScale widgets and I want to
update one when the other changes. how can i do that.

Thanks
Chamindu
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


        You might be able to do that just using a callback and extracting the
value
of one ... setting the value of the other (should look something like
GTK_VSCALE(widget)->xpos = ... )
but then you'll have to get it to draw (I think the method is
GTK_VSCALE(widget)->draw( maybe args ? )

        Or you could write a widget inheriting from whatever GtkVscale inherits
from and
make some kind of "Container" with specific functionality.

        Either way you'll get your hands dirty and read the source ;P

Cheers!
        -Tristan



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]