drawing with GTK 3.0

2011-02-12 Thread Allin Cottrell
I've got my app to build against gtk 3.0 but I'm having trouble getting some drawing code ported. It was OK as of the transitional state part-way through Benjamin Otte's gdk cleanup and it works with gtk 2.24, but my attempt at gtk 3.0 code fails: I get an empty canvas window where there's

Re: drawing with GTK 3.0

2011-02-12 Thread Allin Cottrell
On Sat, 12 Feb 2011, Allin Cottrell wrote: I've got my app to build against gtk 3.0 but I'm having trouble getting some drawing code ported... Ah, I now see what part of my problem was: I hadn't looked up the latest signature for the GtkWidget draw callback. I had this as void plot_draw

Re: Memory leaks

2011-02-12 Thread John Emmas
FWIW I tracked sown the mechanism for suppressing leak detections in MSVC. Basically, you can set checkpoints and only display the leaks between two specified points. It might not be as flexible as the method used in Valgrind but it's one helluva lot easier. Here's how I modified my original

g_spawn_async_with_pipes

2011-02-12 Thread Dad
Hi, If I am going to run the following command line prompt from my application run-time - echo '\version 2.12 \relative {\clef alto c4 d e f g a b c}' | /usr/bin/lilypond --output=myscale.png - using g_spawn_async_with_pipes() how on earth do I set the input of lilypond to suck up the output of

Re: g_spawn_async_with_pipes

2011-02-12 Thread David Nečas
On Sat, Feb 12, 2011 at 01:31:18PM -0500, Dad wrote: If I am going to run the following command line prompt from my application run-time - echo '\version 2.12 \relative {\clef alto c4 d e f g a b c}' | /usr/bin/lilypond --output=myscale.png - using g_spawn_async_with_pipes() how on earth

Re: g_spawn_async_with_pipes

2011-02-12 Thread Craig Bakalian
On Sat, 2011-02-12 at 20:52 +0100, David Nečas wrote: On Sat, Feb 12, 2011 at 01:31:18PM -0500, Dad wrote: If I am going to run the following command line prompt from my application run-time - echo '\version 2.12 \relative {\clef alto c4 d e f g a b c}' | /usr/bin/lilypond

gtk3: behavior of gtk_widget_set_size_request

2011-02-12 Thread Allin Cottrell
I'm using gtk_widget_set_size_request on a GtkTreeView that gets embedded in a scrolled window which in turn is embedded in a larger window -- setting the width to 120 and leaving the height unset. This works as expected in gtk2, but in gtk3 the treeview's window is much narrower (doesn't look

Re: g_spawn_async_with_pipes

2011-02-12 Thread Tadej Borovšak
Hi. Well yes, it is simpler.  And, you are correct, it is awkward.  I just had this vision of two g_spawn_async_with_pipes() hooked together. Running echo output echo_out directly into lilypond's input echo_out as if they may share echo_out.  I will need to test/hack this.  I hate hacking.  

Re: Memory leaks

2011-02-12 Thread Bill C
On 13/02/11 04:43, John Emmas wrote: FWIW I tracked sown the mechanism for suppressing leak detections in MSVC. Basically, you can set checkpoints and only display the leaks between two specified points. It might not be as flexible as the method used in Valgrind but it's one helluva lot

Re: gtk3: behavior of gtk_widget_set_size_request

2011-02-12 Thread Tristan Van Berkom
On Sun, Feb 13, 2011 at 5:49 AM, Allin Cottrell cottr...@wfu.edu wrote: I'm using gtk_widget_set_size_request on a GtkTreeView that gets embedded in a scrolled window which in turn is embedded in a larger window -- setting the width to 120 and leaving the height unset. This works as expected