[gtk+/gdk-backend-wayland] wayland: Remove window cursor hash
- From: Kristian Høgsberg <krh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gdk-backend-wayland] wayland: Remove window cursor hash
- Date: Sat, 12 Feb 2011 13:40:19 +0000 (UTC)
commit 152dca40d3ca61235d74b37a7faa393ef87a0591
Author: Kristian Høgsberg <krh bitplanet net>
Date: Fri Feb 11 10:06:56 2011 -0500
wayland: Remove window cursor hash
gdk/wayland/gdkwindow-wayland.c | 17 -----------------
1 files changed, 0 insertions(+), 17 deletions(-)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index e2168d8..0388037 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -95,7 +95,6 @@ struct _GdkWindowImplWayland
GdkWindow *wrapper;
GdkCursor *cursor;
- GHashTable *device_cursor;
gint8 toplevel_window_type;
@@ -158,8 +157,6 @@ static void
_gdk_window_impl_wayland_init (GdkWindowImplWayland *impl)
{
impl->toplevel_window_type = -1;
- impl->device_cursor = g_hash_table_new_full (NULL, NULL, NULL,
- (GDestroyNotify) gdk_cursor_unref);
}
/**
@@ -368,8 +365,6 @@ gdk_window_impl_wayland_finalize (GObject *object)
if (impl->server_surface)
cairo_surface_destroy (impl->server_surface);
- g_hash_table_destroy (impl->device_cursor);
-
G_OBJECT_CLASS (_gdk_window_impl_wayland_parent_class)->finalize (object);
}
@@ -595,21 +590,9 @@ gdk_window_wayland_set_device_cursor (GdkWindow *window,
GdkDevice *device,
GdkCursor *cursor)
{
- GdkWindowImplWayland *impl;
-
g_return_if_fail (GDK_IS_WINDOW (window));
g_return_if_fail (GDK_IS_DEVICE (device));
- impl = GDK_WINDOW_IMPL_WAYLAND (window->impl);
-
- if (!cursor)
- g_hash_table_remove (impl->device_cursor, device);
- else
- {
- g_hash_table_replace (impl->device_cursor,
- device, gdk_cursor_ref (cursor));
- }
-
if (!GDK_WINDOW_DESTROYED (window))
GDK_DEVICE_GET_CLASS (device)->set_window_cursor (device, window, cursor);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]