[gnome-panel/wip-format: 10/18] multiscreen: reformat code
- From: Sebastian Geiger <segeiger src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel/wip-format: 10/18] multiscreen: reformat code
- Date: Tue, 25 Feb 2020 19:48:31 +0000 (UTC)
commit db8f20615220086bc274cc8acb3f7bc15b79f6fc
Author: Sebastian Geiger <sbastig gmx net>
Date: Tue Feb 25 11:51:09 2020 +0100
multiscreen: reformat code
gnome-panel/panel-multiscreen.c | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)
---
diff --git a/gnome-panel/panel-multiscreen.c b/gnome-panel/panel-multiscreen.c
index c1a7f55c0..5f0ebba03 100644
--- a/gnome-panel/panel-multiscreen.c
+++ b/gnome-panel/panel-multiscreen.c
@@ -441,30 +441,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, &monitor_geometries);
- initialized = TRUE;
+ initialized = TRUE;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]