[gtk/surface-get-mapped: 3/3] Drop gdk_surface_is_visible
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/surface-get-mapped: 3/3] Drop gdk_surface_is_visible
- Date: Tue, 25 Feb 2020 00:08:51 +0000 (UTC)
commit 6fb50ccd0deedf4a4abb6deb337936704586e12c
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Feb 24 19:03:49 2020 -0500
Drop gdk_surface_is_visible
It has been replaced by gdk_surface_get_mapped.
docs/reference/gdk/gdk4-sections.txt | 1 -
gdk/gdksurface.c | 17 -----------------
gdk/gdksurface.h | 2 --
3 files changed, 20 deletions(-)
---
diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt
index b93bdb24c3..9f67fbc889 100644
--- a/docs/reference/gdk/gdk4-sections.txt
+++ b/docs/reference/gdk/gdk4-sections.txt
@@ -185,7 +185,6 @@ gdk_surface_show
gdk_surface_show_unraised
gdk_surface_hide
gdk_surface_is_destroyed
-gdk_surface_is_visible
gdk_surface_is_viewable
gdk_surface_get_mapped
gdk_surface_get_state
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index 4fe3da8001..8c9a23db10 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -1040,23 +1040,6 @@ gdk_surface_get_mapped (GdkSurface *surface)
return GDK_SURFACE_IS_MAPPED (surface);
}
-/**
- * gdk_surface_is_visible:
- * @surface: a #GdkSurface
- *
- * Checks whether the surface has been mapped (with gdk_surface_show() or
- * gdk_surface_show_unraised()).
- *
- * Returns: %TRUE if the surface is mapped
- **/
-gboolean
-gdk_surface_is_visible (GdkSurface *surface)
-{
- g_return_val_if_fail (GDK_IS_SURFACE (surface), FALSE);
-
- return GDK_SURFACE_IS_MAPPED (surface);
-}
-
/**
* gdk_surface_is_viewable:
* @surface: a #GdkSurface
diff --git a/gdk/gdksurface.h b/gdk/gdksurface.h
index 7afb05777f..67ba05b4ae 100644
--- a/gdk/gdksurface.h
+++ b/gdk/gdksurface.h
@@ -403,8 +403,6 @@ void gdk_surface_input_shape_combine_region (GdkSurface *surface,
gint offset_x,
gint offset_y);
-GDK_AVAILABLE_IN_ALL
-gboolean gdk_surface_is_visible (GdkSurface *surface);
GDK_AVAILABLE_IN_ALL
gboolean gdk_surface_is_viewable (GdkSurface *surface);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]