Re: [Vala] Splash screen test
- From: Robert Schroll <rschroll gmail com>
- To: Walter Valenti <valenti walter gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Splash screen test
- Date: Thu, 14 Jan 2016 10:49:28 -0500
On Thu, Jan 14, 2016 at 9:23 AM, Walter Valenti
<valenti walter gmail com> wrote:
public class Splash : Gtk.Window{
/* Costruttore */
public Splash() {
new Gtk.Window();
Note that this line is making a *second* Gtk.Window, in addition to
your Splash window, which is probably not what you want. (You don't
see it because it is never shown.)
I assume you're trying to chain constructors. This is unnecessary in
this case. If you needed to do this, the syntax is 'base();' or
'base.from_something(something);'. But for the case of Gtk objects and
others, this won't work. Instead, you'd need to use GObject
construction; see for details:
https://wiki.gnome.org/Projects/Vala/FAQ#Why_can.27t_I_chain_up_to_base_constructor.3F
Robert
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]