Re: [Vala] Base64 encode/decode

2015-03-10 Thread Evan Nemerson
It decodes fine. The same thing happens when you try to print t instead of s2. You forgot to call setlocale: GLib.Intl.setlocale (GLib.LocaleCategory.ALL, ""); Or, if you're using 0.28, just GLib.Intl.setlocale(); will work. On Tue, 2015-03-10 at 16:43 -0600, Daniel Espinosa wrote: >

[Vala] Base64 encode/decode

2015-03-10 Thread Daniel Espinosa
I would like to know how Vala Base64 encode/decode UTF-8 strings. If my string have no special characters, Base64 encode/decode works flawlessly. But if it has a character like "รก" it fails to decode, well when try to cast to string fails. Code: public class App : Object { public static voi

Re: [Vala] How to change the widget color

2015-03-10 Thread Robert Schroll
On Tue, Mar 10, 2015 at 12:35 PM, zeta wrote: the other option I think is using css but I don't find any example on how to do this with vala, If anyone can share an example is very welcome. In pdfpc, we just made a switch to do stying with CSS. The commit in question is here: https://gith

Re: [Vala] How to change the widget color

2015-03-10 Thread yannick inizan
2 solutions : 1) use http://valadoc.org/#!api=gtk+-3.0/Gtk.Widget.override_color method to change color of widget. 2) play with Css and modify widget style 2015-03-10 17:35 GMT+01:00 zeta : > Hi there > > I try to change the color of the button, scale, and progressbar widgets, > it seem this can

[Vala] How to change the widget color

2015-03-10 Thread zeta
Hi there I try to change the color of the button, scale, and progressbar widgets, it seem this can be achived with a StyleContext but I can't figure how to use it, the other option I think is using css but I don't find any example on how to do this with vala, If anyone can share an example i