summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2023-04-13 05:28:57 +0200
committerBenjamin Otte <otte@redhat.com>2023-04-13 17:15:35 +0200
commitcfaf1b3e71891dc51a15c47a8d50c635c4f9a232 (patch)
treee59eb7bafe68987e729b6f0278f50f7237d3e04a
parent9763d83a9d9654bd289f166d8afaf58dc72a1a48 (diff)
downloadgtk+-cfaf1b3e71891dc51a15c47a8d50c635c4f9a232.tar.gz
x11: Remove commented outdated code
... and it's copy/paste into the win32 backend
-rw-r--r--gdk/win32/gdkdrag-win32.c25
-rw-r--r--gdk/x11/gdkdrag-x11.c25
2 files changed, 0 insertions, 50 deletions
diff --git a/gdk/win32/gdkdrag-win32.c b/gdk/win32/gdkdrag-win32.c
index bb773bde0a..0dd1ec6d50 100644
--- a/gdk/win32/gdkdrag-win32.c
+++ b/gdk/win32/gdkdrag-win32.c
@@ -1882,11 +1882,6 @@ gdk_win32_drag_drop_done (GdkDrag *drag,
GdkDragAnim *anim;
GdkWin32Clipdrop *clipdrop;
gpointer ddd;
-/*
- cairo_surface_t *win_surface;
- cairo_surface_t *surface;
- cairo_t *cr;
-*/
guint id;
GDK_NOTE (DND, g_print ("gdk_win32_drag_drop_done: 0x%p %s\n",
@@ -1916,26 +1911,6 @@ gdk_win32_drag_drop_done (GdkDrag *drag,
return;
}
-/*
- win_surface = _gdk_surface_ref_cairo_surface (drag_win32->drag_surface);
- surface = gdk_surface_create_similar_surface (drag_win32->drag_surface,
- cairo_surface_get_content (win_surface),
- gdk_surface_get_width (drag_win32->drag_surface),
- gdk_surface_get_height (drag_win32->drag_surface));
- cr = cairo_create (surface);
- cairo_set_source_surface (cr, win_surface, 0, 0);
- cairo_paint (cr);
- cairo_destroy (cr);
- cairo_surface_destroy (win_surface);
-
- pattern = cairo_pattern_create_for_surface (surface);
-
- gdk_surface_set_background_pattern (drag_win32->drag_surface, pattern);
-
- cairo_pattern_destroy (pattern);
- cairo_surface_destroy (surface);
-*/
-
anim = g_new0 (GdkDragAnim, 1);
g_set_object (&anim->drag, drag_win32);
anim->frame_clock = gdk_surface_get_frame_clock (drag_win32->drag_surface);
diff --git a/gdk/x11/gdkdrag-x11.c b/gdk/x11/gdkdrag-x11.c
index df6ff98d30..ade46a7970 100644
--- a/gdk/x11/gdkdrag-x11.c
+++ b/gdk/x11/gdkdrag-x11.c
@@ -1843,11 +1843,6 @@ gdk_x11_drag_drop_done (GdkDrag *drag,
{
GdkX11Drag *x11_drag = GDK_X11_DRAG (drag);
GdkDragAnim *anim;
-/*
- cairo_surface_t *win_surface;
- cairo_surface_t *surface;
- cairo_t *cr;
-*/
guint id;
gdk_x11_drag_release_selection (drag);
@@ -1862,26 +1857,6 @@ gdk_x11_drag_drop_done (GdkDrag *drag,
return;
}
-/*
- win_surface = _gdk_surface_ref_cairo_surface (x11_drag->drag_surface);
- surface = gdk_surface_create_similar_surface (x11_drag->drag_surface,
- cairo_surface_get_content (win_surface),
- gdk_surface_get_width (x11_drag->drag_surface),
- gdk_surface_get_height (x11_drag->drag_surface));
- cr = cairo_create (surface);
- cairo_set_source_surface (cr, win_surface, 0, 0);
- cairo_paint (cr);
- cairo_destroy (cr);
- cairo_surface_destroy (win_surface);
-
- pattern = cairo_pattern_create_for_surface (surface);
-
- gdk_surface_set_background_pattern (x11_drag->drag_surface, pattern);
-
- cairo_pattern_destroy (pattern);
- cairo_surface_destroy (surface);
-*/
-
anim = g_new0 (GdkDragAnim, 1);
anim->drag = g_object_ref (x11_drag);
anim->frame_clock = gdk_surface_get_frame_clock (x11_drag->drag_surface);