[gnome-panel/wip-warnings-next] multiscreen: reformat code



commit 65eb036508e3e4a573992b5a3a1dd00af30aed89
Author: Sebastian Geiger <sbastig gmx net>
Date:   Tue Feb 25 11:49:23 2020 +0100

    multiscreen: reformat code

 gnome-panel/panel-multiscreen.c | 31 ++++++++++++++++---------------
 1 file changed, 16 insertions(+), 15 deletions(-)
---
diff --git a/gnome-panel/panel-multiscreen.c b/gnome-panel/panel-multiscreen.c
index 2bd4a1fe0..0809f49bb 100644
--- a/gnome-panel/panel-multiscreen.c
+++ b/gnome-panel/panel-multiscreen.c
@@ -227,26 +227,27 @@ panel_multiscreen_get_randr_monitors_for_screen (int           *monitors_ret,
 
 static void
 panel_multiscreen_get_gdk_monitors_for_screen (int           *monitors_ret,
-                                              GdkRectangle **geometries_ret)
+                                               GdkRectangle **geometries_ret)
 {
-       GdkDisplay   *display;
-       int           num_monitors;
-       GdkRectangle *monitor_geometries;
-       int           i;
+  GdkDisplay   *display;
+  int           num_monitors;
+  GdkRectangle *monitor_geometries;
+  int           i;
 
-       display = gdk_display_get_default ();
-       num_monitors = gdk_display_get_n_monitors (display);
-       monitor_geometries = g_new (GdkRectangle, num_monitors);
+  display = gdk_display_get_default ();
+  num_monitors = gdk_display_get_n_monitors (display);
+  monitor_geometries = g_new (GdkRectangle, num_monitors);
 
-       for (i = 0; i < num_monitors; i++) {
-         GdkMonitor * monitor;
+  for (i = 0; i < num_monitors; i++)
+    {
+      GdkMonitor * monitor;
 
-         monitor = gdk_display_get_monitor (display, i);
-         gdk_monitor_get_geometry (monitor, &(monitor_geometries[i]));
-       }
+      monitor = gdk_display_get_monitor (display, i);
+      gdk_monitor_get_geometry (monitor, &(monitor_geometries[i]));
+    }
 
-       *monitors_ret = num_monitors;
-       *geometries_ret = monitor_geometries;
+  *monitors_ret = num_monitors;
+  *geometries_ret = monitor_geometries;
 }
 
 static void


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