[gtk/wip/otte/warnings: 1155/1158] notebook: Add missing return statement



commit e8825d6f3068329c1d9d68c9ad2a8f6c8e57f450
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 5c0fc4642a..05b5b5ad89 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -3780,6 +3780,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]