On Fri, 2004-11-26 at 12:08 -0300, Joao Victor wrote: > 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? If you are running a file manager like Nautilus or Konqueror, it will use a big window that covers the real root window. Regards, Owen
Attachment:
signature.asc
Description: This is a digitally signed message part
_______________________________________________ gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list