[gtk/present-toplevel-2: 57/70] surface: Drop focus api



commit b112410838f12902f201000b0af5fce4a050a550
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Mar 3 10:06:48 2020 -0800

    surface: Drop focus api

 gdk/gdksurface.c | 16 ----------------
 gdk/gdksurface.h |  3 ---
 2 files changed, 19 deletions(-)
---
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index b8b8c0ac57..6d3387e308 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -2749,22 +2749,6 @@ gdk_surface_create_similar_surface (GdkSurface *     surface,
   return similar_surface;
 }
 
-/**
- * gdk_surface_focus:
- * @surface: a #GdkSurface
- * @timestamp: timestamp of the event triggering the surface focus
- *
- * Sets keyboard focus to @surface. In most cases, gtk_window_present_with_time()
- * should be used on a #GtkWindow, rather than calling this function.
- *
- **/
-void
-gdk_surface_focus (GdkSurface *surface,
-                   guint32    timestamp)
-{
-  GDK_SURFACE_GET_CLASS (surface)->focus (surface, timestamp);
-}
-
 /**
  * gdk_surface_set_accept_focus:
  * @surface: a toplevel #GdkSurface
diff --git a/gdk/gdksurface.h b/gdk/gdksurface.h
index af3b1bec09..95ce7afc92 100644
--- a/gdk/gdksurface.h
+++ b/gdk/gdksurface.h
@@ -362,9 +362,6 @@ void          gdk_surface_resize                (GdkSurface     *surface,
                                                  gint           height);
 
 GDK_AVAILABLE_IN_ALL
-void          gdk_surface_focus                 (GdkSurface     *surface,
-                                                 guint32        timestamp);
-GDK_AVAILABLE_IN_ALL
 gboolean      gdk_surface_get_accept_focus      (GdkSurface     *surface);
 GDK_AVAILABLE_IN_ALL
 void          gdk_surface_set_accept_focus      (GdkSurface     *surface,


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