[gtk+/xi2: 655/1239] Remove set_cursor() from GdkWindowImpl, it's not used anymore.
- From: Carlos Garnacho <carlosg src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+/xi2: 655/1239] Remove set_cursor() from GdkWindowImpl, it's not used anymore.
- Date: Tue, 29 Sep 2009 10:49:20 +0000 (UTC)
commit c4472edf133360e0795044f71463acbcb40cc888
Author: Carlos Garnacho <carlos lanedo com>
Date: Thu Jul 30 19:27:16 2009 +0200
Remove set_cursor() from GdkWindowImpl, it's not used anymore.
now set_device_cursor() is called internally by the offscreen windows
machinery.
gdk/gdkoffscreenwindow.c | 22 ----------------------
gdk/gdkwindowimpl.h | 4 +---
gdk/x11/gdkwindow-x11.c | 39 ---------------------------------------
3 files changed, 1 insertions(+), 64 deletions(-)
---
diff --git a/gdk/gdkoffscreenwindow.c b/gdk/gdkoffscreenwindow.c
index f14f831..a5ce61d 100644
--- a/gdk/gdkoffscreenwindow.c
+++ b/gdk/gdkoffscreenwindow.c
@@ -1090,27 +1090,6 @@ gdk_offscreen_window_set_static_gravities (GdkWindow *window,
}
static void
-gdk_offscreen_window_set_cursor (GdkWindow *window,
- GdkCursor *cursor)
-{
- GdkWindowObject *private = (GdkWindowObject *)window;
- GdkOffscreenWindow *offscreen;
-
- offscreen = GDK_OFFSCREEN_WINDOW (private->impl);
-
- if (offscreen->cursor)
- {
- gdk_cursor_unref (offscreen->cursor);
- offscreen->cursor = NULL;
- }
-
- if (cursor)
- offscreen->cursor = gdk_cursor_ref (cursor);
-
- /* TODO: The cursor is never actually used... */
-}
-
-static void
gdk_offscreen_window_get_geometry (GdkWindow *window,
gint *x,
gint *y,
@@ -1264,7 +1243,6 @@ gdk_offscreen_window_impl_iface_init (GdkWindowImplIface *iface)
iface->get_events = gdk_offscreen_window_get_events;
iface->set_events = gdk_offscreen_window_set_events;
iface->reparent = gdk_offscreen_window_reparent;
- iface->set_cursor = gdk_offscreen_window_set_cursor;
iface->get_geometry = gdk_offscreen_window_get_geometry;
iface->shape_combine_region = gdk_offscreen_window_shape_combine_region;
iface->input_shape_combine_region = gdk_offscreen_window_input_shape_combine_region;
diff --git a/gdk/gdkwindowimpl.h b/gdk/gdkwindowimpl.h
index f219aa0..2e5800f 100644
--- a/gdk/gdkwindowimpl.h
+++ b/gdk/gdkwindowimpl.h
@@ -74,9 +74,7 @@ struct _GdkWindowImplIface
void (* clear_region) (GdkWindow *window,
GdkRegion *region,
gboolean send_expose);
-
- void (* set_cursor) (GdkWindow *window,
- GdkCursor *cursor);
+
void (* set_device_cursor) (GdkWindow *window,
GdkDevice *device,
GdkCursor *cursor);
diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c
index 3d80c37..8148e59 100644
--- a/gdk/x11/gdkwindow-x11.c
+++ b/gdk/x11/gdkwindow-x11.c
@@ -2701,44 +2701,6 @@ gdk_window_x11_set_back_pixmap (GdkWindow *window,
}
static void
-gdk_window_x11_set_cursor (GdkWindow *window,
- GdkCursor *cursor)
-{
- GdkWindowObject *private;
- GdkWindowImplX11 *impl;
- GdkCursorPrivate *cursor_private;
- Cursor xcursor;
-
- private = (GdkWindowObject *)window;
- impl = GDK_WINDOW_IMPL_X11 (private->impl);
- cursor_private = (GdkCursorPrivate*) cursor;
-
- if (impl->cursor)
- {
- gdk_cursor_unref (impl->cursor);
- impl->cursor = NULL;
- }
-
- if (!cursor)
- xcursor = None;
- else
- {
- _gdk_x11_cursor_update_theme (cursor);
- xcursor = cursor_private->xcursor;
- }
-
- if (!GDK_WINDOW_DESTROYED (window))
- {
- XDefineCursor (GDK_WINDOW_XDISPLAY (window),
- GDK_WINDOW_XID (window),
- xcursor);
-
- if (cursor)
- impl->cursor = gdk_cursor_ref (cursor);
- }
-}
-
-static void
gdk_window_x11_set_device_cursor (GdkWindow *window,
GdkDevice *device,
GdkCursor *cursor)
@@ -5608,7 +5570,6 @@ gdk_window_impl_iface_init (GdkWindowImplIface *iface)
iface->set_back_pixmap = gdk_window_x11_set_back_pixmap;
iface->reparent = gdk_window_x11_reparent;
iface->clear_region = gdk_window_x11_clear_region;
- iface->set_cursor = gdk_window_x11_set_cursor;
iface->set_device_cursor = gdk_window_x11_set_device_cursor;
iface->get_geometry = gdk_window_x11_get_geometry;
iface->get_root_coords = gdk_window_x11_get_root_coords;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]