Re: GTK's interfaces and language bindings

2017-07-21 Thread Stefan Salewski
On Thu, 2017-07-20 at 13:44 +0200, Nicola Fontana wrote: > I see interfaces as a "contract" that (1) enforces an object > to implement some feature (properties and/or methods) and > consequently (2) gives the users a common API that can be used > across unrelated objects. Thanks for your

Re: GTK's interfaces and language bindings

2017-07-20 Thread Nicola Fontana
Il Tue, 18 Jul 2017 22:00:52 +0200 Stefan Salewski scrisse: > ... > So the second parameter is of type GtkStyleProvider, which is an > interface. GtkCssProvider provides that interface, so we can pass a > variable of that type. GTK_STYLE_PROVIDER() is basically only a cast, a