Re: Accessors vs Properties

2017-01-04 Thread Gergely Polonkai
Hello,

I don't know about others, but in my own code, my_obj_set_property() does
nothing else just calls the setter functions (and the same for getters). It
makes much more sense, and I saw it in a lot of Gtk and Gnome code, too.

Best,
Gergely

On Wed, Jan 4, 2017, 19:27 Tobias Knopp  wrote:

> Hi,
>
> I am working on Gtk language bindings for the Julia programming language (
> https://github.com/JuliaGraphics/Gtk.jl <
> https://github.com/JuliaGraphics/Gtk.jl>) and have a question regarding
> the accessor methods (methods with „get“ and „set“ in them) and the
> property system.
>
> - Is any accessor backuped with a property and vice versa?
> - Which one is to prefer?
>
> I tried to find documentation on this but have not found anything.
>
> Thanks,
>
> Tobias
>
>
> ___
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Accessors vs Properties

2017-01-04 Thread Tobias Knopp
Hi,

I am working on Gtk language bindings for the Julia programming language 
(https://github.com/JuliaGraphics/Gtk.jl 
) and have a question regarding the 
accessor methods (methods with „get“ and „set“ in them) and the property system.

- Is any accessor backuped with a property and vice versa?
- Which one is to prefer?

I tried to find documentation on this but have not found anything.

Thanks,

Tobias

 
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list