Re: Writing science application to visualisate physical process. Need help.



> Well. I understand. But is the return value of my_idle function the only
> mechanism to stop calling it? Can I set some timer to call idle function one
> time per call_period?

g_timeout_add

> Just to understand what I am doing: The gdk_draw function used instead of
> gtk_* because the drawing area is the X window. And so we need some X lib
> functions (gdk wrapers) to draw on it. Am I right?

GDK is an abstraction layer for the native API (like X and Win32) and
simplifies common tasks. So if your app works just with GDK it should be
easy to port it from X to Win, without many code changes. So you are
right.

> P.S. Is this mailing list the right place for questions about gtk+
> programming, or there are better lists to ask? Sorry If I was wrong.

There is also gtk-app-devel, which would be more specific for you - I
think many people are subscribed to both...

Jan-Marek



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