[gtk/present-toplevel-2: 37/79] surface: Drop focus api



commit b66c1ae2950d2c932d017d0c5dbdb787c27b4c61
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 9a5b3d6ee9..d59053d846 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -2763,22 +2763,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]