[Vala] Gtk.FileChooserButton



Hello list,

i tried out to get a special folder from a Gtk.FileChooserButton.

In Mono/Gtk-Sharp i used:

public string RevUpdFolder { get; set; }
[Builder.Object] private FileChooserButton FileChooserRevUpd;
protected void OnFileChooserRevUpdFileSet(object sender, EventArgs e)
{
RevUpdFolder = FileChooserRevUpd.CurrentFolder;
}

In Vala i tried to port it:

public string revupdfolder { get; set; }
[Gtk.Child] private Gtk.FileChooserButton fileChooserRevUpd;
private void on_fileChooserRevUpd_file_set () {
    revupdfolder = fileChooserRevUpd.current_folder;
}

But it looks like there is no way to get the current folder like
Gtk-Sharp it does, or?

-- 
Sascha Manns
Maifeldstraße 10
56727 Mayen

P: +49-2651-4014045
W: http://saigkill.tuxfamily.org


Attachment: signature.asc
Description: OpenPGP digital signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]