From e316157671d0ab67dc9dd7de8f961df80a84f6db Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 28 Aug 2010 23:51:58 +0200 Subject: API: gdk_pixbuf_get_from_drawable() => gdk_pixbuf_get_from_window() The Colormap argument needed to be removed, so the renaming is just a side effect. --- demos/testpixbuf-color.c | 4 ++-- demos/testpixbuf-save.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'demos') diff --git a/demos/testpixbuf-color.c b/demos/testpixbuf-color.c index 003f333849..5ce086cf90 100644 --- a/demos/testpixbuf-color.c +++ b/demos/testpixbuf-color.c @@ -112,8 +112,8 @@ main (int argc, char **argv) gtk_init (&argc, &argv); root = gdk_get_default_root_window (); - pixbuf = gdk_pixbuf_get_from_drawable (NULL, root, NULL, - 0, 0, 0, 0, 150, 160); + pixbuf = gdk_pixbuf_get_from_window (NULL, root, + 0, 0, 0, 0, 150, 160); /* PASS */ g_debug ("try to save PNG with a profile"); diff --git a/demos/testpixbuf-save.c b/demos/testpixbuf-save.c index c8a6679ce2..f3e9f046d9 100644 --- a/demos/testpixbuf-save.c +++ b/demos/testpixbuf-save.c @@ -340,8 +340,8 @@ configure_cb (GtkWidget *drawing_area, GdkEventConfigure *evt, gpointer data) GdkPixbuf *new_pixbuf; root = gdk_get_default_root_window (); - new_pixbuf = gdk_pixbuf_get_from_drawable (NULL, root, NULL, - 0, 0, 0, 0, evt->width, evt->height); + new_pixbuf = gdk_pixbuf_get_from_window (NULL, root, + 0, 0, 0, 0, evt->width, evt->height); g_object_set_data_full (G_OBJECT (drawing_area), "pixbuf", new_pixbuf, (GDestroyNotify) g_object_unref); } @@ -361,8 +361,8 @@ main (int argc, char **argv) gtk_init (&argc, &argv); root = gdk_get_default_root_window (); - pixbuf = gdk_pixbuf_get_from_drawable (NULL, root, NULL, - 0, 0, 0, 0, 150, 160); + pixbuf = gdk_pixbuf_get_from_window (NULL, root, + 0, 0, 0, 0, 150, 160); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); g_signal_connect (window, "delete_event", -- cgit v1.2.1