[gimp] app: replace a wrong G_LIKELY() by G_UNLIKELY() in tool_events()



commit 955fecc3cd5db5eced102d3a5511b297ed5488d1
Author: Michael Natterer <mitch gimp org>
Date:   Sun Feb 27 11:08:36 2011 +0100

    app: replace a wrong G_LIKELY() by G_UNLIKELY() in tool_events()

 app/display/gimpdisplayshell-tool-events.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-tool-events.c b/app/display/gimpdisplayshell-tool-events.c
index 6a88d46..46e52bb 100644
--- a/app/display/gimpdisplayshell-tool-events.c
+++ b/app/display/gimpdisplayshell-tool-events.c
@@ -312,6 +312,9 @@ gimp_display_shell_canvas_tool_events (GtkWidget        *canvas,
   if (! image)
     return gimp_display_shell_canvas_no_image_events (canvas, event, shell);
 
+  GIMP_LOG (TOOL_EVENTS, "event (display %p): %s",
+            display, gimp_print_event (event));
+
   /*  Find out what device the event occurred upon  */
   if (! gimp->busy && gimp_devices_check_change (gimp, event))
     {
@@ -334,9 +337,6 @@ gimp_display_shell_canvas_tool_events (GtkWidget        *canvas,
       gimp_display_shell_update_focus (shell, &image_coords, state);
     }
 
-  GIMP_LOG (TOOL_EVENTS, "event (display %p): %s",
-            display, gimp_print_event (event));
-
   switch (event->type)
     {
     case GDK_ENTER_NOTIFY:
@@ -410,7 +410,7 @@ gimp_display_shell_canvas_tool_events (GtkWidget        *canvas,
           }
         else
           {
-            if (G_LIKELY (gtk_widget_has_focus (canvas)))
+            if (G_UNLIKELY (gtk_widget_has_focus (canvas)))
               g_warning ("%s: FOCUS_OUT but canvas has focus", G_STRFUNC);
 
             /*  reset it here to be prepared for the next



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