Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #24: add bindings for CssProvider sufficient to do basic css #27

Merged
merged 2 commits into from
Sep 2, 2020

Conversation

byteit101
Copy link
Contributor

I didn't add any interface methods, as two are deprecated and the 3rd required more work, but css can now be loaded by:

provider = new org.gnome.gtk.CssProvider();
provider.loadFromPath("my.css");
org.gnome.gtk.StyleContext.addProviderForScreen(
    org.gnome.gdk.Screen.getDefault(), 
    provider,
    org.gnome.gtk.StyleProvider.PRIORITY_APPLICATION); // 600

I also added the libnotify-dev dependency for Ubuntu/Debian after I got similar errors as #18

@istathar istathar merged commit b1d1eaf into istathar:master Sep 2, 2020
@istathar
Copy link
Owner

istathar commented Sep 2, 2020

Nice work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants