[gtk/seat-model: 3/3] Drop gdk_display_list_seats
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/seat-model: 3/3] Drop gdk_display_list_seats
- Date: Sun, 6 Sep 2020 13:43:35 +0000 (UTC)
commit a83317a7962fc5b0613fd749ab4c4c94aa74255f
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Sep 5 23:44:11 2020 -0400
Drop gdk_display_list_seats
It has been replaced by gdk_display_get_seats()
and is no longer used.
docs/reference/gdk/gdk4-sections.txt | 1 -
gdk/gdkdisplay.c | 33 +--------------------------------
gdk/gdkdisplay.h | 3 ---
3 files changed, 1 insertion(+), 36 deletions(-)
---
diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt
index 7770b98106..9cfef35df5 100644
--- a/docs/reference/gdk/gdk4-sections.txt
+++ b/docs/reference/gdk/gdk4-sections.txt
@@ -86,7 +86,6 @@ gdk_display_get_app_launch_context
gdk_display_notify_startup_complete
gdk_display_get_default_seat
gdk_display_get_seats
-gdk_display_list_seats
gdk_display_get_monitors
gdk_display_get_monitor_at_surface
gdk_display_get_clipboard
diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c
index 876339b85c..1d9ea8fe72 100644
--- a/gdk/gdkdisplay.c
+++ b/gdk/gdkdisplay.c
@@ -51,7 +51,7 @@
*
* Most of the input device handling has been factored out into separate #GdkSeat
* objects. Every display has a one or more seats, which can be accessed with
- * gdk_display_get_default_seat() and gdk_display_list_seats().
+ * gdk_display_get_default_seat() and gdk_display_get_seats().
*
* Output devices are represented by #GdkMonitor objects, which can be accessed
* with gdk_display_get_monitor_at_surface() and similar APIs.
@@ -1423,37 +1423,6 @@ gdk_display_get_default_seat (GdkDisplay *display)
return display_class->get_default_seat (display);
}
-/**
- * gdk_display_list_seats:
- * @display: a #GdkDisplay
- *
- * Returns the list of seats known to @display.
- *
- * Returns: (transfer container) (element-type GdkSeat): the
- * list of seats known to the #GdkDisplay
- **/
-GList *
-gdk_display_list_seats (GdkDisplay *display)
-{
- GListModel *seats;
- guint i, n;
- GList *list;
-
- g_return_val_if_fail (GDK_IS_DISPLAY (display), NULL);
-
- seats = G_LIST_MODEL (display->seats);
-
- list = NULL;
- for (i = 0, n = g_list_model_get_n_items (seats); i < n; i++)
- {
- GdkSeat *seat = g_list_model_get_item (seats, i);
- list = g_list_append (list, seat);
- g_object_unref (seat);
- }
-
- return list;
-}
-
/**
* gdk_display_get_seats:
* @display: a #GdkDisplay
diff --git a/gdk/gdkdisplay.h b/gdk/gdkdisplay.h
index e571e5ed6b..59b0e6a5c2 100644
--- a/gdk/gdkdisplay.h
+++ b/gdk/gdkdisplay.h
@@ -88,9 +88,6 @@ GdkAppLaunchContext *gdk_display_get_app_launch_context (GdkDisplay *display);
GDK_AVAILABLE_IN_ALL
GdkSeat * gdk_display_get_default_seat (GdkDisplay *display);
-GDK_AVAILABLE_IN_ALL
-GList * gdk_display_list_seats (GdkDisplay *display);
-
GDK_AVAILABLE_IN_ALL
GListModel * gdk_display_get_seats (GdkDisplay *display);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]