mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
Remove deprecated display ungrab functions
This commit is contained in:
parent
6b231af45e
commit
e642909823
@ -102,8 +102,6 @@ gdk_display_get_default
|
||||
gdk_display_get_name
|
||||
gdk_display_get_default_screen
|
||||
gdk_display_get_device_manager
|
||||
gdk_display_pointer_ungrab
|
||||
gdk_display_keyboard_ungrab
|
||||
gdk_display_device_is_grabbed
|
||||
gdk_display_beep
|
||||
gdk_display_sync
|
||||
|
@ -507,74 +507,6 @@ gdk_display_put_event (GdkDisplay *display,
|
||||
gdk_display_put_event_nocopy (display, gdk_event_copy (event));
|
||||
}
|
||||
|
||||
/**
|
||||
* gdk_display_pointer_ungrab:
|
||||
* @display: a #GdkDisplay.
|
||||
* @time_: a timestap (e.g. %GDK_CURRENT_TIME).
|
||||
*
|
||||
* Release any pointer grab.
|
||||
*
|
||||
* Since: 2.2
|
||||
*
|
||||
* Deprecated: 3.0: Use gdk_device_ungrab(), together with gdk_device_grab()
|
||||
* instead.
|
||||
*/
|
||||
void
|
||||
gdk_display_pointer_ungrab (GdkDisplay *display,
|
||||
guint32 time_)
|
||||
{
|
||||
GList *seats, *s;
|
||||
GdkDevice *device;
|
||||
|
||||
g_return_if_fail (GDK_IS_DISPLAY (display));
|
||||
|
||||
seats = gdk_display_list_seats (display);
|
||||
|
||||
for (s = seats; s; s = s->next)
|
||||
{
|
||||
device = gdk_seat_get_pointer (s->data);
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
|
||||
gdk_device_ungrab (device, time_);
|
||||
G_GNUC_END_IGNORE_DEPRECATIONS;
|
||||
}
|
||||
|
||||
g_list_free (seats);
|
||||
}
|
||||
|
||||
/**
|
||||
* gdk_display_keyboard_ungrab:
|
||||
* @display: a #GdkDisplay.
|
||||
* @time_: a timestap (e.g #GDK_CURRENT_TIME).
|
||||
*
|
||||
* Release any keyboard grab
|
||||
*
|
||||
* Since: 2.2
|
||||
*
|
||||
* Deprecated: 3.0: Use gdk_device_ungrab(), together with gdk_device_grab()
|
||||
* instead.
|
||||
*/
|
||||
void
|
||||
gdk_display_keyboard_ungrab (GdkDisplay *display,
|
||||
guint32 time)
|
||||
{
|
||||
GList *seats, *s;
|
||||
GdkDevice *device;
|
||||
|
||||
g_return_if_fail (GDK_IS_DISPLAY (display));
|
||||
|
||||
seats = gdk_display_list_seats (display);
|
||||
|
||||
for (s = seats; s; s = s->next)
|
||||
{
|
||||
device = gdk_seat_get_keyboard (s->data);
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
|
||||
gdk_device_ungrab (device, time);
|
||||
G_GNUC_END_IGNORE_DEPRECATIONS;
|
||||
}
|
||||
|
||||
g_list_free (seats);
|
||||
}
|
||||
|
||||
/**
|
||||
* gdk_beep:
|
||||
*
|
||||
|
@ -53,15 +53,6 @@ const gchar * gdk_display_get_name (GdkDisplay *display);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GdkScreen * gdk_display_get_default_screen (GdkDisplay *display);
|
||||
|
||||
#ifndef GDK_MULTIDEVICE_SAFE
|
||||
GDK_DEPRECATED_IN_3_0_FOR(gdk_device_ungrab)
|
||||
void gdk_display_pointer_ungrab (GdkDisplay *display,
|
||||
guint32 time_);
|
||||
GDK_DEPRECATED_IN_3_0_FOR(gdk_device_ungrab)
|
||||
void gdk_display_keyboard_ungrab (GdkDisplay *display,
|
||||
guint32 time_);
|
||||
#endif /* GDK_MULTIDEVICE_SAFE */
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
gboolean gdk_display_device_is_grabbed (GdkDisplay *display,
|
||||
GdkDevice *device);
|
||||
|
Loading…
Reference in New Issue
Block a user