mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
gdk: Move gdk_cursor_get_display() out of the backends
Now that we store the display inside the cursor, that change is obvious.
This commit is contained in:
parent
7a14b30ea3
commit
4793bd3399
@ -354,3 +354,23 @@ gdk_cursor_new_from_pixbuf (GdkDisplay *display,
|
||||
|
||||
return GDK_DISPLAY_GET_CLASS (display)->get_cursor_for_pixbuf (display, pixbuf, x, y);
|
||||
}
|
||||
|
||||
/**
|
||||
* gdk_cursor_get_display:
|
||||
* @cursor: a #GdkCursor.
|
||||
*
|
||||
* Returns the display on which the #GdkCursor is defined.
|
||||
*
|
||||
* Returns: (transfer none): the #GdkDisplay associated to @cursor
|
||||
*
|
||||
* Since: 2.2
|
||||
*/
|
||||
|
||||
GdkDisplay *
|
||||
gdk_cursor_get_display (GdkCursor *cursor)
|
||||
{
|
||||
g_return_val_if_fail (GDK_IS_CURSOR (cursor), NULL);
|
||||
|
||||
return cursor->display;
|
||||
}
|
||||
|
||||
|
@ -391,14 +391,6 @@ gdk_display_get_maximal_cursor_size (GdkDisplay *display,
|
||||
*height = 65536;
|
||||
}
|
||||
|
||||
GdkDisplay *
|
||||
gdk_cursor_get_display (GdkCursor *cursor)
|
||||
{
|
||||
g_return_val_if_fail (cursor != NULL, NULL);
|
||||
|
||||
return gdk_display_get_default ();
|
||||
}
|
||||
|
||||
GdkPixbuf *
|
||||
gdk_cursor_get_image (GdkCursor *cursor)
|
||||
{
|
||||
|
@ -249,12 +249,6 @@ _gdk_cursor_destroy (GdkCursor *cursor)
|
||||
g_free (private);
|
||||
}
|
||||
|
||||
GdkDisplay *
|
||||
gdk_cursor_get_display (GdkCursor *cursor)
|
||||
{
|
||||
return gdk_display_get_default ();
|
||||
}
|
||||
|
||||
GdkPixbuf *
|
||||
gdk_win32_icon_to_pixbuf_libgtk_only (HICON hicon)
|
||||
{
|
||||
|
@ -321,25 +321,6 @@ gdk_x11_cursor_get_xcursor (GdkCursor *cursor)
|
||||
return ((GdkX11Cursor *)cursor)->xcursor;
|
||||
}
|
||||
|
||||
/**
|
||||
* gdk_cursor_get_display:
|
||||
* @cursor: a #GdkCursor.
|
||||
*
|
||||
* Returns the display on which the #GdkCursor is defined.
|
||||
*
|
||||
* Returns: (transfer none): the #GdkDisplay associated to @cursor
|
||||
*
|
||||
* Since: 2.2
|
||||
*/
|
||||
|
||||
GdkDisplay *
|
||||
gdk_cursor_get_display (GdkCursor *cursor)
|
||||
{
|
||||
g_return_val_if_fail (cursor != NULL, NULL);
|
||||
|
||||
return ((GdkX11Cursor *)cursor)->display;
|
||||
}
|
||||
|
||||
#if defined(HAVE_XCURSOR) && defined(HAVE_XFIXES) && XFIXES_MAJOR >= 2
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user