scale: Fix a typo
authorMatthias Clasen <mclasen@redhat.com>
Wed, 28 Sep 2022 01:03:56 +0000 (21:03 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 28 Sep 2022 01:03:56 +0000 (21:03 -0400)
We want to update the label size request when
the adjustment changes, not when anything else
changes.

This may be the reason for crash reports like
https://retrace.fedoraproject.org/faf/problems/bthash/?bth=1e5cc1318358d5db298e5d6c2ec47361922cce74

gtk/gtkscale.c

index 7280fadc53026284d4c617a56c3b47586537572b..110aa6c4ead1b08619b44c24e95a4bcc0ab3a6d2 100644 (file)
@@ -311,7 +311,7 @@ gtk_scale_notify (GObject    *object,
 
       g_free (values);
     }
-  else if (strcmp (pspec->name, "adjustment"))
+  else if (strcmp (pspec->name, "adjustment") == 0)
     {
       if (priv->value_widget)
         update_label_request (scale);