Cross-platform apps

2006-04-26 Thread Ross Clement
This is not yet as serious a question as it looks. I'm now back to writing my first ever gtk app again after a break. I'm using gtk (natch), portAudio, and fftw. The program is being written on Linux but I hope that it will be ported to windows (and possibly Mac) at a later date. How much diffic

RE: newbie trap

2006-04-12 Thread Ross Clement
ing this paragraph I went over and fixed a tiny bug by making sure that the text of my progress bar was reset to "recording" if this happens :-) Cheers, Ross-c On Wed, 2006-04-12 at 15:01 +0100, Andersen, Jan wrote: > Ross Clement wrote: > > Hi. I find myself writing a pr

newbie trap

2006-04-12 Thread Ross Clement
Hi. I find myself writing a program that processes the gtk gui events itself. E.g. code vaguely similar to the pseudo-code: while( large_compute_bound_job_not_finished ) { process_next_block_of_data(); gtk_progress_bar_set_fraction( progressBar, fraction ); while ( gtk_events_pending ())

Re: Accessing filenames from file choosers

2006-04-11 Thread Ross Clement
On Tue, 2006-04-11 at 13:09 +0200, David Necas (Yeti) wrote: > No, you should not. GtkFileSelection is the old file > selector, GtkFileChooser is the new one, they are two > completely different classes. You have to use > GtkFileChooser methods, see > > http://developer.gnome.org/doc/API/2.0/gtk

Accessing filenames from file choosers

2006-04-11 Thread Ross Clement
I should have known my previous good progress would get stuck on some seemingly minor point. I create a few file chooser dialogs. These were set up in glade. I can make the dialogs appear, use them, and then make them disappear again. What I can't do is fetch the selected filename from the dialog.

"Hello world"

2006-04-11 Thread Ross Clement
Hi. I'm now writing my first ever gtk program. I'm using glade to build the interface and am writing the rest of the C code in vi :-) Previously I wrote all my cross-platform GUI programs in Java, but for some audio things I would like to do I would prefer to use C. So writing a gtk application see