gtkd-developers / GtkD

GtkD is a D binding and OO wrapper of GTK+ originally created by Antonio Monteiro
http://gtkd.org
Other
322 stars 71 forks source link

Illogical method for setting style in gtk converts to illogical binding #187

Closed deviator closed 7 years ago

deviator commented 7 years ago

This method gtk_style_context_add_provider_for_screen not use StyleContext but if I want use it in gtkd I must somehow get StyleContext, from widget for example, and if I use Builder for setting style I must pass some widget name, but in core it not necessary. I think this method must be static.

MikeWey commented 7 years ago

Do you mean this function:

https://github.com/gtkd-developers/GtkD/blob/master/src/gtk/StyleContext.d#L199

Because it's already static?

deviator commented 7 years ago

Oh, sorry)