summaryrefslogtreecommitdiff
path: root/demos/testpixbuf-drawable.c
diff options
context:
space:
mode:
authorMichael Zucchi <zucchi@zedzone.mmc.com.au>1999-12-09 00:43:53 +0000
committerMichael Zucci <zucchi@src.gnome.org>1999-12-09 00:43:53 +0000
commit6b23587aefd002b06047f2b31489bfd268fd8cbe (patch)
tree143b7d35d7816621c2c0dde545524a8e64a6ae56 /demos/testpixbuf-drawable.c
parent880f5ade6b0f63556d59eb76c458ce6d8fd47d73 (diff)
downloadgtk+-6b23587aefd002b06047f2b31489bfd268fd8cbe.tar.gz
Filled in body of function. (rgbconvert): Added GdkColormap parameter, and
1999-12-09 Michael Zucchi <zucchi@zedzone.mmc.com.au> * gdk-pixbuf/gdk-pixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Filled in body of function. (rgbconvert): Added GdkColormap parameter, and to all conversion functions also. * gdk-pixbuf/Makefile.am: Re-enabled building of textpixbuf-drawable. * gdk-pixbuf/testpixbuf-drawable.c (main): Changed to use gdk_pixbuf_get_from_drawable().
Diffstat (limited to 'demos/testpixbuf-drawable.c')
-rw-r--r--demos/testpixbuf-drawable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/testpixbuf-drawable.c b/demos/testpixbuf-drawable.c
index 58d0ee6829..0ac321e237 100644
--- a/demos/testpixbuf-drawable.c
+++ b/demos/testpixbuf-drawable.c
@@ -2,7 +2,6 @@
#include <gtk/gtk.h>
#include <gdk/gdkx.h>
#include "gdk-pixbuf.h"
-#include "gdk-pixbuf-drawable.h"
void close_app(GtkWidget *widget, gpointer data)
{
@@ -79,7 +78,8 @@ int main(int argc, char **argv)
gtk_widget_set_default_visual(gdk_rgb_get_visual());
root = gdk_window_foreign_new(GDK_ROOT_WINDOW());
- pixbuf = gdk_pixbuf_rgb_from_drawable(root, 0, 0, 150, 160);
+ pixbuf = gdk_pixbuf_get_from_drawable(NULL, root, NULL,
+ 0, 0, 0, 0, 150, 160);
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_signal_connect(GTK_OBJECT(window), "delete_event",