[mutter] ui: Remove unused meta_gdk_pixbuf_get_from_window()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] ui: Remove unused meta_gdk_pixbuf_get_from_window()
- Date: Sun, 26 Sep 2010 15:25:25 +0000 (UTC)
commit f2c63e5eecafad370994373e82411d08ab641737
Author: Benjamin Otte <otte redhat com>
Date: Thu Sep 23 13:09:43 2010 +0200
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, 0 insertions(+), 48 deletions(-)
---
diff --git a/src/include/ui.h b/src/include/ui.h
index c53ef1e..99ccf9d 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 3b34bde..a3eba72 100644
--- a/src/ui/ui.c
+++ b/src/ui/ui.c
@@ -396,45 +396,6 @@ get_cmap (GdkPixmap *pixmap)
}
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,
int src_x,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]