picture: Move variable definition at the top
authorMarco Melorio <marco.melorio@protonmail.com>
Fri, 15 Jul 2022 23:37:10 +0000 (01:37 +0200)
committerMarco Melorio <marco.melorio@protonmail.com>
Fri, 15 Jul 2022 23:40:08 +0000 (01:40 +0200)
gtk/gtkpicture.c

index 92a177df9711987ded8660ab15966da5396cdac9..f58966e35dc3841390df4d99875bec637e3f8f08 100644 (file)
@@ -979,13 +979,15 @@ void
 gtk_picture_set_content_fit (GtkPicture    *self,
                              GtkContentFit  content_fit)
 {
+  gboolean notify_keep_aspect_ratio;
+
   g_return_if_fail (GTK_IS_PICTURE (self));
 
   if (self->content_fit == content_fit)
     return;
 
-  gboolean notify_keep_aspect_ratio = (content_fit == GTK_CONTENT_FIT_FILL ||
-                                       self->content_fit == GTK_CONTENT_FIT_FILL);
+  notify_keep_aspect_ratio = (content_fit == GTK_CONTENT_FIT_FILL ||
+                              self->content_fit == GTK_CONTENT_FIT_FILL);
 
   self->content_fit = content_fit;