summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2018-01-16 23:24:26 -0500
committerMatthias Clasen <mclasen@redhat.com>2018-01-16 23:25:50 -0500
commitba79376ac488fea63b3f82847b3258b78360480d (patch)
tree78baf0b6aaa69f4c36e1fa6c98bb427d18e14461
parent16541dd68fcce4a717b8b50586471a4f46eceecb (diff)
downloadgtk+-ba79376ac488fea63b3f82847b3258b78360480d.tar.gz
x11: Drop cursor information apis
Not needed anymore.
-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;