RSS/Atom feed Twitter
Site is read-only, email is disabled

setting sliders/spinbutton values

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

setting sliders/spinbutton values Luis A. Florit 26 Mar 22:54
  setting sliders/spinbutton values Sven Neumann 26 Mar 23:08
Luis A. Florit
2007-03-26 22:54:06 UTC (about 17 years ago)

setting sliders/spinbutton values

Pals,

I made a plugin thas has some scales created by 'gimp_scale_entry_new'. Is there a way of changing the value of the sliders and spin buttons AFTER the dialog window is created according to the output of some fuction, say, by pressing a button in the dialog that calls this function?

Thanks!

Luis.

Sven Neumann
2007-03-26 23:08:08 UTC (about 17 years ago)

setting sliders/spinbutton values

Hi,

On Mon, 2007-03-26 at 17:54 -0300, Luis A. Florit wrote:

I made a plugin thas has some scales created by 'gimp_scale_entry_new'. Is there a way of changing the value of the sliders and spin buttons AFTER the dialog window is created according to the output of some fuction, say, by pressing a button in the dialog that calls this function?

The very same way you set the values before the dialog window is created. You call gtk_adjustment_set_value() on the GtkAdjustment object that is returned from gimp_scale_entry_new().

Sven