[gtk/wip/matthiasc/focus2: 7/7] Remove gtk_widget_focus_move



commit a6b53bc47f39050b7af764772db7d9bf4e758542
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Mar 2 20:53:44 2019 -0500

    Remove gtk_widget_focus_move
    
    This is no longer used.

 gtk/gtkwidgetfocus.c   | 37 -------------------------------------
 gtk/gtkwidgetprivate.h |  2 --
 2 files changed, 39 deletions(-)
---
diff --git a/gtk/gtkwidgetfocus.c b/gtk/gtkwidgetfocus.c
index 81dea61e0f..c835b0f64d 100644
--- a/gtk/gtkwidgetfocus.c
+++ b/gtk/gtkwidgetfocus.c
@@ -449,43 +449,6 @@ gtk_widget_focus_sort (GtkWidget        *widget,
     }
 }
 
-
-gboolean
-gtk_widget_focus_move (GtkWidget        *widget,
-                       GtkDirectionType  direction)
-{
-  GPtrArray *focus_order;
-  GtkWidget *focus_child = gtk_widget_get_focus_child (widget);
-  int i;
-  gboolean ret = FALSE;
-
-  focus_order = g_ptr_array_new ();
-  gtk_widget_focus_sort (widget, direction, focus_order);
-
-  for (i = 0; i < focus_order->len && !ret; i++)
-    {
-      GtkWidget *child = g_ptr_array_index (focus_order, i);
-
-      if (focus_child)
-        {
-          if (focus_child == child)
-            {
-              focus_child = NULL;
-              ret = gtk_widget_child_focus (child, direction);
-            }
-        }
-      else if (_gtk_widget_is_drawable (child) &&
-               gtk_widget_is_ancestor (child, widget))
-        {
-          ret = gtk_widget_child_focus (child, direction);
-        }
-    }
-
-  g_ptr_array_unref (focus_order);
-
-  return ret;
-}
-
 /**
  * gtk_widget_get_next_focus:
  * @widget: a #GtkWidget
diff --git a/gtk/gtkwidgetprivate.h b/gtk/gtkwidgetprivate.h
index ec4ca27fae..3ce370b56e 100644
--- a/gtk/gtkwidgetprivate.h
+++ b/gtk/gtkwidgetprivate.h
@@ -317,8 +317,6 @@ GtkWidget        *gtk_widget_get_focus_child               (GtkWidget
 void              gtk_widget_focus_sort                    (GtkWidget        *widget,
                                                             GtkDirectionType  direction,
                                                             GPtrArray        *focus_order);
-gboolean          gtk_widget_focus_move                    (GtkWidget        *widget,
-                                                            GtkDirectionType  direction);
 GtkWidget *       gtk_widget_next_focus_child              (GtkWidget        *widget,
                                                             GtkWidget        *child,
                                                             GtkDirectionType  direction);


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