Re: [Vala] Base64 encode/decode

2015-03-11 Thread Evan Nemerson
On Wed, 2015-03-11 at 18:09 -0600, Daniel Espinosa wrote: > I've used this for encode/decode strings in a GTK app, is it necessary to > call GLib.Intl.setlocale at app start? It depends on what you want to do. It doesn't alter the encoding/decoding, it alters how printf (and other functions behav

Re: [Vala] Base64 encode/decode

2015-03-11 Thread Daniel Espinosa
I've used this for encode/decode strings in a GTK app, is it necessary to call GLib.Intl.setlocale at app start? And if it is a GLIB library, should I call setlocale to initialize it? El mar 10, 2015 8:14 PM, "Evan Nemerson" escribiĆ³: > > It decodes fine. The same thing happens when you try to

Re: [Vala] How to change the widget color

2015-03-11 Thread Flavio Danesse
var screen = Gdk.Screen.get_default(); var css_provider = new Gtk.CssProvider(); string style_path = "Estilo.css"; css_provider.load_from_path(style_path); Gtk.StyleContext.add_provider_for_screen( screen, css_provider, Gtk.STYLE_PROVIDER_PRIORITY_USER); If you

Re: [Vala] How to change the widget color

2015-03-11 Thread Erick PĆ©rez Castellanos
Hi: You need to take into account that vala is only a kind-of preprocessor that converts Vala language into C, so using devhelp and Gtk+ [1] documentation works perfectly fine. You need to use GtkCssProvider to do this. gtk_widget_override family of functions are deprecated. 1. Obtain your widge