[gnome-panel/wip-warnings-next: 8/20] multiscreen: reformat code
- From: Sebastian Geiger <segeiger src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel/wip-warnings-next: 8/20] multiscreen: reformat code
- Date: Tue, 25 Feb 2020 14:39:50 +0000 (UTC)
commit cec8fbc11d7e409e94c2547af6ef7e88591ad61a
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 e77bf46aa..4ba0731a3 100644
--- a/gnome-panel/panel-multiscreen.c
+++ b/gnome-panel/panel-multiscreen.c
@@ -229,26 +229,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]