summaryrefslogtreecommitdiff
path: root/src/wayland/meta-wayland-data-device.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2019-11-20 00:27:54 +0100
committerCarlos Garnacho <carlosg@gnome.org>2019-11-20 12:07:51 +0100
commit46b3811e22b3b898342141b1575c888285e51caf (patch)
tree71d95ec4dbacf31df3a9b00842b429a5fff0a5e6 /src/wayland/meta-wayland-data-device.c
parent7adaaab2d6b121e34cd74764b3e86f5c031f3220 (diff)
downloadmutter-46b3811e22b3b898342141b1575c888285e51caf.tar.gz
wayland: Drop unused wl_signal structs
Those were used to signal clipboard ownership around, but that got replaced by MetaSelection and friends. These signals are no longer listened on, so can be safely removed. https://gitlab.gnome.org/GNOME/mutter/issues/591
Diffstat (limited to 'src/wayland/meta-wayland-data-device.c')
-rw-r--r--src/wayland/meta-wayland-data-device.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/wayland/meta-wayland-data-device.c b/src/wayland/meta-wayland-data-device.c
index 2887da62d..3a9f276aa 100644
--- a/src/wayland/meta-wayland-data-device.c
+++ b/src/wayland/meta-wayland-data-device.c
@@ -1327,7 +1327,6 @@ selection_data_source_destroyed (gpointer data, GObject *object_was_here)
wl_data_device_send_selection (data_device_resource, NULL);
}
- wl_signal_emit (&data_device->selection_ownership_signal, NULL);
unset_selection_source (data_device, META_SELECTION_CLIPBOARD);
}
@@ -1599,8 +1598,6 @@ meta_wayland_data_device_set_dnd_source (MetaWaylandDataDevice *data_device,
if (source)
g_object_add_weak_pointer (G_OBJECT (data_device->dnd_data_source),
(gpointer *)&data_device->dnd_data_source);
-
- wl_signal_emit (&data_device->dnd_ownership_signal, source);
}
void
@@ -1658,8 +1655,6 @@ meta_wayland_data_device_set_selection (MetaWaylandDataDevice *data_device,
wl_data_device_send_selection (data_device_resource, offer);
}
}
-
- wl_signal_emit (&data_device->selection_ownership_signal, source);
}
static void
@@ -1725,7 +1720,6 @@ primary_source_destroyed (gpointer data,
gtk_primary_selection_device_send_selection (data_device_resource, NULL);
}
- wl_signal_emit (&data_device->primary_ownership_signal, NULL);
unset_selection_source (data_device, META_SELECTION_PRIMARY);
}
@@ -1785,8 +1779,6 @@ meta_wayland_data_device_set_primary (MetaWaylandDataDevice *data_device,
gtk_primary_selection_device_send_selection (data_device_resource, offer);
}
}
-
- wl_signal_emit (&data_device->primary_ownership_signal, source);
}
static void
@@ -2009,9 +2001,6 @@ meta_wayland_data_device_init (MetaWaylandDataDevice *data_device)
{
wl_list_init (&data_device->resource_list);
wl_list_init (&data_device->primary_resource_list);
- wl_signal_init (&data_device->selection_ownership_signal);
- wl_signal_init (&data_device->primary_ownership_signal);
- wl_signal_init (&data_device->dnd_ownership_signal);
}
static struct wl_resource *