SVG icons supported?

View: New views
4 Messages — Rating Filter:   Alert me  

SVG icons supported?

by monoped :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Are SVG icons supported in IceWM 1.3.4pre2? The documentation isn't
clear about that, but I guess they aren't.

The problem is, the last version of matplotlib tries to set an SVG icon
and always fails. The error message appears to come from glib, but I
suspect the WM to be the cause. Can anybody confirm?

Regards,
Bernd

--
Bernd Eggink
http://sudrala.de


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Icewm-devel mailing list
Icewm-devel@...
https://lists.sourceforge.net/lists/listinfo/icewm-devel

SVG icons supported?

by Ingo Brueckl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Bernd Eggink <monoped@...> writes:

> Are SVG icons supported in IceWM 1.3.4pre2? The documentation isn't
> clear about that, but I guess they aren't.

This hasn't changed since 1.3.3 (the version I use and know about). An icon
file for foo, size 16 will be searched for in the order

  foo_16x16.xpm
  foo.xpm
  foo.png

If a file was found, it will be loaded with gdk_pixbuf_new_from_file().

Thus: foo.svg won't be searched for. I assume gdk_pixbuf_new_from_file() is
able to load svg as well, so there is no abvious reason why svg isn't
supported. (To optimize svg support, the image loader should know about the
size and use gdk_pixbuf_new_from_file_at_size() instead which would require
several code changes.)

Ingo

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Icewm-devel mailing list
Icewm-devel@...
https://lists.sourceforge.net/lists/listinfo/icewm-devel

Re: SVG icons supported?

by monoped :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ingo Brueckl schrieb:

> Bernd Eggink <monoped@...> writes:
>
>> Are SVG icons supported in IceWM 1.3.4pre2? The documentation isn't
>> clear about that, but I guess they aren't.
>
> This hasn't changed since 1.3.3 (the version I use and know about). An icon
> file for foo, size 16 will be searched for in the order
>
>   foo_16x16.xpm
>   foo.xpm
>   foo.png

Thanks Ingo, but I meant something different. Let a python programm call

        window.set_icon_from_file("some_icon")

If "some_icon" contains a png image (irrespective of the suffix), the
icon appears in the top left corner of the window, as expected. However,
if the file contains a svg image, the program crashes with the error message

glib.GError: Couldn't recognize the image file format for file some_icon

The question remains whether this happens because IceWM's refuses to
display svg images.

Bernd

--
Bernd Eggink
http://sudrala.de

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Icewm-devel mailing list
Icewm-devel@...
https://lists.sourceforge.net/lists/listinfo/icewm-devel

SVG icons supported?

by Ingo Brueckl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Bernd Eggink <monoped@...> writes:

> Thanks Ingo, but I meant something different. Let a python programm call

>         window.set_icon_from_file("some_icon")

I don't know how python interacts with icewm.

> The question remains whether this happens because IceWM's refuses to
> display svg images.

If your gdk_pixbuf has svg support (mine unfortunately hasn't), patch icewm
and try.

Ingo


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Icewm-devel mailing list
Icewm-devel@...
https://lists.sourceforge.net/lists/listinfo/icewm-devel

icewm.svg.patch (574 bytes) Download Attachment