Page 2 of 2

Re: Vala programming

Posted: 17 Apr 2014, 20:53
by simargl
Scooby, you mean monospace font or something else? You can set font with Pango.FontDescription
http://valadoc.org/#!api=pango/Pango.FontDescription

For example:
var font_desc = Pango.FontDescription.from_string("Monospace 10");
...
textview.override_font(font_desc);

Re: Vala programming

Posted: 17 Apr 2014, 20:59
by Scooby
simargl wrote:Scooby, you mean monospace font


Yep, I meant monospace font, will try your solution

Thank you very much

Re: Vala programming

Posted: 14 Jun 2014, 17:42
by simargl
Gtk.Application template for making your new application, it's showing how to setup global App menu, gear menu using Popover, how to add keyboard shortcuts...

GtkApplication class manual:
https://developer.gnome.org/gtk3/unstab ... ation.html

Image

Image

base-app.tar.gz
(6.5 KiB) Downloaded 394 times

Re: Vala programming

Posted: 06 May 2015, 18:00
by HariSeldon
I'm interested in the sample source code, in this post. These are no longer available. :(

Re: Vala programming

Posted: 09 May 2015, 12:49
by Scooby
I don't have the sources for that
perhaps Sim has it, I don't know.