[gnome-control-center] background: revert false indentation
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] background: revert false indentation
- Date: Wed, 15 Jun 2022 19:35:13 +0000 (UTC)
commit dbfc44b1f42463a199ff7732932829ab63eabe10
Author: Amy <apark0006 student cerritos edu>
Date: Fri Jun 10 17:05:20 2022 +0000
background: revert false indentation
Commit 46673670 ("Fix indentation") indented lines 160-163 of
cc-background-chooser.c to make them seem as if they were part of the
associated if statement. However, they are not, which causes confusion
as to the intention of the code. It appears as if the
gtk_accessible_update_property call is executed upon button being non-
null, but it is always executed due to the lack of an if block. For
clarity, and to resolve a compiler warning, this patch should be
reverted.
This patch reverts 46673670, changing the indentation back correctly.
This was mentioned in #1902 and received no objections, including
approval from Lukas.
panels/background/cc-background-chooser.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/panels/background/cc-background-chooser.c b/panels/background/cc-background-chooser.c
index cc6364b1b..151909268 100644
--- a/panels/background/cc-background-chooser.c
+++ b/panels/background/cc-background-chooser.c
@@ -157,10 +157,10 @@ create_widget_func (gpointer model_item,
gtk_overlay_add_overlay (GTK_OVERLAY (overlay), check);
if (button)
gtk_overlay_add_overlay (GTK_OVERLAY (overlay), button);
- gtk_accessible_update_property (GTK_ACCESSIBLE (overlay),
- GTK_ACCESSIBLE_PROPERTY_LABEL,
- cc_background_item_get_name (item),
- -1);
+ gtk_accessible_update_property (GTK_ACCESSIBLE (overlay),
+ GTK_ACCESSIBLE_PROPERTY_LABEL,
+ cc_background_item_get_name (item),
+ -1);
child = gtk_flow_box_child_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]