[gnome-panel/wip-format: 4/18] multiscreen: reformat code
- From: Sebastian Geiger <segeiger src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel/wip-format: 4/18] multiscreen: reformat code
- Date: Tue, 25 Feb 2020 19:48:00 +0000 (UTC)
commit d1d4c0fb02c7644a8339ba93572197236c92be1b
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 c747ca833..672240889 100644
--- a/gnome-panel/panel-multiscreen.c
+++ b/gnome-panel/panel-multiscreen.c
@@ -230,26 +230,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 *geometries;
- int i;
+ GdkDisplay *display;
+ int num_monitors;
+ GdkRectangle *geometries;
+ int i;
- display = gdk_display_get_default ();
- num_monitors = gdk_display_get_n_monitors (display);
- geometries = g_new (GdkRectangle, num_monitors);
+ display = gdk_display_get_default ();
+ num_monitors = gdk_display_get_n_monitors (display);
+ 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, &(geometries[i]));
- }
+ monitor = gdk_display_get_monitor (display, i);
+ gdk_monitor_get_geometry (monitor, &(geometries[i]));
+ }
- *monitors_ret = num_monitors;
- *geometries_ret = geometries;
+ *monitors_ret = num_monitors;
+ *geometries_ret = geometries;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]