Drawing on the root window
- From: Joao Victor <jvital gmail com>
- To: gtk-list gnome org
- Subject: Drawing on the root window
- Date: Fri, 26 Nov 2004 12:08:39 -0300
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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]