[gtk+] window: add missing return



commit 090a4f0af363d11a13933636de3d450a2b7c1768
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Jan 22 20:49:13 2014 +0100

    window: add missing return
    
    A branch in the if/else if/else was missing a return, that was
    unintended.

 gtk/gtkwindow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 94ae71b..f42f9f7 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -7766,7 +7766,7 @@ _gtk_window_check_handle_wm_event (GdkEvent *event)
       event->type == GDK_2BUTTON_PRESS)
     return gtk_window_button_press_event (widget, &event->button);
   else if (event->type == GDK_BUTTON_RELEASE)
-    gtk_window_button_release_event (widget, &event->button);
+    return gtk_window_button_release_event (widget, &event->button);
   else if (event->type == GDK_MOTION_NOTIFY)
     return gtk_window_motion_notify_event (widget, &event->motion);
   else


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