summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2018-07-13 10:06:10 +0200
committerMatthias Clasen <mclasen@redhat.com>2018-07-13 10:13:00 +0200
commit00a61f92b607a453ccc1c51b0b5ab88410fb0f84 (patch)
tree56bacdb4d190e146fb0d6b674f6d601797afa557 /gdk
parent986daa8225983b2e09f3d42f116f1609008ef8a3 (diff)
downloadgtk+-00a61f92b607a453ccc1c51b0b5ab88410fb0f84.tar.gz
docs: Small updates
Remove a few references to no-longer-existing APIs.
Diffstat (limited to 'gdk')
-rw-r--r--gdk/gdkcursor.c19
-rw-r--r--gdk/gdksurface.c4
2 files changed, 3 insertions, 20 deletions
diff --git a/gdk/gdkcursor.c b/gdk/gdkcursor.c
index 1964d4fd59..be3dca2e98 100644
--- a/gdk/gdkcursor.c
+++ b/gdk/gdkcursor.c
@@ -61,12 +61,7 @@
* the commonly available names that are shared with the CSS specification.
* Other names may be available, depending on the platform in use.
* Another option to create a cursor is to use gdk_cursor_new_from_texture()
- * and provide an image to use for the cursor. Depending on the #GdkDisplay
- * in use, the type of supported images may be limited. See
- * gdk_display_supports_cursor_alpha(),
- * gdk_display_supports_cursor_color(),
- * gdk_display_get_default_cursor_size() and
- * gdk_display_get_maximal_cursor_size() for the limitations that might apply.
+ * and provide an image to use for the cursor.
*
* To ease work with unsupported cursors, a fallback cursor can be provided.
* If a #GdkSurface cannot use a cursor because of the reasons mentioned above,
@@ -346,18 +341,6 @@ gdk_cursor_new_from_name (const gchar *name,
*
* Creates a new cursor from a #GdkTexture.
*
- * Not all GDK backends support RGBA cursors. If they are not
- * supported, a monochrome approximation will be displayed.
- * The functions gdk_display_supports_cursor_alpha() and
- * gdk_display_supports_cursor_color() can be used to determine
- * whether RGBA cursors are supported;
- * gdk_display_get_default_cursor_size() and
- * gdk_display_get_maximal_cursor_size() give information about
- * cursor sizes.
- *
- * On the X backend, support for RGBA cursors requires a
- * sufficently new version of the X Render extension.
- *
* Returns: a new #GdkCursor.
*/
GdkCursor *
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index 7348ce1fe8..bb9785a0a5 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -2917,7 +2917,7 @@ gdk_surface_get_cursor (GdkSurface *surface)
*
* Note that @cursor must be for the same display as @surface.
*
- * Use gdk_cursor_new_for_display() or gdk_cursor_new_from_texture() to
+ * Use gdk_cursor_new_from_name() or gdk_cursor_new_from_texture() to
* create the cursor. To make the cursor invisible, use %GDK_BLANK_CURSOR.
* Passing %NULL for the @cursor argument to gdk_surface_set_cursor() means
* that @surface will use the cursor of its parent surface. Most surfaces
@@ -3004,7 +3004,7 @@ gdk_surface_get_device_cursor (GdkSurface *surface,
* @cursor: a #GdkCursor
*
* Sets a specific #GdkCursor for a given device when it gets inside @surface.
- * Use gdk_cursor_new_for_display() or gdk_cursor_new_from_texture() to create
+ * Use gdk_cursor_new_fromm_name() or gdk_cursor_new_from_texture() to create
* the cursor. To make the cursor invisible, use %GDK_BLANK_CURSOR. Passing
* %NULL for the @cursor argument to gdk_surface_set_cursor() means that
* @surface will use the cursor of its parent surface. Most surfaces should