From: Marco Melorio Date: Fri, 15 Jul 2022 23:37:10 +0000 (+0200) Subject: picture: Move variable definition at the top X-Git-Tag: archive/raspbian/4.8.3+ds-2+rpi1~3^2~20^2~4^2~58^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3eac4ef5c938f5d0aa381f43ec0168dad41c9372;p=gtk4.git picture: Move variable definition at the top --- diff --git a/gtk/gtkpicture.c b/gtk/gtkpicture.c index 92a177df97..f58966e35d 100644 --- a/gtk/gtkpicture.c +++ b/gtk/gtkpicture.c @@ -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;