[gnome-games/wip/exalm/css: 15/15] application: Simplify css loading
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/css: 15/15] application: Simplify css loading
- Date: Mon, 11 Mar 2019 10:49:58 +0000 (UTC)
commit ba1ca183540b7da7ca1b359fc6b928646c1b6dd8
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Wed Mar 6 19:33:11 2019 +0500
application: Simplify css loading
src/ui/application.vala | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/src/ui/application.vala b/src/ui/application.vala
index baf0fc67..cade6855 100644
--- a/src/ui/application.vala
+++ b/src/ui/application.vala
@@ -417,12 +417,7 @@ public class Games.Application : Gtk.Application {
private static Gtk.CssProvider load_css (string css) {
var provider = new Gtk.CssProvider ();
- try {
- var file = File.new_for_uri ("resource:///org/gnome/Games/" + css);
- provider.load_from_file (file);
- } catch (GLib.Error e) {
- warning ("Loading CSS file ā%sā failed: %s", css, e.message);
- }
+ provider.load_from_resource ("/org/gnome/Games/" + css);
return provider;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]