summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-10-29 22:20:57 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-10-29 22:20:57 -0400
commitcb81a06793d6a45c18a08407f52d188a0d879df4 (patch)
tree340181b7d12fe78b7b28e11bd8653838e13e6462
parent4d9cc483c988b49056e2eadcb6bb0bf5af2f0799 (diff)
downloadgtk+-cb81a06793d6a45c18a08407f52d188a0d879df4.tar.gz
wayland: Drop the keyboard settings object
It is no longer used.
-rw-r--r--gdk/wayland/gdkdevice-wayland.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
index f1346cd87a..3e3d4748b2 100644
--- a/gdk/wayland/gdkdevice-wayland.c
+++ b/gdk/wayland/gdkdevice-wayland.c
@@ -241,7 +241,6 @@ struct _GdkWaylandSeat
guint32 repeat_key;
guint32 repeat_count;
gint64 repeat_deadline;
- GSettings *keyboard_settings;
uint32_t keyboard_time;
uint32_t keyboard_key_serial;
@@ -2013,26 +2012,6 @@ keyboard_handle_leave (void *data,
static gboolean keyboard_repeat (gpointer data);
-static GSettings *
-get_keyboard_settings (GdkWaylandSeat *seat)
-{
- if (!seat->keyboard_settings)
- {
- GSettingsSchemaSource *source;
- GSettingsSchema *schema;
-
- source = g_settings_schema_source_get_default ();
- schema = g_settings_schema_source_lookup (source, "org.gnome.settings-daemon.peripherals.keyboard", FALSE);
- if (schema != NULL)
- {
- seat->keyboard_settings = g_settings_new_full (schema, NULL, NULL);
- g_settings_schema_unref (schema);
- }
- }
-
- return seat->keyboard_settings;
-}
-
static gboolean
get_key_repeat (GdkWaylandSeat *seat,
guint *delay,
@@ -4556,7 +4535,6 @@ gdk_wayland_seat_finalize (GObject *object)
g_object_unref (seat->keymap);
gdk_wayland_pointer_data_finalize (&seat->pointer_info);
/* FIXME: destroy data_device */
- g_clear_object (&seat->keyboard_settings);
g_clear_object (&seat->drag);
g_clear_object (&seat->drop);
g_clear_object (&seat->clipboard);