Re: can anybody help with bebugging a little displaying program?


what you have:

GtkWidget *window;
GdkPixbuf *pixbuf;
GtkWidget *widget;

window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
widget = gtk_event_box_new();
gdk_pixbuf_render_to_drawable (pixbuf, 
  widget->window,widget->style->white_gc, 0, 0,0,0,

widget->window is NOT a drawable, thus your mistake. Instead render it
to a pixmap and pack the pixmap into the eventbox and then pack the
eventbox into the window.


ps: sorry i got the lists confused.. :(

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]