summaryrefslogtreecommitdiff
path: root/gdk/gdkdisplay.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2018-01-16 23:22:41 -0500
committerMatthias Clasen <mclasen@redhat.com>2018-01-16 23:32:01 -0500
commit77bab4e027c06dff7726d96fa4e477bc11b23835 (patch)
tree72afdb2b5aee754d40bc736c197fcfcfaea0e986 /gdk/gdkdisplay.c
parentab1f17cb9a18301a5688cdecc35fa147ef2140f5 (diff)
downloadgtk+-77bab4e027c06dff7726d96fa4e477bc11b23835.tar.gz
gdk: Drop some unused cursor apis
The query function for cursor sizes and capabilities are not very interesting. At least, they are not used in GTK+, and all backends but X11 just hardcode made-up values anyway. So, lets drop them.
Diffstat (limited to 'gdk/gdkdisplay.c')
-rw-r--r--gdk/gdkdisplay.c86
1 files changed, 0 insertions, 86 deletions
diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c
index fd425d6ff7..2e370c783a 100644
--- a/gdk/gdkdisplay.c
+++ b/gdk/gdkdisplay.c
@@ -1301,92 +1301,6 @@ gdk_display_has_pending (GdkDisplay *display)
return GDK_DISPLAY_GET_CLASS (display)->has_pending (display);
}
-/**
- * gdk_display_supports_cursor_alpha:
- * @display: a #GdkDisplay
- *
- * Returns %TRUE if cursors can use an 8bit alpha channel
- * on @display. Otherwise, cursors are restricted to bilevel
- * alpha (i.e. a mask).
- *
- * Returns: whether cursors can have alpha channels.
- *
- * Since: 2.4
- */
-gboolean
-gdk_display_supports_cursor_alpha (GdkDisplay *display)
-{
- g_return_val_if_fail (GDK_IS_DISPLAY (display), FALSE);
-
- return GDK_DISPLAY_GET_CLASS (display)->supports_cursor_alpha (display);
-}
-
-/**
- * gdk_display_supports_cursor_color:
- * @display: a #GdkDisplay
- *
- * Returns %TRUE if multicolored cursors are supported
- * on @display. Otherwise, cursors have only a forground
- * and a background color.
- *
- * Returns: whether cursors can have multiple colors.
- *
- * Since: 2.4
- */
-gboolean
-gdk_display_supports_cursor_color (GdkDisplay *display)
-{
- g_return_val_if_fail (GDK_IS_DISPLAY (display), FALSE);
-
- return GDK_DISPLAY_GET_CLASS (display)->supports_cursor_color (display);
-}
-
-/**
- * gdk_display_get_default_cursor_size:
- * @display: a #GdkDisplay
- *
- * Returns the default size to use for cursors on @display.
- *
- * Returns: the default cursor size.
- *
- * Since: 2.4
- */
-guint
-gdk_display_get_default_cursor_size (GdkDisplay *display)
-{
- guint width, height;
-
- g_return_val_if_fail (GDK_IS_DISPLAY (display), FALSE);
-
- GDK_DISPLAY_GET_CLASS (display)->get_default_cursor_size (display,
- &width,
- &height);
-
- return MIN (width, height);
-}
-
-/**
- * gdk_display_get_maximal_cursor_size:
- * @display: a #GdkDisplay
- * @width: (out): the return location for the maximal cursor width
- * @height: (out): the return location for the maximal cursor height
- *
- * Gets the maximal size to use for cursors on @display.
- *
- * Since: 2.4
- */
-void
-gdk_display_get_maximal_cursor_size (GdkDisplay *display,
- guint *width,
- guint *height)
-{
- g_return_if_fail (GDK_IS_DISPLAY (display));
-
- GDK_DISPLAY_GET_CLASS (display)->get_maximal_cursor_size (display,
- width,
- height);
-}
-
gulong
_gdk_display_get_next_serial (GdkDisplay *display)
{