[gnome-panel/wip-warnings: 15/21] multiscreen: reformat code
- From: Sebastian Geiger <segeiger src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel/wip-warnings: 15/21] multiscreen: reformat code
- Date: Tue, 25 Feb 2020 15:05:22 +0000 (UTC)
commit ec264ead5e30cfecdb98b383f88472283e339837
Author: Sebastian Geiger <sbastig gmx net>
Date: Tue Feb 25 11:51:09 2020 +0100
multiscreen: reformat code
gnome-panel/panel-multiscreen.c | 34 +++++++++++++++++-----------------
1 file changed, 17 insertions(+), 17 deletions(-)
---
diff --git a/gnome-panel/panel-multiscreen.c b/gnome-panel/panel-multiscreen.c
index 7a0777d1b..75dbc9e80 100644
--- a/gnome-panel/panel-multiscreen.c
+++ b/gnome-panel/panel-multiscreen.c
@@ -466,30 +466,30 @@ panel_multiscreen_init_randr (GdkDisplay *display)
void
panel_multiscreen_init (void)
{
- GdkDisplay *display;
- GdkScreen *screen;
+ GdkDisplay *display;
+ GdkScreen *screen;
- if (initialized)
- return;
+ if (initialized)
+ return;
- display = gdk_display_get_default ();
+ display = gdk_display_get_default ();
- panel_multiscreen_init_randr (display);
+ panel_multiscreen_init_randr (display);
- screen = gdk_screen_get_default ();
+ screen = gdk_screen_get_default ();
- /* We connect to both signals to be on the safe side, but in
- * theory, it should be enough to only connect to
- * monitors-changed. Since we'll likely get two signals, we do
- * the real callback in the idle loop. */
- g_signal_connect (screen, "size-changed",
- G_CALLBACK (panel_multiscreen_queue_reinit), NULL);
- g_signal_connect (screen, "monitors-changed",
- G_CALLBACK (panel_multiscreen_queue_reinit), NULL);
+ /* We connect to both signals to be on the safe side, but in
+ * theory, it should be enough to only connect to
+ * monitors-changed. Since we'll likely get two signals, we do
+ * the real callback in the idle loop. */
+ g_signal_connect (screen, "size-changed",
+ G_CALLBACK (panel_multiscreen_queue_reinit), NULL);
+ g_signal_connect (screen, "monitors-changed",
+ G_CALLBACK (panel_multiscreen_queue_reinit), NULL);
- panel_multiscreen_get_monitors_for_screen (&monitors, &geometries);
+ panel_multiscreen_get_monitors_for_screen (&monitors, &geometries);
- initialized = TRUE;
+ initialized = TRUE;
}
int
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]