[gtk+/wip/drop-useless-api: 6/7] x11: Drop cursor information apis



commit ba79376ac488fea63b3f82847b3258b78360480d
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jan 16 23:24:26 2018 -0500

    x11: Drop cursor information apis
    
    Not needed anymore.

 gdk/x11/gdkcursor-x11.c  |   54 ----------------------------------------------
 gdk/x11/gdkdisplay-x11.c |    4 ---
 2 files changed, 0 insertions(+), 58 deletions(-)
---
diff --git a/gdk/x11/gdkcursor-x11.c b/gdk/x11/gdkcursor-x11.c
index 7faea3f..6fcad7d 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 edf18ab..fedfada 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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]