CSS Provider for screen?
Closed this issue · 0 comments
hypothermic commented
How would I use CSS in java-gnome? Here's what the equivalent C code would look like:
GtkCssProvider *provider = gtk_css_provider_new();
gtk_css_provider_load_from_path(provider, strcat(getenv("HOME"), "/.videoman/window.css"), NULL);
gtk_style_context_add_provider_for_screen(gdk_screen_get_default(), GTK_STYLE_PROVIDER(provider), GTK_STYLE_PROVIDER_PRIORITY_USER);
What's the best approach? Thanks in advance.