Re: [Vala] Gtk.FileChooserButton

2017-04-10 Thread Al Thomas via vala-list
> From: Sascha Manns <sascha.ma...@mailbox.org>

> Sent: Monday, 10 April 2017, 18:35
> Subject: [Vala] Gtk.FileChooserButton

> 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?

It is likely to be:
revupdfolder = fileChooserRevUpd.get_current_folder ();

Valadoc shows that FileChooserButton implements FileChooser:
https://valadoc.org/gtk+-3.0/Gtk.FileChooserButton.html
On that Valadoc page there is a sub-section "All known members
inherited from interface Gtk.FileChooser". One of those is the
method get_current_folder (). It doesn't look like there is a
similar property.

Regards,

Al
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Gtk.FileChooserButton

2017-04-10 Thread Chris Daley
Sorry, I wrote my reply without reading your code thoroughly...

In Vala, what you're looking for is implemented as a method not as a
property:

https://valadoc.org/gtk+-3.0/Gtk.FileChooser.html

https://valadoc.org/gtk+-3.0/Gtk.FileChooser.get_current_folder.html

Cheers
Chris D

2017-04-10 10:42 GMT-07:00 Chris Daley :

> Hi Sascha,
>
> FileChooserButton implements the FileChooser interface, so I believe the
> method you want to use is get_current_foler_file:
>
> https://valadoc.org/gtk+-3.0/Gtk.FileChooser.get_current_folder_file.html
>
> Cheers
> Chris D
>
> 2017-04-10 10:34 GMT-07:00 Sascha Manns :
>
>> 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
>>
>>
>>
>> ___
>> vala-list mailing list
>> vala-list@gnome.org
>> https://mail.gnome.org/mailman/listinfo/vala-list
>>
>>
>
>
> --
> Chris Daley
> Pacific Northwest
>
> e: chebiza...@gmail.com
> w: http://chrisdaley.biz
> m: +1-971-703-9251 <(971)%20703-9251>
> s: chebizarro
> tw: chebizarro
> tz: PDT
>
>


-- 
Chris Daley
Pacific Northwest

e: chebiza...@gmail.com
w: http://chrisdaley.biz
m: +1-971-703-9251
s: chebizarro
tw: chebizarro
tz: PDT
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Gtk.FileChooserButton

2017-04-10 Thread Chris Daley
Hi Sascha,

FileChooserButton implements the FileChooser interface, so I believe the
method you want to use is get_current_foler_file:

https://valadoc.org/gtk+-3.0/Gtk.FileChooser.get_current_folder_file.html

Cheers
Chris D

2017-04-10 10:34 GMT-07:00 Sascha Manns :

> 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
>
>
>
> ___
> vala-list mailing list
> vala-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/vala-list
>
>


-- 
Chris Daley
Pacific Northwest

e: chebiza...@gmail.com
w: http://chrisdaley.biz
m: +1-971-703-9251
s: chebizarro
tw: chebizarro
tz: PDT
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


[Vala] Gtk.FileChooserButton

2017-04-10 Thread Sascha Manns
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




signature.asc
Description: OpenPGP digital signature
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list