Drawing on the root window
- To: gtk-list@xxxxxxxxx
- Subject: Drawing on the root window
- From: Joao Victor <jvital@xxxxxxxxx>
- Date: Fri, 26 Nov 2004 12:08:39 -0300
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=CKJsf8GkBtFIDp1BRDcERr2E3dt8zlUNjX00DjdfZXH1rUGg7EyGmO46tYJEMxyQqyVOMfcHD26GQPmKO8Wotw0xE8K/6U+M7p3FN578y9NQSz4zLb0Un1zyM/umfyECnEZS8D7VJA+JIQZiYcuydV4i6ImJndog/eyERwF82Vw=
- Reply-to: Joao Victor <jvital@xxxxxxxxx>
Hello folks,
I'm trying to draw on the root window using the gtk API, but with no
success. Basically this is what i'm trying to do:
---------- begin code -------------
static void draw( GtkWidget *widget,
gpointer data ) {
GdkWindow *root_window;
GdkPixmap *pixmap;
root_window = widget->window;
pixmap = gdk_pixmap_new(root_window,
100,
100,
-1);
gdk_draw_rectangle (pixmap, widget->style->black_gc, TRUE, 0, 0, 100, 100);
---------- end code -------------
But it doesn't happen anything. Could somebody please help me?
Thanks,
J.V.
_______________________________________________
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list
[GIMP Users]
[Yosemite News]
[Yosemite Photos]
[Gimp's Home]
[Steve's Art]