[gtk/wip/otte/warnings: 4/6] notebook: Add missing return statement



commit 1359e18362518dcb4430e4889f1db31b77100aa1
Author: Benjamin Otte <otte redhat com>
Date:   Sat Jan 26 15:07:52 2019 +0100

    notebook: Add missing return statement
    
    Previously, the code would just fall thrrough and repeat an operation it
    had tried before, but that seems quite unnecessary.

 gtk/gtknotebook.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 9a2424cccf..a376865a10 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -3687,6 +3687,7 @@ gtk_notebook_focus (GtkWidget        *widget,
             return TRUE;
           if (focus_action_in (notebook, first_action, direction))
             return TRUE;
+          return FALSE;
         case GTK_DIR_UP:
         case GTK_DIR_LEFT:
         case GTK_DIR_RIGHT:


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