Re: Sharing Gtk.Adjustment objects among several Gtk.SpinButton widgets

2016-11-15 Thread Damien Caliste
Hello, Le 14/11/2016, Pozz Pozz a écrit : > Of course, I'm supponsing the case of several parameters that have > different values but the same range properties (min, max, page > step, ...) You may implement your use case using bindings. You have a master GtkAdjusment, or even better a derived GOb

Re: Sharing Gtk.Adjustment objects among several Gtk.SpinButton widgets

2016-11-14 Thread Emmanuele Bassi
Hi; On 14 November 2016 at 17:12, Pozz Pozz wrote: >> A GtkAdjustment is a "model", whereas the widgets using the adjustment >> are the "views". So, if you use the same GtkAdjustment instance, all >> widgets will share the same underlying state. This is by design. >> >> If you want to create dif

Re: Sharing Gtk.Adjustment objects among several Gtk.SpinButton widgets

2016-11-14 Thread Pozz Pozz
2016-11-14 16:39 GMT+01:00 Emmanuele Bassi : > Hi; > > On 14 November 2016 at 15:36, Pozz Pozz wrote: > > Is it possible to have a single Gtk.Adjustment for several Gtk.SpinButton > > widgets? I couldn't understand if the adjustment is only used by > SpinButton > > to know the range (and some add

Re: Sharing Gtk.Adjustment objects among several Gtk.SpinButton widgets

2016-11-14 Thread Emmanuele Bassi
Hi; On 14 November 2016 at 15:36, Pozz Pozz wrote: > Is it possible to have a single Gtk.Adjustment for several Gtk.SpinButton > widgets? I couldn't understand if the adjustment is only used by SpinButton > to know the range (and some additional details, such as the page size), or > the adjustmen

Sharing Gtk.Adjustment objects among several Gtk.SpinButton widgets

2016-11-14 Thread Pozz Pozz
Is it possible to have a single Gtk.Adjustment for several Gtk.SpinButton widgets? I couldn't understand if the adjustment is only used by SpinButton to know the range (and some additional details, such as the page size), or the adjustment is used also for the value storage place. I tried to creat