[goocanvas/goocanvas-2.0] Minor indentation correction to avoid a compiler warning.



commit 49231630cf0aacc4a463eb33619f7ac45c0cf99c
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Oct 30 22:41:27 2017 +0100

    Minor indentation correction to avoid a compiler warning.
    
    This was the warning, with gcc 7:
    
    /home/murrayc/checkout/gnome/goocanvas-2.0/src/goocanvas.c: In function ‘goo_canvas_crossing’:
    /home/murrayc/checkout/gnome/goocanvas-2.0/src/goocanvas.c:3240:3: warning: this ‘if’ clause does not 
guard... [-Wmisleading-indentation]
       if (event->window != canvas->canvas_window)
       ^~
    /home/murrayc/checkout/gnome/goocanvas-2.0/src/goocanvas.c:3245:5: note: ...this statement, but the 
latter is misleadingly indented as if it were guarded by the ‘if’
         if (event->type == GDK_LEAVE_NOTIFY
         ^~

 src/goocanvas.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/goocanvas.c b/src/goocanvas.c
index a7d7a21..76d92f1 100644
--- a/src/goocanvas.c
+++ b/src/goocanvas.c
@@ -3240,13 +3240,13 @@ goo_canvas_crossing        (GtkWidget        *widget,
   if (event->window != canvas->canvas_window)
     return FALSE;
 
-    /* If the pointer has left the canvas window due to a grab, then finish any
-       implicit pointer grab we have underway. */
-    if (event->type == GDK_LEAVE_NOTIFY
-      && (event->mode == GDK_CROSSING_GRAB
-         || event->mode == GDK_CROSSING_GTK_GRAB)
-      && canvas->pointer_grab_item
-      && priv->pointer_grab_is_implicit)
+   /* If the pointer has left the canvas window due to a grab, then finish any
+      implicit pointer grab we have underway. */
+  if (event->type == GDK_LEAVE_NOTIFY
+    && (event->mode == GDK_CROSSING_GRAB
+       || event->mode == GDK_CROSSING_GTK_GRAB)
+    && canvas->pointer_grab_item
+    && priv->pointer_grab_is_implicit)
     {
       goo_canvas_finish_pointer_grab (canvas, (GdkEvent*) event);
     }


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