Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Technical discussions | Discussions techniques Third party plugin gauge
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Technical discussions | Discussions techniques

Subjects Author Language Messages Last message
[Locked] Third party plugin gauge
Eduardo Mucelli English 7 matttbe [Read]
25 March 2010 à 01:48

Eduardo Mucelli, Wednesday 24 March 2010 à 00:38


Subscription date : 05 August 2009
Messages : 285
I'm coding an applet and I am trying to create a gauge to this applet. I did build some icons in .png format but now I realized that gauges icons seems to must be done using .svg files. Is that the whole truth, or there some workaround to use .png files ?

By the way, I am pleased to use the DBus interface that, it is really awesome. Just for curiosity, is there plans to improve CD Dbus interface ?

Ps.: CD shows me "rsvg_handle_get_dimensions: assertion `handle' failed", so because of that I guess that only .svg is allowed.

fabounet, Wednesday 24 March 2010 à 01:49


Subscription date : 30 November 2007
Messages : 17118
Nice to see you jumping to the other side of the mirror

yes svg files only are used by gauges, but you can easily include a .png inside an svg file.

is there plans to improve CD Dbus interface

if a need appears, and it can be added without breaking the existing API, then yes
the only rule is : keep it simple

Guest, Wednesday 24 March 2010 à 13:51

I'm trying to 'vectorize' the images with Inkscape.
Thanks.

Eduardo Mucelli, Wednesday 24 March 2010 à 14:04


Subscription date : 05 August 2009
Messages : 285
Guest :
I'm trying to 'vectorize' the images with Inkscape.
Thanks.

That was me. Forgot to log in. Sry.

fabounet, Wednesday 24 March 2010 à 21:14


Subscription date : 30 November 2007
Messages : 17118
with Inckscape you can just save the png into a svg format.
I mean you don't need to vectorize it (usually, it doesn't give a good result).
the png will be included as a binary blob inside the svg file.

Eduardo Mucelli, Wednesday 24 March 2010 à 21:44


Subscription date : 05 August 2009
Messages : 285
I can not complain about the visual aspect of the result, it is pretty much the same as the original. But the resulting file size is too big, something like 200Kb for a 48x48 image, and the gauge is composed by 10 images. That is the main problem in here.

Just opening the png and saving it as svg is not working. The result file is transparent, I guess it came from the background of the original image. As I'm not familiarized with the specificities of this subject, I will struggle a lil bit more.

Thanks.

ppmt, Thursday 25 March 2010 à 01:15


Subscription date : 29 November 2007
Messages : 3520
isn't it Matttbe who has a trick to clean up the svg to make them small? something like a clean up ?

matttbe, Thursday 25 March 2010 à 01:48


Subscription date : 24 January 2009
Messages : 12573
I don't think it will work! Because it's really hard to 'vectorised' something ! But you can try ;
inkscape --vacuum-defs MY_FILES.svg

Technical discussions | Discussions techniques

Subjects Author Language Messages Last message
[Locked] Third party plugin gauge
Eduardo Mucelli English 7 matttbe [Read]
25 March 2010 à 01:48


Glx-Dock / Cairo-Dock List of forums Technical discussions | Discussions techniques Third party plugin gauge Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.