Vala programming

Programming issues and discussion
simargl
Site Admin
Posts: 466
Joined: 16 May 2013, 10:54
Contact:

Re: Vala programming

Postby simargl » 17 Apr 2014, 20:53

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);

Scooby
Site Admin
Posts: 826
Joined: 09 Sep 2013, 16:52

Re: Vala programming

Postby Scooby » 17 Apr 2014, 20:59

simargl wrote:Scooby, you mean monospace font


Yep, I meant monospace font, will try your solution

Thank you very much

simargl
Site Admin
Posts: 466
Joined: 16 May 2013, 10:54
Contact:

Re: Vala programming

Postby simargl » 14 Jun 2014, 17:42

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 118 times

HariSeldon
Posts: 1
Joined: 06 May 2015, 17:52

Re: Vala programming

Postby HariSeldon » 06 May 2015, 18:00

I'm interested in the sample source code, in this post. These are no longer available. :(

Scooby
Site Admin
Posts: 826
Joined: 09 Sep 2013, 16:52

Re: Vala programming

Postby Scooby » 09 May 2015, 12:49

I don't have the sources for that
perhaps Sim has it, I don't know.


Return to “Scripting and Programming”

Who is online

Users browsing this forum: No registered users and 1 guest