print error message if load-styles fails
This commit is contained in:
parent
fcd5aee103
commit
2a004d08df
@ -12,12 +12,14 @@
|
|||||||
(local HEIGHT 48)
|
(local HEIGHT 48)
|
||||||
|
|
||||||
(fn load-styles [pathname]
|
(fn load-styles [pathname]
|
||||||
(let [style-provider (Gtk.CssProvider)]
|
(let [style-provider (Gtk.CssProvider)
|
||||||
(style-provider:load_from_path pathname)
|
(success err) (style-provider:load_from_path pathname)]
|
||||||
(Gtk.StyleContext.add_provider_for_screen
|
(if success
|
||||||
(Gdk.Screen.get_default)
|
(Gtk.StyleContext.add_provider_for_screen
|
||||||
style-provider
|
(Gdk.Screen.get_default)
|
||||||
Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION)))
|
style-provider
|
||||||
|
Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION)
|
||||||
|
(print "failed to load stylesheet" err))))
|
||||||
|
|
||||||
(fn resolve [f]
|
(fn resolve [f]
|
||||||
(match (type f)
|
(match (type f)
|
||||||
|
Loading…
Reference in New Issue
Block a user