Commit 39acc8b5 authored by Petr Štětka's avatar Petr Štětka
Browse files

Removed useless Try and Catch

parent 2159ad90
......@@ -49,14 +49,9 @@ namespace Usage
name_css = "adwaita-dark.css";
var provider = new Gtk.CssProvider();
try {
Gtk.StyleContext.reset_widgets(get_screen());
provider.load_from_resource("/org/gnome/Usage/interface/" + name_css);
Gtk.StyleContext.add_provider_for_screen(get_screen(), provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
}
catch (Error e) {
stdout.printf("Could not load CSS. %s\n", e.message);
}
Gtk.StyleContext.reset_widgets(get_screen());
provider.load_from_resource("/org/gnome/Usage/interface/" + name_css);
Gtk.StyleContext.add_provider_for_screen(get_screen(), provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment