From cacccbaf059e0ffbea7db6fa3c50f14ce7b27032 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20M=C3=ADchal?= Date: Sun, 8 Mar 2026 03:05:30 +0200 Subject: [PATCH] plug-ins/gfig: Fix value updates after port from GimpScaleEntry to GimpSpinScale The new widget is not a subclass of GimpLabelSpin. Fallout from c3fcbd00193cd60d3ee4772467fe24fe91685aa3. Helps with https://gitlab.gnome.org/Teams/GIMP/Design/gimp-ux/-/issues/503. --- plug-ins/gfig/gfig-dialog.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plug-ins/gfig/gfig-dialog.c b/plug-ins/gfig/gfig-dialog.c index 3775c7044d..d3509263c2 100644 --- a/plug-ins/gfig/gfig-dialog.c +++ b/plug-ins/gfig/gfig-dialog.c @@ -1511,19 +1511,19 @@ options_update (GFigObj *old_obj) if (selvals.opts.gridspacing != gfig_context->current_obj->opts.gridspacing) { if (gfig_opt_widget.gridspacing) - gimp_label_spin_set_value (GIMP_LABEL_SPIN (gfig_opt_widget.gridspacing), + gtk_spin_button_set_value (GTK_SPIN_BUTTON (gfig_opt_widget.gridspacing), gfig_context->current_obj->opts.gridspacing); } if (selvals.opts.grid_sectors_desired != gfig_context->current_obj->opts.grid_sectors_desired) { if (gfig_opt_widget.grid_sectors_desired) - gimp_label_spin_set_value (GIMP_LABEL_SPIN (gfig_opt_widget.grid_sectors_desired), + gtk_spin_button_set_value (GTK_SPIN_BUTTON (gfig_opt_widget.grid_sectors_desired), gfig_context->current_obj->opts.grid_sectors_desired); } if (selvals.opts.grid_radius_interval != gfig_context->current_obj->opts.grid_radius_interval) { if (gfig_opt_widget.grid_radius_interval) - gimp_label_spin_set_value (GIMP_LABEL_SPIN (gfig_opt_widget.grid_radius_interval), + gtk_spin_button_set_value (GTK_SPIN_BUTTON (gfig_opt_widget.grid_radius_interval), gfig_context->current_obj->opts.grid_radius_interval); } if (selvals.opts.gridtype != gfig_context->current_obj->opts.gridtype)