Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: problem adding a new window to an application

2 views
Skip to first unread message

Wolfgang Lux

unread,
Sep 1, 2012, 12:40:24 PM9/1/12
to Sebastian Reitenbach, discuss...@gnu.org
Hi Sebastian,

> I attached the MPDCon tarball. I hope someone can tell me what I did wrong.
> I guess its only something very simple. I tried lots of different ways to
> create the Inspector, and also compared with the other interface classes
> there, but I just don't see what's wrong.

there are two errors in LyricsInspector.gorm. First of all you should change the owner class into LyricsInspector instead of creating a separate LyricsInspector object (this is the reason why -init is called twice; once for the shared inspector you create programmatically and once for the inspector loaded from the gorm file). The other error is that you must connect the window attribute of the LyricsInspector (i.e., now the owner object) to the inspector panel.

Wolfgang


Sebastian Reitenbach

unread,
Sep 1, 2012, 1:57:13 PM9/1/12
to Wolfgang Lux, discuss...@gnu.org
Hi Wolfgang,
I've done both, and it works just like a charm!

many thanks. Without that help, I'd probably wasted another couple of hours trying to find that out.

Sebastian



>
> Wolfgang
>





Sebastian Reitenbach

unread,
Sep 2, 2012, 7:33:28 AM9/2/12
to discuss...@gnu.org
Hi,

On Saturday, September 1, 2012 19:57 CEST, "Sebastian Reitenbach" <seba...@l00-bugdead-prods.de> wrote:

> Hi Wolfgang,
>
> On Saturday, September 1, 2012 18:40 CEST, Wolfgang Lux <wolfga...@gmail.com> wrote:
>
> > Hi Sebastian,
> >
> > > I attached the MPDCon tarball. I hope someone can tell me what I did wrong.
> > > I guess its only something very simple. I tried lots of different ways to
> > > create the Inspector, and also compared with the other interface classes
> > > there, but I just don't see what's wrong.
> >
> > there are two errors in LyricsInspector.gorm. First of all you should change the owner class into LyricsInspector instead of creating a separate LyricsInspector object (this is the reason why -init is called twice; once for the shared inspector you create programmatically and once for the inspector loaded from the gorm file). The other error is that you must connect the window attribute of the LyricsInspector (i.e., now the owner object) to the inspector panel.
>

thanks again. Due to your help, I just added the
Lyrics Inspector to MPDCon in GAP CVS. It connects
to the REST API what lyrics.wikia.com provides to
look up lyrics based on the artist and title of the
current song.


cheers,
Sebastian

0 new messages