denemo-devel
[Top][All Lists]
Advanced

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

Re: [Denemo-devel] A bug in the get-user-input routine.


From: Richard Shann
Subject: Re: [Denemo-devel] A bug in the get-user-input routine.
Date: Wed, 14 Jan 2009 15:51:07 +0000

On Wed, 2009-01-14 at 08:04 -0600, Jeremiah Benham wrote:
> On Tue, 2009-01-13 at 21:50 +0000, Richard Shann wrote:
> 
> > The string terminations are all fixed as far as I have seen.
> 
> I am still getting funny looking symbols on all the scheme pop-up
> dialogs. An example is the Educational->Note Name Recognition. The pop
> up dialog is full of these weird symbols.
For some reason you must have your executable out of step with git.
Your view.c should include the change
Null terminate strings in d-GetUserInput
which is currently 2 days old. If it does you will have the change


-  title = gh_scm2newstr(label, &length);

+  title = scm_to_locale_string(label);

and similar. The scm_to_locale_string function delivers NULL terminated
strings, while the other does not.
So if you see the new function in your source, put a g_print next to it
and make, and you should see the output of the g_print. If you do and
you still have junk in the labels etc, then we have a problem. But I
suspect by the time you get to this stage you will have found what has
gone wrong in you git pull, make and execute denemo set up.
Richard


> 
> Jeremiah
> 
> > Richard
> > 
> > On Mon, 2009-01-12 at 15:28 -0600, Jeremiah Benham wrote:
> > > On Mon, 2009-01-12 at 15:04 +0000, Richard Shann wrote:
> > > > Fixed.
> > > >  BTW the transpose stuff is still behaving strangely in many cases. I
> > > > wonder if we should include it in the release, as it can damage the
> > > > user's work.
> > > 
> > > The transpose does not work for chords. It only works on singe notes or
> > > a monophonic line. I did notice a similar bug like the "junk" you get at
> > > the end of "give input" both in the dialog and at the command line. I
> > > also noticed when applying transpose on the same selection more than
> > > once it creates problems. It may be related to the NULL termination
> > > thing you were talking about before. I don't know. 
> > > 
> > > Jeremiah
> > > 
> > > >  It should be easy to get the score printout transpose to
> > > > work with the get transposition interval from selection. (To go in the
> > > > Score menu as well as Edit->Transpose).
> > > > Richard
> > > > On Mon, 2009-01-12 at 08:27 -0600, Jeremiah Benham wrote:
> > > > > On Mon, 2009-01-12 at 12:08 +0000, Richard Shann wrote:
> > > > > > (d-GetUserInput "A test" "give input" "start value")
> > > > > 
> > > > > The first time I executed this it looked fine. The second time I
> > > > > executed it there was "junk" at the end of the "give input" string.
> > > > > 
> > > > > Jeremiah
> > > > > 
> > > > 
> > > > 
> > > > 
> > > > _______________________________________________
> > > > Denemo-devel mailing list
> > > > address@hidden
> > > > http://lists.gnu.org/mailman/listinfo/denemo-devel
> > > 
> > 
> 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]