Icon installing

Andras Mantia amantia at kde.org
Tue Mar 2 08:20:26 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 01 March 2004 21:37, Antonio Larrosa Jiménez wrote:
> El Lunes 01 Marzo 2004 12:04, Andras Mantia escribió:
> > Hi,
> >
> >  I've tried to install some icons for the Kommander editor (binary name
> > is kmdr-editor) and suddenly I realized that KDE_ICON = kmdr-editor does
> > not work, as hi32-app-kmdr-editor.png is installed in
> > $KDEDIR/share/icons/hicolor/32x32/apps/kmdr/editor.png instead
> > of ../apps/kmdr-editor.png.
> >  So I must use manual installation or we can fix the am_edit. I think the
> > latter is better, but I don't really know perl. It looks like it should
>
> The - character in icon names is forbidden when using the automatic
> installation. Wouldn't it be simpler to call it kmdr_editor.png?
> ( hi32-app-kmdr_editor.png in the sources)
So I just put kmdr_editor.png as the icon in the desktop file and I don't
change the executable name? As I really don't want to do that (and upgrade
would confuse the user who starts the program by its name).

> I suppose you could also change the perl script to only substitute the
> first two - with /, but I don't know if some other installation depends on
> the current behaviour.
>
> > work when  KDE_ICON = appname is supplied, but it does not work.
>
> uh? Have you set the icon variable in Kommander's .desktop file?

I have

Exec=kmdr-editor %F
Icon=kmdr-editor

so this should be alright. I'll try now with the underscore in the icon name.

Ok, that works, I get the right icon in the K menu, but not for the icon in 
the left corner of the titlebar. Even after using
    mw->setIcon(SmallIcon("kmdr_editor"));
or
    mw->setIcon(SmallIconSet("kmdr_editor").pixmap());


Andras

>
> Greetings,

- --
Quanta Plus developer - http://quanta.sourceforge.net
K Desktop Environment - http://www.kde.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFAREPKTQdfac6L/08RAi5hAJ4qBKqT+2lHKy1LqI3u8k6jse+vvACdGE+V
0ywqyaz6crVWY9zcNLkq5NQ=
=lnOm
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list