Open solusipse opened 10 years ago
I merged these changes against the latest master branch, but found that there were several issues with the code so they haven't been committed to the master branch yet. See http://sprunge.us/FajA for a diff.
Besides just the generic improvements (adding comments, etc.) I also changed CssProvider to embed a glib.Object, rather than saving the C.GtkCssProvider itself. Additionally, some of the wrappers that optionally take GErrors now also return a Go error created from the GError's message if they were set. Finally, I removed your AddToScreen wrapper for now. I believe we want to use GInterfaces here. See some of the other gotk3 objects that interfaces are implemented for (such as ComboBox, Grid, ListStore, etc.).
Simple example of gradient background: