From f2c63e5eecafad370994373e82411d08ab641737 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 23 Sep 2010 13:09:43 +0200 Subject: [PATCH] ui: Remove unused meta_gdk_pixbuf_get_from_window() https://bugzilla.gnome.org/show_bug.cgi?id=630203 --- src/include/ui.h | 9 --------- src/ui/ui.c | 39 --------------------------------------- 2 files changed, 48 deletions(-) diff --git a/src/include/ui.h b/src/include/ui.h index c53ef1e92..99ccf9da5 100644 --- a/src/include/ui.h +++ b/src/include/ui.h @@ -131,15 +131,6 @@ void meta_ui_window_menu_free (MetaWindowMenu *menu); /* FIXME these lack a display arg */ -GdkPixbuf* meta_gdk_pixbuf_get_from_window (GdkPixbuf *dest, - Window xwindow, - int src_x, - int src_y, - int dest_x, - int dest_y, - int width, - int height); - GdkPixbuf* meta_gdk_pixbuf_get_from_pixmap (GdkPixbuf *dest, Pixmap xpixmap, int src_x, diff --git a/src/ui/ui.c b/src/ui/ui.c index 3b34bde28..a3eba721a 100644 --- a/src/ui/ui.c +++ b/src/ui/ui.c @@ -395,45 +395,6 @@ get_cmap (GdkPixmap *pixmap) return cmap; } -GdkPixbuf* -meta_gdk_pixbuf_get_from_window (GdkPixbuf *dest, - Window xwindow, - int src_x, - int src_y, - int dest_x, - int dest_y, - int width, - int height) -{ - GdkDrawable *drawable; - GdkPixbuf *retval; - GdkColormap *cmap; - - retval = NULL; - - drawable = gdk_xid_table_lookup (xwindow); - - if (drawable) - g_object_ref (G_OBJECT (drawable)); - else - drawable = gdk_window_foreign_new (xwindow); - - cmap = get_cmap (drawable); - - retval = gdk_pixbuf_get_from_drawable (dest, - drawable, - cmap, - src_x, src_y, - dest_x, dest_y, - width, height); - - if (cmap) - g_object_unref (G_OBJECT (cmap)); - g_object_unref (G_OBJECT (drawable)); - - return retval; -} - GdkPixbuf* meta_gdk_pixbuf_get_from_pixmap (GdkPixbuf *dest, Pixmap xpixmap,