Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions lib/StyleManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,15 @@ public class Granite.StyleManager : Object {

private void set_provider_for_display () {
if (app_provider == null) {
var base_path = Application.get_default ().resource_base_path;
if (base_path != null) {
var base_uri = "resource://" + base_path;
var base_file = File.new_for_uri (base_uri);

app_provider = init_provider_from_file (base_file.get_child ("Application.css"));
unowned GLib.Application? app = Application.get_default ();
if (app != null) {
var base_path = app.resource_base_path;
if (base_path != null) {
var base_uri = "resource://" + base_path;
var base_file = File.new_for_uri (base_uri);

app_provider = init_provider_from_file (base_file.get_child ("Application.css"));
}
}

if (app_provider != null) {
Expand Down