Re: can anybody help with bebugging a little displaying program?
- From: Simon Hookway <lord_seoman hotmail com>
- To: gtk-list gnome org
- Subject: Re: can anybody help with bebugging a little displaying program?
- Date: 19 Mar 2002 14:45:53 +1100
Sure
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,
gdk_pixbuf_get_width(pixbuf),
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.
Simon
ps: sorry i got the lists confused.. :(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]