[Vala] constructor in peas plugin
- From: rastersoft <raster rastersoft com>
- To: Vala-list <vala-list gnome org>
- Subject: [Vala] constructor in peas plugin
- Date: Sun, 11 May 2014 19:11:14 +0200
Hi all:
I'm creating a plugin for Gedit using Vala, and found that the
constructor is not called. Is this a bug, or a feature?
I attach the first part of my code. Maybe the "owned get; construct;" in
the Gedit.window property is the reason?
namespace AutovalaPlugin {
public class ValaWindow : Gedit.WindowActivatable, Peas.ExtensionBase {
private TreeView treeView=null;
private Gtk.ScrolledWindow scroll=null;
private TreeStore treeModel=null;
private string current_file=null;
private string current_project_file=null;
private AutoVala.ManageProject current_project=null;
public ValaWindow() {
// this code seems to never be called
GLib.Object ();
this.treeView = null;
this.treeModel = null;
this.current_file = null;
this.current_project_file = null;
this.current_project = new AutoVala.ManageProject();
}
public Gedit.Window window {
owned get; construct;
}
--
Nos leemos
RASTER (Linux user #228804)
raster rastersoft com http://www.rastersoft.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]