[gtk/wip/matthiasc/focus2: 37/41] window: Drop next_focus_child implementation



commit 7fbe3bd681ca98b4b99fe3047607a353cc014eee
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Mar 4 22:48:24 2019 -0500

    window: Drop next_focus_child implementation
    
    Not needed anymore, now that the cycling is enforced.

 gtk/gtkwindow.c | 22 ----------------------
 1 file changed, 22 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 2b131641f7..6b6b462e97 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -760,27 +760,6 @@ gtk_window_pick (GtkWidget *widget,
   return GTK_WIDGET_CLASS (gtk_window_parent_class)->pick (widget, x, y);
 }
 
-static GtkWidget *
-gtk_window_next_focus_child (GtkWidget        *widget,
-                             GtkWidget        *child,
-                             GtkDirectionType  direction)
-{
-  GtkWidget *next;
-
-  next = GTK_WIDGET_CLASS (gtk_window_parent_class)->next_focus_child (widget, child, direction);
-  if (next)
-    return next;
-
-  switch ((int)direction)
-    {
-    case GTK_DIR_TAB_FORWARD:
-    case GTK_DIR_TAB_BACKWARD:
-      return GTK_WIDGET_CLASS (gtk_window_parent_class)->next_focus_child (widget, NULL, direction);
-    default:
-      return NULL;
-    }
-}
-
 static void
 gtk_window_class_init (GtkWindowClass *klass)
 {
@@ -819,7 +798,6 @@ gtk_window_class_init (GtkWindowClass *klass)
   widget_class->style_updated = gtk_window_style_updated;
   widget_class->snapshot = gtk_window_snapshot;
   widget_class->pick = gtk_window_pick;
-  widget_class->next_focus_child = gtk_window_next_focus_child;
 
   container_class->add = gtk_window_add;
   container_class->remove = gtk_window_remove;


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