[gtk: 3/4] picture: Move variable definition at the top
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 3/4] picture: Move variable definition at the top
- Date: Sat, 16 Jul 2022 00:24:33 +0000 (UTC)
commit 3eac4ef5c938f5d0aa381f43ec0168dad41c9372
Author: Marco Melorio <marco melorio protonmail com>
Date: Sat Jul 16 01:37:10 2022 +0200
picture: Move variable definition at the top
gtk/gtkpicture.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]