summaryrefslogtreecommitdiff
path: root/gdk/x11
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/x11
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/x11')
-rw-r--r--gdk/x11/gdkcursor-x11.c54
-rw-r--r--gdk/x11/gdkdisplay-x11.c4
2 files changed, 0 insertions, 58 deletions
diff --git a/gdk/x11/gdkcursor-x11.c b/gdk/x11/gdkcursor-x11.c
index 7faea3f2fa..6fcad7d574 100644
--- a/gdk/x11/gdkcursor-x11.c
+++ b/gdk/x11/gdkcursor-x11.c
@@ -226,26 +226,6 @@ gdk_x11_cursor_create_for_name (GdkDisplay *display,
return xcursor;
}
-gboolean
-_gdk_x11_display_supports_cursor_alpha (GdkDisplay *display)
-{
- return XcursorSupportsARGB (GDK_DISPLAY_XDISPLAY (display));
-}
-
-gboolean
-_gdk_x11_display_supports_cursor_color (GdkDisplay *display)
-{
- return XcursorSupportsARGB (GDK_DISPLAY_XDISPLAY (display));
-}
-
-void
-_gdk_x11_display_get_default_cursor_size (GdkDisplay *display,
- guint *width,
- guint *height)
-{
- *width = *height = XcursorGetDefaultSize (GDK_DISPLAY_XDISPLAY (display));
-}
-
#else
static Cursor
@@ -276,42 +256,8 @@ gdk_x11_cursor_create_for_name (GdkDisplay *display,
return None;
}
-gboolean
-_gdk_x11_display_supports_cursor_alpha (GdkDisplay *display)
-{
- return FALSE;
-}
-
-gboolean
-_gdk_x11_display_supports_cursor_color (GdkDisplay *display)
-{
- return FALSE;
-}
-
-void
-_gdk_x11_display_get_default_cursor_size (GdkDisplay *display,
- guint *width,
- guint *height)
-{
- /* no idea, really */
- *width = *height = 20;
- return;
-}
-
#endif
-void
-_gdk_x11_display_get_maximal_cursor_size (GdkDisplay *display,
- guint *width,
- guint *height)
-{
- g_return_if_fail (GDK_IS_DISPLAY (display));
-
- XQueryBestCursor (GDK_DISPLAY_XDISPLAY (display),
- GDK_SCREEN_XROOTWIN (GDK_X11_DISPLAY (display)->screen),
- 128, 128, width, height);
-}
-
/**
* gdk_x11_display_set_cursor_theme:
* @display: (type GdkX11Display): a #GdkDisplay
diff --git a/gdk/x11/gdkdisplay-x11.c b/gdk/x11/gdkdisplay-x11.c
index edf18abe67..fedfada7c1 100644
--- a/gdk/x11/gdkdisplay-x11.c
+++ b/gdk/x11/gdkdisplay-x11.c
@@ -3081,10 +3081,6 @@ gdk_x11_display_class_init (GdkX11DisplayClass * class)
display_class->supports_shapes = gdk_x11_display_supports_shapes;
display_class->supports_input_shapes = gdk_x11_display_supports_input_shapes;
display_class->get_app_launch_context = _gdk_x11_display_get_app_launch_context;
- display_class->get_default_cursor_size = _gdk_x11_display_get_default_cursor_size;
- display_class->get_maximal_cursor_size = _gdk_x11_display_get_maximal_cursor_size;
- display_class->supports_cursor_alpha = _gdk_x11_display_supports_cursor_alpha;
- display_class->supports_cursor_color = _gdk_x11_display_supports_cursor_color;
display_class->get_next_serial = gdk_x11_display_get_next_serial;
display_class->notify_startup_complete = gdk_x11_display_notify_startup_complete;