diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-02-09 05:24:25 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-02-09 05:24:25 +0000 |
commit | 60542887d5f85d976e71ded505a99d29fe2570a4 (patch) | |
tree | c92bdf1820947ddcc54f5c3bf83eb5a519045287 /demos | |
parent | e16d01d6a69f3482970f62dc3902a84cae0fb1ce (diff) | |
download | gtk+-60542887d5f85d976e71ded505a99d29fe2570a4.tar.gz |
XCopyArea with subwindow_mode = IncludeInferiors. (#70999)
Sat Feb 9 00:16:31 2002 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image):
XCopyArea with subwindow_mode = IncludeInferiors.
(#70999)
* demos/testpixbuf-save.c (configure_cb): Fix a minor
memory management problem.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/testpixbuf-save.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/testpixbuf-save.c b/demos/testpixbuf-save.c index f592ffc455..2c589d227b 100644 --- a/demos/testpixbuf-save.c +++ b/demos/testpixbuf-save.c @@ -204,8 +204,8 @@ configure_cb (GtkWidget *drawing_area, GdkEventConfigure *evt, gpointer data) root = gdk_get_default_root_window (); new_pixbuf = gdk_pixbuf_get_from_drawable (NULL, root, NULL, 0, 0, 0, 0, evt->width, evt->height); - g_object_set_data (G_OBJECT (drawing_area), "pixbuf", new_pixbuf); - g_object_unref (pixbuf); + g_object_set_data_full (G_OBJECT (drawing_area), "pixbuf", new_pixbuf, + (GDestroyNotify) g_object_unref); } return FALSE; |