[Vala] Simple HTML viewer in genie syntax

2009-03-10 Thread Barry Kauler
Thanks to Alberto Ruiz who did the original gtkmozembed binding and
wrote a simple demo HTML viewer in Vala, and also to another webkit
example, I was able to put together a very simple HTML viewer written
in Genie, with toolbar and buttons.

See snapshot and code at my blog:

http://puppylinux.com/blog/?viewDetailed=00596
http://puppylinux.com/blog/?viewDetailed=00595

It's so beautifully simple! The thing is though, I'm stuck on one
thing and I was wondering if someone on this mail-list could advise a
solution. I want to grey-out the forward and back buttons
as-appropriate, and I have a update_buttons() method in the code, but
I don't know how to call it when a window page changes.

Another problem is I would like to tell it to use a different font,
especially to display antialiased.

If anyone notices anything structurally inappropriate in my example,
kindly let me know. I'm a beginner at this, learning by doing (only
have basic C, bash and assembler coding skills).

Note, the next thing I want to do is pass the URL, width, height and
title via the commandline, as want to use this in scripts for quick
and easy HTML help-page viewing.

Regards,
Barry Kauler
___
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Simple HTML viewer in genie syntax

2009-03-10 Thread Hans Baier
 It's so beautifully simple! The thing is though, I'm stuck on one
 thing and I was wondering if someone on this mail-list could advise a
 solution. I want to grey-out the forward and back buttons
 as-appropriate, and I have a update_buttons() method in the code, but
 I don't know how to call it when a window page changes.

Gtk.Widget.sensitive = false

 Another problem is I would like to tell it to use a different font,
 especially to display antialiased.

The Gtk.Widget.get_style () / set_style () methods might help.

Hans
___
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list