[gnome-shell] shell: Don't mix declarations and code



commit 87f71b8ce1af3c1286f49d57da93d901644027c9
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Sep 23 20:42:24 2015 +0200

    shell: Don't mix declarations and code

 src/shell-perf-helper.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/shell-perf-helper.c b/src/shell-perf-helper.c
index eea5d47..e5eab20 100644
--- a/src/shell-perf-helper.c
+++ b/src/shell-perf-helper.c
@@ -125,9 +125,10 @@ on_window_draw (GtkWidget  *window,
                 WindowInfo *info)
 {
   cairo_rectangle_int_t allocation;
-  gtk_widget_get_allocation (window, &allocation);
   double x_offset, y_offset;
 
+  gtk_widget_get_allocation (window, &allocation);
+
   /* We draw an arbitrary pattern of red lines near the border of the
    * window to make it more clear than empty windows if something
    * is drastrically wrong.


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