Cristiano Ghirardi wrote:
>
> Hi,
> I'm using glade-0.5.7 to develop a game that use many concurrent threads.
> I use gdk_threads_enter() and gdk_threads_leave() to protect a widget that
> is currenting accessed by the thread. I need to scroll from bottom to top a
> preview to do that I use gtk_preview_draw_row() to delete the first line on the top
> to redraw every line in the next position and to draw the new line on the bottom..
> The problem ? The problem is that is slow !!!, everything is very slow !!!
> Any suggestion ?
I don't think GtkPreview is really suited to scrolling.
I would try using gdk_draw_pixmap() to copy areas of a GdkWindow (e.g. in a plain
GtkDrawingArea widget) or an offscreen GdkPixmap around. I would then draw the
new lines, either by copying other GdkPixmaps if you are mainly using small
graphical 'sprites', or maybe using GdkRGB if you need complex colorful graphics.
Though I haven't done much high-speed graphical stuff in X so I'm not sure.
Damon
+---------------------------------------------------------------------+
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the line "unsubscribe glade-devel" in the body of the message.