[gtk/matthiasc/for-master] gtk-demo: Fix an indentation mishap



commit 3760d44f186d6be4a81917a321b277710fc70157
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Aug 9 11:14:28 2020 -0400

    gtk-demo: Fix an indentation mishap

 demos/gtk-demo/spinbutton.c | 96 ++++++++++++++++++++++-----------------------
 1 file changed, 48 insertions(+), 48 deletions(-)
---
diff --git a/demos/gtk-demo/spinbutton.c b/demos/gtk-demo/spinbutton.c
index 8fd93ddb0f..97f25b857a 100644
--- a/demos/gtk-demo/spinbutton.c
+++ b/demos/gtk-demo/spinbutton.c
@@ -185,54 +185,54 @@ do_spinbutton (GtkWidget *do_widget)
   static GtkWidget *window;
 
   if (!window)
-  {
-    GtkBuilder *builder;
-    GtkAdjustment *adj;
-    GtkWidget *label;
-
-    builder = gtk_builder_new_from_resource ("/spinbutton/spinbutton.ui");
-    window = GTK_WIDGET (gtk_builder_get_object (builder, "window"));
-    gtk_window_set_display (GTK_WINDOW (window),
-                            gtk_widget_get_display (do_widget));
-    gtk_window_set_title (GTK_WINDOW (window), "Spin Buttons");
-    gtk_window_set_resizable (GTK_WINDOW (window), FALSE);
-    g_object_add_weak_pointer (G_OBJECT (window), (gpointer *)&window);
-
-    adj = GTK_ADJUSTMENT (gtk_builder_get_object (builder, "basic_adjustment"));
-    label = GTK_WIDGET (gtk_builder_get_object (builder, "basic_label"));
-    g_object_bind_property_full (adj, "value",
-                                 label, "label",
-                                 G_BINDING_SYNC_CREATE,
-                                 value_to_label,
-                                 NULL,
-                                 NULL, NULL);
-    adj = GTK_ADJUSTMENT (gtk_builder_get_object (builder, "hex_adjustment"));
-    label = GTK_WIDGET (gtk_builder_get_object (builder, "hex_label"));
-    g_object_bind_property_full (adj, "value",
-                                 label, "label",
-                                 G_BINDING_SYNC_CREATE,
-                                 value_to_label,
-                                 NULL,
-                                 NULL, NULL);
-    adj = GTK_ADJUSTMENT (gtk_builder_get_object (builder, "time_adjustment"));
-    label = GTK_WIDGET (gtk_builder_get_object (builder, "time_label"));
-    g_object_bind_property_full (adj, "value",
-                                 label, "label",
-                                 G_BINDING_SYNC_CREATE,
-                                 value_to_label,
-                                 NULL,
-                                 NULL, NULL);
-    adj = GTK_ADJUSTMENT (gtk_builder_get_object (builder, "month_adjustment"));
-    label = GTK_WIDGET (gtk_builder_get_object (builder, "month_label"));
-    g_object_bind_property_full (adj, "value",
-                                 label, "label",
-                                 G_BINDING_SYNC_CREATE,
-                                 value_to_label,
-                                 NULL,
-                                 NULL, NULL);
-
-    g_object_unref (builder);
-  }
+    {
+      GtkBuilder *builder;
+      GtkAdjustment *adj;
+      GtkWidget *label;
+
+      builder = gtk_builder_new_from_resource ("/spinbutton/spinbutton.ui");
+      window = GTK_WIDGET (gtk_builder_get_object (builder, "window"));
+      gtk_window_set_display (GTK_WINDOW (window),
+                              gtk_widget_get_display (do_widget));
+      gtk_window_set_title (GTK_WINDOW (window), "Spin Buttons");
+      gtk_window_set_resizable (GTK_WINDOW (window), FALSE);
+      g_object_add_weak_pointer (G_OBJECT (window), (gpointer *)&window);
+
+      adj = GTK_ADJUSTMENT (gtk_builder_get_object (builder, "basic_adjustment"));
+      label = GTK_WIDGET (gtk_builder_get_object (builder, "basic_label"));
+      g_object_bind_property_full (adj, "value",
+                                   label, "label",
+                                   G_BINDING_SYNC_CREATE,
+                                   value_to_label,
+                                   NULL,
+                                   NULL, NULL);
+      adj = GTK_ADJUSTMENT (gtk_builder_get_object (builder, "hex_adjustment"));
+      label = GTK_WIDGET (gtk_builder_get_object (builder, "hex_label"));
+      g_object_bind_property_full (adj, "value",
+                                   label, "label",
+                                   G_BINDING_SYNC_CREATE,
+                                   value_to_label,
+                                   NULL,
+                                   NULL, NULL);
+      adj = GTK_ADJUSTMENT (gtk_builder_get_object (builder, "time_adjustment"));
+      label = GTK_WIDGET (gtk_builder_get_object (builder, "time_label"));
+      g_object_bind_property_full (adj, "value",
+                                   label, "label",
+                                   G_BINDING_SYNC_CREATE,
+                                   value_to_label,
+                                   NULL,
+                                   NULL, NULL);
+      adj = GTK_ADJUSTMENT (gtk_builder_get_object (builder, "month_adjustment"));
+      label = GTK_WIDGET (gtk_builder_get_object (builder, "month_label"));
+      g_object_bind_property_full (adj, "value",
+                                   label, "label",
+                                   G_BINDING_SYNC_CREATE,
+                                   value_to_label,
+                                   NULL,
+                                   NULL, NULL);
+
+      g_object_unref (builder);
+    }
 
   if (!gtk_widget_get_visible (window))
     gtk_widget_show (window);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]