[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: kminesweeper
From:       ettrich () fisher ! informatik ! uni-tuebingen ! de (Matthias Ettrich)
Date:       1997-07-31 23:26:16
[Download RAW message or body]

> 
> Bertrand Leconte wrote:
> > 
> > Matthias Ettrich wrote:
> > > Here's a cut from kapp.h:
> > >
> > > /**
> > > * Return a text for the window caption.
> > > *
> > > * This would be set either by
> > > * "-caption", otherwise it will be equivalent to the name of the
> > > * executable.
> > > */
> > >    const char* getCaption() const;
> > >
> > > I think this is the solution (Kalle once broke the binary compatibility
> > > for me, since I wanted this feature, but still very few programms seems
> > > to use it)
> > >
> > > A Programm should set the title name to kApplication::getCaption(),
> > > and not hardcode it!
> > 
> > But I would prefer that my application, if it is lauched for another wm
> > (fvwm for example) has a cute name. So, because of this, I have to
> > hardcode
> > the name (but I can keep it in a header file).
> > 
> > --
> > Bertrand Leconte
> > B.Leconte@mail.dotcom.fr
> 
> Does getCaption() return something if kwm is not running?  An error
> message?  If so you can do it both ways.
> 
> If not, please design for kwm.


getCaption returns the name of the executable, if no caption argument
is specified.

If you don't want to name your program "kminesweeper", you can simply check
wether getCpation returns kminesweeper and set it to something
differnt otherwise.

Regards,

 Matthias


> 
> -- 
> Robert Williams
> Jarob Consulting
> Provo, Utah, USA
> 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic